TlsUtils

Source file "org/bouncycastle/tls/TlsUtils.java" was not found during generation of report.

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total7,273 of 7,2730%1,093 of 1,0930%9089081,8501,850304304
createCertSigAlgOIDs()1670%n/a11353511
selectPreSharedKey(TlsServerContext, TlsServer, Hashtable, HandshakeMessageInput, TlsHandshakeHash, boolean)1210%160%99313111
createDefaultSupportedSigAlgs()1050%n/a11252511
getPRFAlgorithm(SecurityParameters, int)990%330%2020343411
collectKeyShares(TlsCrypto, int[], Vector, Hashtable, Vector)920%240%1313242411
verifyCertificateVerifyClient(TlsServerContext, CertificateRequest, DigitallySigned, TlsHandshakeHash)910%80%55282811
isSupportedKeyExchange(TlsCrypto, int)890%400%2626212111
checkSigAlgOfServerCerts(TlsContext, TlsCertificate[])890%200%1111222211
calculateEndPointHash(TlsContext, TlsCertificate, byte[], int, int)810%210%1212272711
checkSigAlgOfClientCerts(TlsContext, TlsCertificate[])800%140%88212111
receiveServerCertificate(TlsClientContext, TlsClient, ByteArrayInputStream, Hashtable)800%120%77212111
createKeyExchangeServer(TlsServer, int)780%120%1212141411
addPreSharedKeyToClientHelloRetry(TlsClientContext, OfferedPsks.BindersConfig, Hashtable)780%60%44181811
writeUint64(long, byte[], int)770%n/a119911
getCertSigAndHashAlg(TlsCertificate, TlsCertificate)770%240%1313232311
verifyServerKeyExchangeSignature(TlsContext, InputStream, TlsCertificate, byte[], DigestInputBuffer)740%80%55202011
chooseSignatureAndHashAlgorithm(ProtocolVersion, Vector, short)700%220%1212242411
checkTlsFeatures(Certificate, Hashtable, Hashtable)690%140%88141411
establish13PhaseSecrets(TlsContext, TlsSecret, TlsSecret)680%60%44222211
receive13ServerCertificate(TlsClientContext, TlsClient, ByteArrayInputStream, Hashtable)670%80%55181811
createKeyExchangeClient(TlsClient, int)650%110%1111151511
isPermittedExtensionType13(int, int)630%300%2020292911
selectKeyShare(TlsCrypto, ProtocolVersion, Vector, int[], int[])610%240%1313161611
negotiatedCipherSuite(SecurityParameters, int)610%60%44191911
verify13CertificateVerify(Vector, String, TlsHandshakeHash, TlsCertificate, CertificateVerify)580%20%22181811
writeUint48(long, byte[], int)570%n/a117711
getCommonCipherSuites(int[], int[], boolean)570%100%66141411
getPSKExternalsClient(TlsClient, int[])570%80%55151511
writeUint64(long, OutputStream)550%n/a119911
calculateVerifyData(TlsContext, TlsHandshakeHash, boolean)550%80%55151511
getUsableSignatureAlgorithms(Vector)550%80%55141411
generate13CertificateVerify(TlsCrypto, TlsCredentialedSigner, String, TlsHandshakeHash, SignatureAndHashAlgorithm)530%20%22131311
getEncryptionAlgorithm(int)520%250%2525262611
decodeUint16ArrayWithUint8Length(byte[])510%80%55111111
processServerCertificate(TlsClientContext, CertificateStatus, TlsKeyExchange, TlsAuthentication, Hashtable, Hashtable)510%80%55161611
encodeSupportedSignatureAlgorithms(Vector, OutputStream)500%100%66121211
selectKeyShareGroup(TlsCrypto, ProtocolVersion, int[], int[])500%200%1111141411
getNamedGroupRoles(Vector)490%70%66141411
addPreSharedKeyToClientHello(TlsClientContext, TlsClient, Hashtable, int[])490%60%44131311
getCertificateVerifyHeader(String)470%40%339911
addKeyShareToClientHelloRetry(TlsClientContext, Hashtable, int)450%40%339911
readUint32(byte[], int)440%n/a115511
calculateSignatureHash(TlsContext, SignatureAndHashAlgorithm, byte[], DigestInputBuffer)440%40%33101011
parseSupportedSignatureAlgorithms(InputStream)430%80%55101011
generateCertificateVerifyClient(TlsClientContext, TlsCredentialedSigner, SignatureAndHashAlgorithm, TlsStreamSigner, TlsHandshakeHash)430%60%44111111
decodeUint8ArrayWithUint8Length(byte[])420%60%449911
getKeyExchangeAlgorithm(int)420%200%2020212111
validateCredentials(TlsCredentials)420%100%668811
writeUint48(long, OutputStream)410%n/a117711
decodeOpaque8(byte[], int)400%80%558811
decodeOpaque16(byte[], int)400%80%558811
generateServerKeyExchangeSignature(TlsContext, TlsCredentialedSigner, byte[], DigestInputBuffer)400%20%22101011
readInt32(byte[], int)390%n/a115511
writeGMTUnixTime(byte[], int)380%n/a116611
addKeyShareToClientHello(TlsClientContext, TlsClient, Hashtable)380%40%33101011
writeUint32(long, byte[], int)370%n/a115511
isValidCipherSuiteForSignatureAlgorithms(int, Vector)370%80%55121211
calculateExporterSeed(SecurityParameters, byte[])360%40%338811
getPRFAlgorithms13(int[])360%60%447711
getSupportedCipherSuites(TlsCrypto, int[], int, int)360%60%449911
adjustTranscriptForRetry(TlsHandshakeHash)360%n/a11101011
readUint32(InputStream)350%20%227711
verifySupportedSignatureAlgorithm(Vector, SignatureAndHashAlgorithm, short)350%120%779911
isSupportedCipherSuite(TlsCrypto, int)350%120%77111111
processClientCertificate(TlsServerContext, Certificate, TlsKeyExchange, TlsServer)350%60%44111111
areCertificatesEqual(Certificate, Certificate)350%60%44101011
checkExtensionData13(Hashtable, int, short)350%60%447711
getCommonCipherSuite13(ProtocolVersion, int[], int[], boolean)340%80%55101011
retainAll(short[], short[])340%40%336611
addPreSharedKeyToClientExtensions(TlsPSK[], Hashtable)340%20%226611
writeDowngradeMarker(ProtocolVersion, byte[])330%40%338811
generate13CertificateVerify(TlsContext, TlsCredentialedSigner, TlsHandshakeHash)320%40%336611
hasAnyRSASigAlgs(TlsCrypto)320%140%887711
calculatePSKBinder(TlsCrypto, boolean, int, TlsSecret, byte[])310%20%226611
initCipher(TlsContext)310%40%337711
readUint24(byte[], int)300%n/a114411
constantTimeAreEqual(int, byte[], int, byte[], int)300%40%334411
isValidSignatureAlgorithmForServerKeyExchange(short, int)300%130%99101011
trackHashAlgorithms(TlsHandshakeHash, Vector)290%60%449911
getKeyExchangeAlgorithms(int[])290%40%336611
isValidVersionForCipherSuite(int, ProtocolVersion)290%80%558811
update13TrafficSecret(TlsContext, boolean)280%40%339911
writeUint32(long, OutputStream)270%n/a115511
readASN1Object(byte[])270%40%337711
getSupportedSignatureAlgorithms(TlsContext, Vector)270%20%226611
calculateMasterSecret(TlsContext, TlsSecret)270%20%227711
getOIDForHashAlgorithm(short)270%70%778811
normalizeCertificateRequest(CertificateRequest, short[])270%40%337711
negotiatedVersion(SecurityParameters)270%60%449911
getPSKIndices(TlsPSK[], int)270%40%335511
static {...}260%n/a119911
readUint24(InputStream)250%20%226611
readAllOrNothing(int, InputStream)250%60%449911
getLegacySupportedSignatureAlgorithms()250%n/a115511
establish13TrafficSecrets(TlsContext, byte[], TlsSecret, String, String, RecordStream)250%20%226611
writeUint24(int, byte[], int)240%n/a114411
isNullOrContainsNull(Object[])240%60%447711
concat(byte[], byte[])240%n/a114411
establish13PhaseEarly(TlsContext, byte[], RecordStream)240%20%226611
getHashAlgorithmForPRFAlgorithm(int)240%40%445511
sendSignatureInput(TlsContext, byte[], DigestInputBuffer, OutputStream)240%20%228811
validateCertificateRequest(CertificateRequest, TlsKeyExchange)240%40%337711
encodeOpaque16(byte[])230%n/a115511
encodeOpaque24(byte[])230%n/a115511
selectKeyShare(Vector, int)230%80%555511
getPSKEarlySecrets(TlsCrypto, TlsPSK[])230%20%225511
readUint48(byte[], int)220%n/a113311
establish13PhaseHandshake(TlsContext, byte[], RecordStream)220%n/a116611
containsSignatureAlgorithm(Vector, SignatureAndHashAlgorithm)210%40%335511
containsAnySignatureAlgorithm(Vector, short)210%40%335511
establish13PhaseApplication(TlsContext, byte[], RecordStream)210%n/a115511
containsNonAscii(byte[])210%40%335511
establishServerSigAlgs(SecurityParameters, CertificateRequest)210%20%226611
getSessionMasterSecret(TlsCrypto, TlsSecret)210%40%336611
decodeUint8(byte[])200%40%335511
decodeUint16(byte[])200%40%335511
decodeUint32(byte[])200%40%335511
isValidKeyShareSelection(ProtocolVersion, int[], Hashtable, int)200%80%554411
skip13ServerCertificate(TlsClientContext)200%20%226611
getSessionID(TlsSession)200%80%555511
negotiatedVersionDTLSClient(TlsClientContext, TlsClient)200%20%227711
negotiatedVersionTLSClient(TlsClientContext, TlsClient)200%20%227711
readUint16(byte[], int)190%n/a113311
readFully(int, InputStream)190%40%336611
calculateFinishedHMAC(int, int, TlsSecret, byte[])190%n/a113311
checkDowngradeMarker(byte[], byte[])190%20%224411
containsNonAscii(String)190%40%335511
writeOpaque8(byte[], byte[], int)180%n/a114411
writeOpaque16(byte[], byte[], int)180%n/a114411
writeOpaque24(byte[], byte[], int)180%n/a114411
writeUint16ArrayWithUint8Length(int[], byte[], int)180%n/a115511
writeUint16ArrayWithUint16Length(int[], byte[], int)180%n/a115511
readUint16(InputStream)180%20%225511
readUint48(InputStream)180%n/a113311
readOpaque8(InputStream, int, int)180%40%334411
addToSet(Vector, int)180%40%334411
hasExpectedEmptyExtensionData(Hashtable, Integer, short)180%40%336611
verify13CertificateVerifyClient(TlsServerContext, TlsHandshakeHash, CertificateVerify)180%n/a115511
verify13CertificateVerifyServer(TlsClientContext, TlsHandshakeHash, CertificateVerify)180%n/a115511
contains(short[], int, int, int)180%40%334411
contains(int[], int, int, int)180%40%334411
containsAll(short[], short[])180%40%334411
checkDowngradeMarker(ProtocolVersion, byte[])180%40%336611
generateEncryptedPreMasterSecret(TlsContext, TlsEncryptor, OutputStream)180%n/a115511
writeUint24(int, OutputStream)170%n/a114411
readUint8Array(int, InputStream)170%20%224411
readUint16Array(int, InputStream)170%20%224411
getSignatureAndHashAlgorithm(ProtocolVersion, TlsCredentialedSigner)170%40%336611
clone(String[])170%40%331111
isValidCipherSuiteSelection(int[], int)170%80%553311
truncate(short[], int)170%20%225511
truncate(int[], int)170%20%225511
isSafeRenegotiationServerCertificate(TlsClientContext, Certificate)170%40%336611
negotiatedVersionDTLSServer(TlsServerContext)170%20%226611
negotiatedVersionTLSServer(TlsServerContext)170%20%226611
writeUint8Array(short[], byte[], int)160%20%224411
writeUint16Array(int[], byte[], int)160%20%224411
encodeUint16ArrayWithUint8Length(int[])160%n/a114411
encodeUint16ArrayWithUint16Length(int[])160%n/a114411
readVersion(InputStream)160%20%225511
isExtendedMasterSecretOptionalTLS(ProtocolVersion[])160%60%443311
clone(byte[])160%40%331111
validate13Credentials(TlsCredentials)160%40%335511
deriveSecret(int, int, TlsSecret, String, byte[])160%20%223311
writeUint16(int, byte[], int)150%n/a113311
writeUint8ArrayWithUint8Length(short[], byte[], int)150%n/a114411
encodeVersion(ProtocolVersion)150%n/a113311
readFully(byte[], InputStream)150%40%334411
readOpaque8(InputStream, int)150%20%224411
readOpaque16(InputStream, int)150%20%224411
readOpaque24(InputStream, int)150%20%224411
readUint8ArrayWithUint8Length(InputStream, int)150%20%224411
writeVersion(ProtocolVersion, byte[], int)150%n/a113311
addIfSupported(Vector, TlsCrypto, int[])150%20%223311
copyOfRangeExact(byte[], int, int)150%n/a114411
writeUint8Array(short[], OutputStream)140%20%223311
writeUint16Array(int[], OutputStream)140%20%223311
writeUint16ArrayWithUint16Length(int[], OutputStream)140%n/a115511
readVersion(byte[], int)140%n/a111111
requireDEREncoding(ASN1Object, byte[])140%20%224411
getDefaultSignatureAlgorithms(short)130%20%222211
initKeyExchangeClient(TlsClientContext, TlsClient)130%n/a114411
initKeyExchangeServer(TlsServerContext, TlsServer)130%n/a114411
checkClientCertificateType(CertificateRequest, short, short)130%40%334411
deriveSecret(SecurityParameters, TlsSecret, String, byte[])130%n/a113311
encodeUint8ArrayWithUint8Length(short[])120%n/a113311
readUint8(InputStream)120%20%224411
isExtendedMasterSecretOptionalDTLS(ProtocolVersion[])120%40%332211
isSignatureAlgorithmsExtensionAllowed(ProtocolVersion)120%40%332211
calculateFinishedHMAC(SecurityParameters, TlsSecret, byte[])120%n/a113311
getMACAlgorithm(int)120%50%556611
getPSKEarlySecret(TlsCrypto, TlsPSK)120%n/a114411
writeOpaque8(byte[], OutputStream)110%n/a114411
writeOpaque16(byte[], OutputStream)110%n/a114411
writeOpaque24(byte[], OutputStream)110%n/a114411
writeUint8ArrayWithUint8Length(short[], OutputStream)110%n/a114411
encodeUint8(short)110%n/a114411
encodeUint16(int)110%n/a114411
encodeUint24(int)110%n/a114411
encodeUint32(long)110%n/a114411
isNullOrEmpty(byte[])110%40%331111
isNullOrEmpty(short[])110%40%331111
isNullOrEmpty(int[])110%40%331111
isNullOrEmpty(Object[])110%40%331111
isNullOrEmpty(String)110%40%331111
checkPeerSigAlgs(TlsContext, TlsCertificate[])110%20%224411
requireAgreementCredentials(TlsCredentials)110%20%223311
requireDecryptorCredentials(TlsCredentials)110%20%223311
requireSignerCredentials(TlsCredentials)110%20%223311
writeEncryptedPMS(TlsContext, byte[], OutputStream)110%20%224411
isValidUint8(long)100%20%221111
isValidUint16(long)100%20%221111
isValidUint24(long)100%20%221111
isValidUint32(long)100%20%221111
isValidUint48(long)100%20%221111
getExtensionData(Hashtable, Integer)100%20%221111
isNullOrEmpty(Vector)100%40%331111
getLegacyClientCertType(short)100%40%445511
getLegacySignatureAlgorithmClient(short)100%40%445511
getLegacySignatureAlgorithmClientCert(short)100%40%445511
getLegacySignatureAlgorithmServer(int)100%40%445511
getLegacySignatureAlgorithmServerCert(int)100%40%445511
getPRFAlgorithm13(int)100%40%445511
vectorOfOne(Object)100%n/a113311
getEncryptionAlgorithmType(int)100%40%445511
checkUint8(short)90%20%223311
checkUint8(int)90%20%223311
checkUint8(long)90%20%223311
checkUint16(int)90%20%223311
checkUint16(long)90%20%223311
checkUint24(int)90%20%223311
checkUint24(long)90%20%223311
checkUint32(long)90%20%223311
checkUint48(long)90%20%223311
checkUint64(long)90%20%223311
isValidUint8(short)90%20%221111
isValidUint8(int)90%20%221111
isValidUint16(int)90%20%221111
isValidUint24(int)90%20%221111
writeUint16(int, OutputStream)90%n/a113311
encodeOpaque8(byte[])90%n/a112211
writeVersion(ProtocolVersion, OutputStream)90%n/a113311
addIfSupported(Vector, TlsCrypto, int)90%20%223311
update13TrafficSecretPeer(TlsContext)90%20%222211
update13TrafficSecret(SecurityParameters, TlsSecret)90%n/a112211
trackHashAlgorithmClient(TlsHandshakeHash, SignatureAndHashAlgorithm)90%20%224411
readEncryptedPMS(TlsContext, InputStream)90%20%223311
establishClientSigAlgs(SecurityParameters, Hashtable)90%n/a113311
readDERObject(byte[])80%n/a113311
addIfSupported(Vector, TlsCrypto, SignatureAndHashAlgorithm)80%20%223311
getDefaultSignatureAlgorithm(short)80%20%223311
PRF(SecurityParameters, TlsSecret, String, byte[], int)80%n/a111111
PRF(TlsContext, TlsSecret, String, byte[], int)80%n/a111111
calculateEndPointHash(TlsContext, TlsCertificate, byte[])80%n/a111111
getMinimumVersion(int)80%30%334411
isAEADCipherSuite(int)80%20%221111
isBlockCipherSuite(int)80%20%221111
isStreamCipherSuite(int)80%20%221111
addCertSigAlgOID(Hashtable, ASN1ObjectIdentifier, SignatureAndHashAlgorithm)70%n/a112211
addCertSigAlgOID(Hashtable, ASN1ObjectIdentifier, short, short)70%n/a112211
readUint8(byte[], int)70%n/a111111
readOpaque8(InputStream)70%n/a112211
readOpaque16(InputStream)70%n/a112211
readOpaque24(InputStream)70%n/a112211
isValidSignatureSchemeForServerKeyExchange(int, int)70%n/a112211
getSupportedCipherSuites(TlsCrypto, int[])70%n/a111111
writeUint8(short, byte[], int)60%n/a112211
writeUint8(int, byte[], int)60%n/a112211
importSession(byte[], SessionParameters)60%n/a111111
hasSigningCapability(short)60%20%223311
getCipherType(int)60%n/a112211
chooseSignatureAndHashAlgorithm(TlsContext, Vector, short)60%n/a111111
getSupportedCipherSuites(TlsCrypto, int[], int)60%n/a111111
isTLSv10(ProtocolVersion)50%n/a111111
isTLSv11(ProtocolVersion)50%n/a111111
isTLSv12(ProtocolVersion)50%n/a111111
isTLSv13(ProtocolVersion)50%n/a111111
getSignatureAndHashAlgorithm(TlsContext, TlsCredentialedSigner)50%n/a111111
verifySupportedSignatureAlgorithm(Vector, SignatureAndHashAlgorithm)50%n/a112211
update13TrafficSecretLocal(TlsContext)50%n/a112211
createHash(TlsCrypto, short)50%n/a111111
createHash(TlsCrypto, SignatureAndHashAlgorithm)50%n/a111111
establishClientCredentials(TlsAuthentication, CertificateRequest)50%n/a111111
establish13ClientCredentials(TlsAuthentication, CertificateRequest)50%n/a111111
isSSL(TlsContext)40%n/a111111
isTLSv10(TlsContext)40%n/a111111
isTLSv11(TlsContext)40%n/a111111
isTLSv12(TlsContext)40%n/a111111
isTLSv13(TlsContext)40%n/a111111
writeUint8(short, OutputStream)40%n/a112211
writeUint8(int, OutputStream)40%n/a112211
decodeOpaque8(byte[])40%n/a111111
decodeOpaque16(byte[])40%n/a111111
getDefaultSupportedSignatureAlgorithms(TlsContext)40%n/a111111
getNamedGroupRoles(int[])40%n/a111111
isValidCipherSuiteForVersion(int, ProtocolVersion)40%n/a111111
getCurrentPRFHash(TlsHandshakeHash)40%n/a111111
establishServerCredentials(TlsServer)40%n/a111111
establish13ServerCredentials(TlsServer)40%n/a111111
TlsUtils()30%n/a111111
getDefaultDSSSignatureAlgorithms()30%n/a111111
getDefaultECDSASignatureAlgorithms()30%n/a111111
getDefaultRSASignatureAlgorithms()30%n/a111111
isValidUint64(long)20%n/a111111