Home
last modified time | relevance | path

Searched defs:aead (Results 1 – 25 of 319) sorted by relevance

12345678910>>...13

/external/tink-java/src/test/java/com/google/crypto/tink/aead/internal/
DLegacyFullAeadIntegrationTest.java157 Aead aead = handle.getPrimitive(RegistryConfiguration.get(), Aead.class); in generateNew_works() local
173 Aead aead = tinkKeysetHandle.getPrimitive(RegistryConfiguration.get(), Aead.class); in endToEnd_works() local
189 Aead aead = rawKeysetHandle.getPrimitive(RegistryConfiguration.get(), Aead.class); in endToEnd_decryptIsCorrect() local
199 Aead aead = rawKeysetHandle.getPrimitive(RegistryConfiguration.get(), Aead.class); in endToEnd_encryptDecryptWorks() local
215 Aead aead = rawKeysetHandle.getPrimitive(RegistryConfiguration.get(), Aead.class); in endToEnd_wrongCiphertextThrows() local
230 Aead aead = rawKeysetHandle.getPrimitive(RegistryConfiguration.get(), Aead.class); in endToEnd_wrongAssociatedDataThrows() local
244 Aead aead = tinkKeysetHandle.getPrimitive(RegistryConfiguration.get(), Aead.class); in endToEnd_encryptAddsTinkPrefixCorrectly() local
258 Aead aead = crunchyKeysetHandle.getPrimitive(RegistryConfiguration.get(), Aead.class); in endToEnd_encryptAddsCrunchyPrefixCorrectly() local
272 Aead aead = legacyKeysetHandle.getPrimitive(RegistryConfiguration.get(), Aead.class); in endToEnd_encryptAddsLegacyPrefixCorrectly() local
292 Aead aead = tinkKeysetHandle.getPrimitive(RegistryConfiguration.get(), Aead.class); in endToEnd_decryptAcceptsCorrectTinkPrefix() local
[all …]
DChaCha20Poly1305JceTest.java95 Aead aead = createInstance(Random.randBytes(KEY_SIZE)); in testEncryptDecrypt() local
116 Aead aead = createInstance(key); in testLongMessages() local
130 Aead aead = createInstance(key); in testModifyCiphertext() local
166 Aead aead = createInstance(Random.randBytes(KEY_SIZE)); in testNullPlaintextOrCiphertext() local
196 Aead aead = createInstance(Random.randBytes(KEY_SIZE)); in testEmptyAssociatedData() local
238 Aead aead = createInstance(key); in testRandomNonce() local
284 Aead aead = createInstance(key); in testWycheproofVectors() local
349 Aead aead = ChaCha20Poly1305Jce.create(key); in testWithChaCha20Poly1305Key_noPrefix_works() local
373 Aead aead = ChaCha20Poly1305Jce.create(key); in testWithChaCha20Poly1305Key_tinkPrefix_works() local
397 Aead aead = ChaCha20Poly1305Jce.create(key); in testWithChaCha20Poly1305Key_crunchyPrefix_works() local
DXChaCha20Poly1305JceTest.java165 Aead aead = createInstance(Random.randBytes(KEY_SIZE)); in testEncryptDecrypt() local
180 Aead aead = createInstance(Random.randBytes(KEY_SIZE)); in testNullPlaintextOrCiphertext() local
218 Aead aead = createInstance(key); in testLongMessages() local
232 Aead aead = createInstance(key); in testModifyCiphertext() local
288 Aead aead = createInstance(key); in testRandomNonce() local
317 Aead aead = XChaCha20Poly1305Jce.create(key); in testWithXChaCha20Poly1305Key_noPrefix_works() local
343 Aead aead = XChaCha20Poly1305Jce.create(key); in testWithXChaCha20Poly1305Key_tinkPrefix_works() local
369 Aead aead = XChaCha20Poly1305Jce.create(key); in testWithXChaCha20Poly1305Key_crunchyPrefix_works() local
DLegacyFullAeadTest.java117 Aead aead = LegacyFullAead.create(t.key); in create_works() local
126 Aead aead = LegacyFullAead.create(t.key); in create_encrypt_correctOutputPrefix() local
136 Aead aead = LegacyFullAead.create(t.key); in create_decrypt_works() local
150 Aead aead = LegacyFullAead.create(rawAead, Bytes.copyFrom(outputPrefix)); in createWithOutputPrefix_works() local
/external/tink-java/src/test/java/com/google/crypto/tink/subtle/
DEncryptThenAuthenticateTest.java125 Aead aead = getAead(t.macKey, t.encKey, t.ivSize, t.tagLength, t.macAlg); in testRFCVectors() local
132 Aead aead = getAead(Random.randBytes(16), Random.randBytes(16), 16, 16, "HMACSHA256"); in testBitFlipCiphertext() local
147 Aead aead = getAead(Random.randBytes(16), Random.randBytes(16), 16, 16, "HMACSHA256"); in testBitFlipAad() local
162 Aead aead = getAead(Random.randBytes(16), Random.randBytes(16), 16, 16, "HMACSHA256"); in testEncryptDecrypt() local
176 Aead aead = getAead(Random.randBytes(16), Random.randBytes(16), 16, 16, "HMACSHA256"); in testNullPlaintextOrCiphertext() local
202 Aead aead = getAead(Random.randBytes(16), Random.randBytes(16), 16, 16, "HMACSHA256"); in testEmptyAssociatedData() local
235 Aead aead = getAead(Random.randBytes(16), Random.randBytes(16), 16, 16, "HMACSHA256"); in testTruncation() local
275 Aead aead = EncryptThenAuthenticate.create(key); in create_RFCVectors_works() local
300 Aead aead = EncryptThenAuthenticate.create(key); in create_encryptDecryptRaw_works() local
326 Aead aead = EncryptThenAuthenticate.create(key); in create_encryptTink_hasPrefix() local
[all …]
DChaCha20Poly1305Test.java91 Aead aead = createInstance(Random.randBytes(KEY_SIZE)); in testEncryptDecrypt() local
112 Aead aead = createInstance(key); in testLongMessages() local
125 Aead aead = createInstance(key); in testModifyCiphertext() local
160 Aead aead = createInstance(Random.randBytes(KEY_SIZE)); in testNullPlaintextOrCiphertext() local
189 Aead aead = createInstance(Random.randBytes(KEY_SIZE)); in testEmptyAssociatedData() local
230 Aead aead = createInstance(key); in testRandomNonce() local
275 Aead aead = createInstance(key); in testWycheproofVectors() local
323 Aead aead = ChaCha20Poly1305.create(key); in testWithChaCha20Poly1305Key_noPrefix_works() local
346 Aead aead = ChaCha20Poly1305.create(key); in testWithChaCha20Poly1305Key_tinkPrefix_works() local
369 Aead aead = ChaCha20Poly1305.create(key); in testWithChaCha20Poly1305Key_crunchyPrefix_works() local
DXChaCha20Poly1305Test.java146 Aead aead = createInstance(Random.randBytes(KEY_SIZE)); in testEncryptDecrypt() local
167 Aead aead = createInstance(key); in testLongMessages() local
178 Aead aead = createInstance(key); in testModifyCiphertext() local
231 Aead aead = createInstance(key); in testRandomNonce() local
258 Aead aead = XChaCha20Poly1305.create(key); in testWithXChaCha20Poly1305Key_noPrefix_works() local
282 Aead aead = XChaCha20Poly1305.create(key); in testWithXChaCha20Poly1305Key_tinkPrefix_works() local
306 Aead aead = XChaCha20Poly1305.create(key); in testWithXChaCha20Poly1305Key_crunchyPrefix_works() local
DAesGcmJceTest.java173 Aead aead = AesGcmJce.create(key); in testWithAesGcmKey_noPrefix_works() local
202 Aead aead = AesGcmJce.create(key); in testWithAesGcmKey_tinkPrefix_works() local
235 Aead aead = AesGcmJce.create(key); in testWithAesGcmKey_crunchyPrefix_works() local
498 Aead aead = AesGcmJce.create(key); in ciphertextStartsWithOutputPrefix() local
514 Aead aead = AesGcmJce.create(key); in encryptThenDecrypt_works() local
531 Aead aead = AesGcmJce.create(key); in computedLength_isAsExpected() local
/external/tink/java_src/src/test/java/com/google/crypto/tink/integration/awskms/
DAwsKmsAeadTest.java49 Aead aead = new AwsKmsAead(kms, KEY_ARN); in testEncryptDecryptWithKnownKeyArn_success() local
61 Aead aead = new AwsKmsAead(kmsThatDoentKnowKeyArn, KEY_ARN); in testEncryptWithUnknownKeyArn_fails() local
70 Aead aead = new AwsKmsAead(kms, KEY_ARN); in testDecryptWithInvalidKeyArn_fails() local
80 Aead aead = new AwsKmsAead(kms, KEY_ARN); in testDecryptWithDifferentKeyArn_fails() local
100 Aead aead = new AwsKmsAead(kms, KEY_ARN); in testDecryptWithAliasKeyArn_success() local
117 Aead aead = new AwsKmsAead(kms, KEY_ARN); in testDecryptWithInvalidKeyArn_success() local
/external/tink/java_src/src/test/java/com/google/crypto/tink/subtle/
DChaCha20Poly1305Test.java87 Aead aead = createInstance(Random.randBytes(KEY_SIZE)); in testEncryptDecrypt() local
108 Aead aead = createInstance(key); in testLongMessages() local
121 Aead aead = createInstance(key); in testModifyCiphertext() local
156 Aead aead = createInstance(Random.randBytes(KEY_SIZE)); in testNullPlaintextOrCiphertext() local
185 Aead aead = createInstance(Random.randBytes(KEY_SIZE)); in testEmptyAssociatedData() local
226 Aead aead = createInstance(key); in testRandomNonce() local
271 Aead aead = createInstance(key); in testWycheproofVectors() local
DEncryptThenAuthenticateTest.java111 Aead aead = getAead(t.macKey, t.encKey, t.ivSize, t.tagLength, t.macAlg); in testRFCVectors() local
118 Aead aead = getAead(Random.randBytes(16), Random.randBytes(16), 16, 16, "HMACSHA256"); in testBitFlipCiphertext() local
133 Aead aead = getAead(Random.randBytes(16), Random.randBytes(16), 16, 16, "HMACSHA256"); in testBitFlipAad() local
148 Aead aead = getAead(Random.randBytes(16), Random.randBytes(16), 16, 16, "HMACSHA256"); in testEncryptDecrypt() local
162 Aead aead = getAead(Random.randBytes(16), Random.randBytes(16), 16, 16, "HMACSHA256"); in testNullPlaintextOrCiphertext() local
188 Aead aead = getAead(Random.randBytes(16), Random.randBytes(16), 16, 16, "HMACSHA256"); in testEmptyAssociatedData() local
221 Aead aead = getAead(Random.randBytes(16), Random.randBytes(16), 16, 16, "HMACSHA256"); in testTruncation() local
/external/tink/java_src/src/test/java/com/google/crypto/tink/integration/gcpkms/
DGcpKmsIntegrationTest.java72 Aead aead = keysetHandle.getPrimitive(Aead.class); in kmsAead_encryptDecrypt() local
93 Aead aead = keysetHandle.getPrimitive(Aead.class); in kmsAeadEncryptAndDecryptWithoutAssociatedData_success() local
111 Aead aead = keysetHandle.getPrimitive(Aead.class); in kmsAeadDecryptWithDifferentKeyUri_fails() local
139 Aead aead = keysetHandle.getPrimitive(Aead.class); in kmsEnvelopeAead_encryptDecrypt() local
162 Aead aead = keysetHandle.getPrimitive(Aead.class); in kmsEnvelopeAeadDecryptWithDifferentKeyUri_fails() local
222 Aead aead = handle.getPrimitive(Aead.class); in decryptCiphertextEncryptedInBigQueryUsingAWrappedKeyset() local
/external/tink/cc/aead/internal/
Dssl_aead_test.cc105 util::StatusOr<std::unique_ptr<SslOneShotAead>> aead = CipherFromName( in TEST_P() local
122 void DoTestEncrypt(SslOneShotAead* aead, absl::string_view message, in DoTestEncrypt()
134 void DoTestDecrypt(SslOneShotAead* aead, absl::string_view message, in DoTestDecrypt()
148 util::StatusOr<std::unique_ptr<SslOneShotAead>> aead = CipherFromName( in TEST_P() local
171 void DoTestEncryptDecryptWithModifiedCiphertext(SslOneShotAead* aead, in DoTestEncryptDecryptWithModifiedCiphertext()
221 util::StatusOr<std::unique_ptr<SslOneShotAead>> aead = CipherFromName( in TEST_P() local
239 util::StatusOr<std::unique_ptr<SslOneShotAead>> aead = CipherFromName( in TEST_P() local
270 void TestDecryptWithEmptyAssociatedData(SslOneShotAead* aead, in TestDecryptWithEmptyAssociatedData()
286 void DoTestWithEmptyAssociatedData(SslOneShotAead* aead, absl::string_view iv, in DoTestWithEmptyAssociatedData()
306 util::StatusOr<std::unique_ptr<SslOneShotAead>> aead = CipherFromName( in TEST_P() local
[all …]
Dzero_copy_aead_wrapper.cc73 ZeroCopyAead& aead = aead_set_->get_primary()->get_primitive(); in Encrypt() local
100 ZeroCopyAead& aead = entry->get_primitive(); in Decrypt() local
119 ZeroCopyAead& aead = entry->get_primitive(); in Decrypt() local
141 std::unique_ptr<Aead> aead = in Wrap() local
Daead_from_zero_copy_test.cc61 AeadFromZeroCopy aead(std::move(mock_zero_copy_aead)); in TEST() local
75 AeadFromZeroCopy aead(std::move(mock_zero_copy_aead)); in TEST() local
91 AeadFromZeroCopy aead(std::move(mock_zero_copy_aead)); in TEST() local
105 AeadFromZeroCopy aead(std::move(mock_zero_copy_aead)); in TEST() local
/external/tink-java/src/main/java/com/google/crypto/tink/hybrid/internal/
DChaCha20Poly1305HpkeAead.java37 InsecureNonceChaCha20Poly1305Jce aead = InsecureNonceChaCha20Poly1305Jce.create(key); in seal() local
40 InsecureNonceChaCha20Poly1305 aead = new InsecureNonceChaCha20Poly1305(key); in seal() local
63 InsecureNonceChaCha20Poly1305Jce aead = InsecureNonceChaCha20Poly1305Jce.create(key); in open() local
67 InsecureNonceChaCha20Poly1305 aead = new InsecureNonceChaCha20Poly1305(key); in open() local
DHpkeContext.java37 private final HpkeAead aead; field in HpkeContext
51 HpkeAead aead) { in HpkeContext()
67 HpkeAead aead, in createContext()
95 byte[] recipientPublicKey, HpkeKem kem, HpkeKdf kdf, HpkeAead aead, byte[] info) in createSenderContext()
119 HpkeAead aead, in createAuthSenderContext()
146 HpkeAead aead, in createRecipientContext()
171 HpkeAead aead, in createAuthRecipientContext()
/external/tink/java_src/src/test/java/com/google/crypto/tink/hybrid/internal/
DAesGcmHpkeAeadTest.java64 AesGcmHpkeAead aead, byte[] mode, byte[] kemId, byte[] kdfId, byte[] aeadId) in testSealAndOpen()
83 AesGcmHpkeAead aead = new AesGcmHpkeAead(16); in sealAndOpen_aes128Gcm() local
94 AesGcmHpkeAead aead = new AesGcmHpkeAead(32); in sealAndOpen_aes256Gcm() local
110 AesGcmHpkeAead aead = new AesGcmHpkeAead(32); in seal_wrongKeyLength() local
128 AesGcmHpkeAead aead = new AesGcmHpkeAead(16); in open_wrongKeyLength() local
DChaCha20Poly1305HpkeAeadTest.java64 ChaCha20Poly1305HpkeAead aead, byte[] mode, byte[] kemId, byte[] kdfId, byte[] aeadId) in testSealAndOpen()
83 ChaCha20Poly1305HpkeAead aead = new ChaCha20Poly1305HpkeAead(); in sealAndOpen() local
94 ChaCha20Poly1305HpkeAead aead = new ChaCha20Poly1305HpkeAead(); in seal_wrongKeyLength() local
112 ChaCha20Poly1305HpkeAead aead = new ChaCha20Poly1305HpkeAead(); in open_wrongKeyLength() local
/external/tink-java/src/test/java/com/google/crypto/tink/hybrid/internal/
DAesGcmHpkeAeadTest.java61 AesGcmHpkeAead aead, byte[] mode, byte[] kemId, byte[] kdfId, byte[] aeadId) in testSealAndOpen()
80 AesGcmHpkeAead aead = new AesGcmHpkeAead(16); in sealAndOpen_aes128Gcm() local
91 AesGcmHpkeAead aead = new AesGcmHpkeAead(32); in sealAndOpen_aes256Gcm() local
107 AesGcmHpkeAead aead = new AesGcmHpkeAead(32); in seal_wrongKeyLength() local
125 AesGcmHpkeAead aead = new AesGcmHpkeAead(16); in open_wrongKeyLength() local
DChaCha20Poly1305HpkeAeadTest.java61 ChaCha20Poly1305HpkeAead aead, byte[] mode, byte[] kemId, byte[] kdfId, byte[] aeadId) in testSealAndOpen()
80 ChaCha20Poly1305HpkeAead aead = new ChaCha20Poly1305HpkeAead(); in sealAndOpen() local
91 ChaCha20Poly1305HpkeAead aead = new ChaCha20Poly1305HpkeAead(); in seal_wrongKeyLength() local
109 ChaCha20Poly1305HpkeAead aead = new ChaCha20Poly1305HpkeAead(); in open_wrongKeyLength() local
/external/tink/java_src/src/main/java/com/google/crypto/tink/hybrid/internal/
DHpkeContext.java36 private final HpkeAead aead; field in HpkeContext
50 HpkeAead aead) { in HpkeContext()
66 HpkeAead aead, in createContext()
94 HpkePublicKey recipientPublicKey, HpkeKem kem, HpkeKdf kdf, HpkeAead aead, byte[] info) in createSenderContext()
118 HpkeAead aead, in createAuthSenderContext()
145 HpkeAead aead, in createRecipientContext()
169 HpkeAead aead, in createAuthRecipientContext()
/external/tink/testing/cc/
Daead_impl_test.cc70 tink_testing_api::AeadImpl aead; in TEST_F() local
81 tink_testing_api::AeadImpl aead; in TEST_F() local
91 tink_testing_api::AeadImpl aead; in TEST_F() local
114 tink_testing_api::AeadImpl aead; in TEST_F() local
125 tink_testing_api::AeadImpl aead; in TEST_F() local
/external/tink-java/src/test/java/com/google/crypto/tink/custom/
DCustomAeadKeyManagerTest.java163 Aead aead = handle.getPrimitive(RegistryConfiguration.get(), Aead.class); in createEncryptAndDecrypt_success() local
183 Aead aead = handle.getPrimitive(RegistryConfiguration.get(), Aead.class); in importExistingKey_decrypts() local
196 Aead aead = handle.getPrimitive(RegistryConfiguration.get(), Aead.class); in encryptAndDecryptWithTinkPrefix_success() local
239 Aead aead = handle2.getPrimitive(RegistryConfiguration.get(), Aead.class); in keysetWithCustomAndTinkKeys_decrypts() local
248 Aead aead = handle.getPrimitive(RegistryConfiguration.get(), Aead.class); in serializeAndParse_decrypts() local
/external/tink/java_src/src/test/java/com/google/crypto/tink/custom/
DCustomAeadKeyManagerTest.java163 Aead aead = handle.getPrimitive(Aead.class); in createEncryptAndDecrypt_success() local
183 Aead aead = handle.getPrimitive(Aead.class); in importExistingKey_decrypts() local
196 Aead aead = handle.getPrimitive(Aead.class); in encryptAndDecryptWithTinkPrefix_success() local
239 Aead aead = handle2.getPrimitive(Aead.class); in keysetWithCustomAndTinkKeys_decrypts() local
248 Aead aead = handle.getPrimitive(Aead.class); in serializeAndParse_decrypts() local

12345678910>>...13