Home
last modified time | relevance | path

Searched refs:aad (Results 1 – 25 of 139) sorted by relevance

123456

/external/boringssl/src/crypto/hpke/
Dhpke_test_vectors.txt10 aad = 436f756e742d30
14 aad = 436f756e742d31
18 aad = 436f756e742d32
22 aad = 436f756e742d33
26 aad = 436f756e742d34
30 aad = 436f756e742d35
34 aad = 436f756e742d36
38 aad = 436f756e742d37
42 aad = 436f756e742d38
46 aad = 436f756e742d39
[all …]
/external/boringssl/src/third_party/wycheproof_testvectors/
Daes_gcm_siv_test.txt13 aad =
23 aad =
33 aad =
43 aad =
53 aad =
63 aad =
73 aad =
83 aad = 01
93 aad = 01
103 aad = 01
[all …]
Daes_gcm_test.txt12 aad =
21 aad = 00112233445566778899aabbccddeeff
30 aad = aac39231129872a2
39 aad =
48 aad =
57 aad =
66 aad =
75 aad =
84 aad =
93 aad =
[all …]
Dchacha20_poly1305_test.txt13 aad = 50515253c0c1c2c3c4c5c6c7
22 aad =
31 aad = bd506764f2d2c410
40 aad =
49 aad = 91ca6c592cbcca53
58 aad =
67 aad = 88364fc8060518bf
76 aad =
85 aad = 6c8cf2ab3820b695
94 aad =
[all …]
Dxchacha20_poly1305_test.txt13 aad = 50515253c0c1c2c3c4c5c6c7
22 aad =
31 aad = 8780fb400f94c55d
40 aad =
49 aad = 6384f4714ff18c18
58 aad =
67 aad = 322f82a87ee82997
76 aad =
85 aad = 9d53316bd2aa3e3d
94 aad =
[all …]
/external/boringssl/src/util/fipstools/acvp/acvptool/test/vectors/
DACVP-AES-CCM.bz2 ... : "AFT", 22 "tests": [ 23 { 24 "aad": "", 25 "iv": "94F5FB0B10AA4B473135DCA5A9", 26 "key ...
DACVP-AES-GCM.bz2 ... : "AFT", 23 "tests": [ 24 { 25 "aad": "5BFA5DA250", 26 "iv": "9CE4673C82E6F9B40034D00C",
/external/rust/crates/ring/src/
Daead.rs110 aad: Aad<A>, in open_in_place()
116 self.open_within(aad, in_out, 0..) in open_in_place()
165 aad: Aad<A>, in open_within()
175 aad, in open_within()
186 Aad(aad): Aad<A>, in open_within_()
193 aad: Aad<&[u8]>, in open_within_()
210 aad, in open_within_()
232 Aad::from(aad.as_ref()), in open_within_()
276 aad: Aad<A>, in seal_in_place()
283 self.seal_in_place_append_tag(aad, in_out) in seal_in_place()
[all …]
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLAeadCipher.java89 private byte[] aad; field in OpenSSLAeadCipher
133 aad = null; in reset()
342 evpAead, encodedKey, tagLengthInBytes, output, iv, input, aad); in doFinalInternal()
345 evpAead, encodedKey, tagLengthInBytes, output, iv, input, aad); in doFinalInternal()
365 tagLengthInBytes, output, outputOffset, iv, buf, 0, bufCount, aad); in doFinalInternal()
368 tagLengthInBytes, output, outputOffset, iv, buf, 0, bufCount, aad); in doFinalInternal()
406 if (aad == null) { in engineUpdateAAD()
407 aad = Arrays.copyOfRange(input, inputOffset, inputOffset + inputLen); in engineUpdateAAD()
409 int newSize = aad.length + inputLen; in engineUpdateAAD()
411 System.arraycopy(aad, 0, newaad, 0, aad.length); in engineUpdateAAD()
[all …]
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLAeadCipher.java85 private byte[] aad; field in OpenSSLAeadCipher
129 aad = null; in reset()
339 evpAead, encodedKey, tagLengthInBytes, output, iv, input, aad); in doFinalInternal()
342 evpAead, encodedKey, tagLengthInBytes, output, iv, input, aad); in doFinalInternal()
362 tagLengthInBytes, output, outputOffset, iv, buf, 0, bufCount, aad); in doFinalInternal()
365 tagLengthInBytes, output, outputOffset, iv, buf, 0, bufCount, aad); in doFinalInternal()
403 if (aad == null) { in engineUpdateAAD()
404 aad = Arrays.copyOfRange(input, inputOffset, inputOffset + inputLen); in engineUpdateAAD()
406 int newSize = aad.length + inputLen; in engineUpdateAAD()
408 System.arraycopy(aad, 0, newaad, 0, aad.length); in engineUpdateAAD()
[all …]
/external/grpc-grpc-java/alts/src/main/java/io/grpc/alts/internal/
DAesGcmAeadCrypter.java47 ByteBuffer ciphertext, ByteBuffer plaintext, @Nullable ByteBuffer aad, byte[] nonce) in encryptAad() argument
54 if (aad != null) { in encryptAad()
55 cipher.updateAAD(aad); in encryptAad()
61 ByteBuffer plaintext, ByteBuffer ciphertext, @Nullable ByteBuffer aad, byte[] nonce) in decryptAad() argument
68 if (aad != null) { in decryptAad()
69 cipher.updateAAD(aad); in decryptAad()
81 public void encrypt(ByteBuffer ciphertext, ByteBuffer plaintext, ByteBuffer aad, byte[] nonce) in encrypt() argument
83 encryptAad(ciphertext, plaintext, aad, nonce); in encrypt()
93 public void decrypt(ByteBuffer plaintext, ByteBuffer ciphertext, ByteBuffer aad, byte[] nonce) in decrypt() argument
95 decryptAad(plaintext, ciphertext, aad, nonce); in decrypt()
/external/python/cryptography/tests/wycheproof/
Dtest_aes.py54 aad = binascii.unhexlify(wycheproof.testcase["aad"])
60 enc.authenticate_additional_data(aad)
70 dec.authenticate_additional_data(aad)
82 dec.authenticate_additional_data(aad)
93 aad = binascii.unhexlify(wycheproof.testcase["aad"])
99 computed_ct = aesgcm.encrypt(iv, msg, aad)
101 computed_msg = aesgcm.decrypt(iv, ct + tag, aad)
105 aesgcm.encrypt(iv, msg, aad)
108 aesgcm.decrypt(iv, ct + tag, aad)
120 aad = binascii.unhexlify(wycheproof.testcase["aad"])
[all …]
Dtest_chacha20poly1305.py27 aad = binascii.unhexlify(wycheproof.testcase["aad"])
34 computed_ct = chacha.encrypt(iv, msg, aad)
36 computed_msg = chacha.decrypt(iv, ct + tag, aad)
41 chacha.encrypt(iv, msg, aad)
43 chacha.decrypt(iv, ct + tag, aad)
47 chacha.decrypt(iv, msg + tag, aad)
/external/wycheproof/java/com/google/security/wycheproof/testcases/
DAesGcmTest.java51 final byte[] aad; field in AesGcmTest.GcmTestVector
64 String aad, in GcmTestVector() argument
69 this.aad = TestUtil.hexToBytes(aad); in GcmTestVector()
152 cipher.updateAAD(test.aad); in testVectors()
175 cipher.updateAAD(test.aad); in testLateUpdateAAD()
205 cipher.updateAAD(test.aad); in testIvReuse()
230 cipher.updateAAD(test.aad); in testByteBuffer()
239 cipher.updateAAD(test.aad); in testByteBuffer()
257 cipher.updateAAD(test.aad); in testByteBufferAlias()
265 cipher.updateAAD(test.aad); in testByteBufferAlias()
[all …]
DAesEaxTest.java36 final byte[] aad; field in AesEaxTest.EaxTestVector
44 String message, String keyMaterial, String nonce, String aad, String ciphertext) { in EaxTestVector() argument
47 this.aad = TestUtil.hexToBytes(aad); in EaxTestVector()
261 cipher.updateAAD(test.aad); in testEax()
273 cipher.updateAAD(test.aad); in testLateUpdateAAD()
/external/conscrypt/common/src/test/java/org/conscrypt/javax/crypto/
DCipherBasicsTest.java162 public void arrayBasedAssessment(Cipher cipher, byte[] aad, byte[] tag, byte[] plaintext, in arrayBasedAssessment() argument
166 if (aad.length > 0) { in arrayBasedAssessment()
167 cipher.updateAAD(aad); in arrayBasedAssessment()
182 if (aad.length > 0) { in arrayBasedAssessment()
183 cipher.updateAAD(aad); in arrayBasedAssessment()
225 byte[] aad = decodeHex(line[AAD_INDEX]); in testAeadEncryption()
241 … arrayBasedAssessment(cipher, aad, tag, plaintext, ciphertext, key, params, transformation, p, in testAeadEncryption()
243 … bufferBasedAssessment(cipher, aad, tag, plaintext, ciphertext, key, params, transformation, p, in testAeadEncryption()
245 … bufferBasedAssessment(cipher, aad, tag, plaintext, ciphertext, key, params, transformation, p, in testAeadEncryption()
247 … bufferBasedAssessment(cipher, aad, tag, plaintext, ciphertext, key, params, transformation, p, in testAeadEncryption()
[all …]
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/javax/crypto/
DCipherBasicsTest.java163 public void arrayBasedAssessment(Cipher cipher, byte[] aad, byte[] tag, byte[] plaintext, in arrayBasedAssessment() argument
167 if (aad.length > 0) { in arrayBasedAssessment()
168 cipher.updateAAD(aad); in arrayBasedAssessment()
181 if (aad.length > 0) { in arrayBasedAssessment()
182 cipher.updateAAD(aad); in arrayBasedAssessment()
222 byte[] aad = decodeHex(line[AAD_INDEX]); in testAeadEncryption()
238 arrayBasedAssessment(cipher, aad, tag, plaintext, ciphertext, key, params, in testAeadEncryption()
240 bufferBasedAssessment(cipher, aad, tag, plaintext, ciphertext, key, params, in testAeadEncryption()
242 bufferBasedAssessment(cipher, aad, tag, plaintext, ciphertext, key, params, in testAeadEncryption()
244 bufferBasedAssessment(cipher, aad, tag, plaintext, ciphertext, key, params, in testAeadEncryption()
[all …]
/external/libwebsockets/lib/jose/jwe/
Dprivate-lib-jose-jwe.h40 uint8_t *aad, int aad_len);
47 uint8_t *aad, int aad_len);
54 uint8_t *enc_cek, uint8_t *aad, int aad_len);
76 uint8_t *aad, int aad_len);
80 uint8_t *cek, uint8_t *aad, int aad_len);
/external/rust/crates/quiche/deps/boringssl/src/util/fipstools/cavp/
Dcavp_aes_gcm_test.cc62 std::vector<uint8_t> key, iv, pt, aad, tag, ct; in TestAEADEncrypt() local
67 !t->GetBytes(&aad, "AAD") || in TestAEADEncrypt()
71 aad.size() * 8 != strtoul(aad_len_str.c_str(), nullptr, 0) || in TestAEADEncrypt()
77 if (!AEADEncrypt(ctx->aead, &ct, &tag, tag_len, key, pt, aad, iv)) { in TestAEADEncrypt()
103 std::vector<uint8_t> key, iv, ct, aad, tag, pt; in TestAEADDecrypt() local
106 !t->GetBytes(&aad, "AAD") || in TestAEADDecrypt()
113 aad.size() != aad_len || in TestAEADDecrypt()
121 AEADDecrypt(ctx->aead, &pt, pt_len, key, aad, ct, tag, iv); in TestAEADDecrypt()
/external/boringssl/src/util/fipstools/cavp/
Dcavp_aes_gcm_test.cc62 std::vector<uint8_t> key, iv, pt, aad, tag, ct; in TestAEADEncrypt() local
67 !t->GetBytes(&aad, "AAD") || in TestAEADEncrypt()
71 aad.size() * 8 != strtoul(aad_len_str.c_str(), nullptr, 0) || in TestAEADEncrypt()
77 if (!AEADEncrypt(ctx->aead, &ct, &tag, tag_len, key, pt, aad, iv)) { in TestAEADEncrypt()
103 std::vector<uint8_t> key, iv, ct, aad, tag, pt; in TestAEADDecrypt() local
106 !t->GetBytes(&aad, "AAD") || in TestAEADDecrypt()
113 aad.size() != aad_len || in TestAEADDecrypt()
121 AEADDecrypt(ctx->aead, &pt, pt_len, key, aad, ct, tag, iv); in TestAEADDecrypt()
/external/llvm-project/llvm/test/tools/llvm-mca/X86/Atom/
Dresources-x86_32.s6 aad label
7 aad $7 label
37 # CHECK-NEXT: 1 7 3.50 aad
38 # CHECK-NEXT: 1 7 3.50 aad $7
61 # CHECK-NEXT: 3.50 3.50 aad
62 # CHECK-NEXT: 3.50 3.50 aad $7
/external/llvm-project/llvm/test/tools/llvm-mca/X86/SandyBridge/
Dresources-x86_32.s6 aad label
7 aad $7 label
37 # CHECK-NEXT: 1 100 0.33 aad
38 # CHECK-NEXT: 1 100 0.33 aad $7
67 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - aad
68 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - aad $7
/external/llvm-project/llvm/test/tools/llvm-mca/X86/Generic/
Dresources-x86_32.s6 aad label
7 aad $7 label
37 # CHECK-NEXT: 1 100 0.33 aad
38 # CHECK-NEXT: 1 100 0.33 aad $7
67 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - aad
68 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - aad $7
/external/llvm-project/llvm/test/tools/llvm-mca/X86/Barcelona/
Dresources-x86_32.s6 aad label
7 aad $7 label
37 # CHECK-NEXT: 1 100 0.33 aad
38 # CHECK-NEXT: 1 100 0.33 aad $7
67 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - aad
68 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - aad $7
/external/llvm-project/llvm/test/tools/llvm-mca/X86/SLM/
Dresources-x86_32.s6 aad label
7 aad $7 label
37 # CHECK-NEXT: 1 100 1.00 aad
38 # CHECK-NEXT: 1 100 1.00 aad $7
67 # CHECK-NEXT: - - - 1.00 - - - - aad
68 # CHECK-NEXT: - - - 1.00 - - - - aad $7

123456