Searched refs:sigBytes (Results 1 – 4 of 4) sorted by relevance
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | ECDSASignatureTest.java | 101 byte[] sigBytes = signature.sign(); in assertNONEwithECDSATruncatesInputToFieldSize() 108 assertTrue(signature.verify(sigBytes)); in assertNONEwithECDSATruncatesInputToFieldSize() 112 assertTrue(signature.verify(sigBytes)); in assertNONEwithECDSATruncatesInputToFieldSize() 116 assertFalse(signature.verify(sigBytes)); in assertNONEwithECDSATruncatesInputToFieldSize() 217 private byte[] extractRValueFromEcdsaSignature_Helper(byte[] sigBytes) throws IOException { in extractRValueFromEcdsaSignature_Helper() argument 224 ASN1Primitive sig1prim = ASN1Primitive.fromByteArray(sigBytes); in extractRValueFromEcdsaSignature_Helper() 237 byte[] sigBytes = signature.sign(); in computeSignatureForNonceReuse_Helper() 238 return sigBytes; in computeSignatureForNonceReuse_Helper() 254 byte[] sigBytes = signature.sign(); in assertNONEwithECDSASupportsMessagesShorterThanFieldSize() 261 assertTrue(signature.verify(sigBytes)); in assertNONEwithECDSASupportsMessagesShorterThanFieldSize() [all …]
|
D | RSASignatureTest.java | 91 byte[] sigBytes = signature.sign(); in testMaxMessageSizeWhenNoDigestUsed() 95 assertTrue(signature.verify(sigBytes)); in testMaxMessageSizeWhenNoDigestUsed() 110 if (signature.verify(sigBytes)) { in testMaxMessageSizeWhenNoDigestUsed() 157 byte[] sigBytes = signature.sign(); in testSmallKeyRejected() 158 fail("Unexpectedly generated a signature (" + sigBytes.length + " bytes): " in testSmallKeyRejected() 159 + HexEncoding.encode(sigBytes)); in testSmallKeyRejected()
|
D | SignatureTest.java | 441 byte[] sigBytes = signature.sign(); in testValidSignatureGeneratedForEmptyMessage() 445 assertTrue(signature.verify(sigBytes)); in testValidSignatureGeneratedForEmptyMessage() 477 byte[] sigBytes = signature.sign(); in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey() 480 assertTrue(signature.verify(sigBytes)); in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey() 554 byte[] sigBytes = signature.sign(); in testSignatureGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore() 558 sigAlgorithm, provider, keyPair.getPublic(), message, sigBytes); in testSignatureGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore() 587 byte[] sigBytes = signature.sign(); in testSignatureGeneratedByAndroidKeyStoreVerifiesByHighestPriorityProvider() 601 sigAlgorithm, verificationProvider, publicKey, message, sigBytes); in testSignatureGeneratedByAndroidKeyStoreVerifiesByHighestPriorityProvider() 640 byte[] sigBytes = signature.sign(); in testSignatureGeneratedByHighestPriorityProviderVerifiesByAndroidKeyStore() 645 sigAlgorithm, keystoreProvider, keystorePublicKey, message, sigBytes); in testSignatureGeneratedByHighestPriorityProviderVerifiesByAndroidKeyStore() [all …]
|
D | Curve25519Test.java | 175 byte[] sigBytes = signer.sign(); in ed25519KeyGenerationAndSigningTest() 176 assertThat(sigBytes.length).isEqualTo(64); in ed25519KeyGenerationAndSigningTest() 181 + " signature: " + Base64.getEncoder().encodeToString(sigBytes)); in ed25519KeyGenerationAndSigningTest()
|