/external/wycheproof/java/com/google/security/wycheproof/testcases/ |
D | AesGcmTest.java | 51 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 …]
|
D | AesEaxTest.java | 36 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()
|
D | CipherOutputStreamTest.java | 61 public byte[] aad; field in CipherOutputStreamTest.TestVector 71 this.aad = randomBytes(aadSize); in TestVector() 74 cipher.updateAAD(aad); in TestVector() 107 cipher.updateAAD(t.aad); in testEncrypt() 121 cipher.updateAAD(t.aad); in testDecrypt() 135 cipher.updateAAD(t.aad); in testCorruptDecrypt() 166 cipher.updateAAD(t.aad); in testCorruptDecryptEmpty()
|
D | CipherInputStreamTest.java | 61 public byte[] aad; field in CipherInputStreamTest.TestVector 72 this.aad = randomBytes(aadSize); in TestVector() 75 cipher.updateAAD(aad); in TestVector() 108 cipher.updateAAD(t.aad); in testEncrypt() 132 cipher.updateAAD(t.aad); in testDecrypt() 163 cipher.updateAAD(t.aad); in testCorruptDecrypt() 197 cipher.updateAAD(t.aad); in testCorruptDecryptEmpty()
|
/external/syslinux/gpxe/src/net/80211/ |
D | wpa_ccmp.c | 261 const void *aad, void *mic ) in ccmp_cbc_mac() argument 280 memcpy ( B + 2, aad, 14 ); in ccmp_cbc_mac() 285 memcpy ( B, aad + 14, 8 ); in ccmp_cbc_mac() 328 struct ccmp_aad aad; in ccmp_encrypt() local 358 aad.fc = hdr->fc & CCMP_AAD_FC_MASK; in ccmp_encrypt() 359 memcpy ( aad.a1, hdr->addr1, 3 * ETH_ALEN ); /* all 3 at once */ in ccmp_encrypt() 360 aad.seq = hdr->seq & CCMP_AAD_SEQ_MASK; in ccmp_encrypt() 363 ccmp_cbc_mac ( ctx, &nonce, iob->data + hdrlen, datalen, &aad, mic ); in ccmp_encrypt() 396 struct ccmp_aad aad; in ccmp_decrypt() local 430 aad.fc = ( hdr->fc & CCMP_AAD_FC_MASK ) | IEEE80211_FC_PROTECTED; in ccmp_decrypt() [all …]
|
/external/boringssl/src/fipstools/ |
D | cavp_aes_gcm_test.cc | 59 std::vector<uint8_t> key, iv, pt, aad, tag, ct; in TestAEADEncrypt() local 64 !t->GetBytes(&aad, "AAD") || in TestAEADEncrypt() 68 aad.size() * 8 != strtoul(aad_len_str.c_str(), nullptr, 0) || in TestAEADEncrypt() 74 if (!AEADEncrypt(ctx->aead, &ct, &tag, tag_len, key, pt, aad, iv)) { in TestAEADEncrypt() 100 std::vector<uint8_t> key, iv, ct, aad, tag, pt; in TestAEADDecrypt() local 103 !t->GetBytes(&aad, "AAD") || in TestAEADDecrypt() 110 aad.size() != aad_len || in TestAEADDecrypt() 118 AEADDecrypt(ctx->aead, &pt, pt_len, key, aad, ct, tag, iv); in TestAEADDecrypt()
|
D | cavp_test_util.cc | 112 const std::vector<uint8_t> &aad, in AEADEncrypt() argument 124 iv.size(), pt.data(), pt.size(), aad.data(), in AEADEncrypt() 125 aad.size())) { in AEADEncrypt() 138 const std::vector<uint8_t> &aad, in AEADDecrypt() argument 154 iv.data(), iv.size(), in.data(), in.size(), aad.data(), in AEADDecrypt() 155 aad.size()) || in AEADDecrypt()
|
D | cavp_test_util.h | 41 const std::vector<uint8_t> &aad, 46 const std::vector<uint8_t> &aad,
|
/external/boringssl/src/crypto/cipher_extra/ |
D | cipher_test.cc | 119 const std::vector<uint8_t> &aad, in TestOperation() argument 158 if (!aad.empty()) { in TestOperation() 160 EVP_CipherUpdate(ctx.get(), nullptr, &unused, aad.data(), aad.size())); in TestOperation() 199 std::vector<uint8_t> key, iv, plaintext, ciphertext, aad, tag; in TestCipher() local 207 ASSERT_TRUE(t->GetBytes(&aad, "AAD")); in TestCipher() 236 plaintext, ciphertext, aad, tag); in TestCipher() 242 plaintext, ciphertext, aad, tag); in TestCipher()
|
/external/wpa_supplicant_8/src/crypto/ |
D | aes-gcm.c | 229 static void aes_gcm_ghash(const u8 *H, const u8 *aad, size_t aad_len, in aes_gcm_ghash() argument 241 ghash(H, aad, aad_len, S); in aes_gcm_ghash() 256 const u8 *aad, size_t aad_len, u8 *crypt, u8 *tag) in aes_gcm_ae() argument 272 aes_gcm_ghash(H, aad, aad_len, crypt, plain_len, S); in aes_gcm_ae() 290 const u8 *aad, size_t aad_len, const u8 *tag, u8 *plain) in aes_gcm_ad() argument 306 aes_gcm_ghash(H, aad, aad_len, crypt, crypt_len, S); in aes_gcm_ad() 323 const u8 *aad, size_t aad_len, u8 *tag) in aes_gmac() argument 325 return aes_gcm_ae(key, key_len, iv, iv_len, NULL, 0, aad, aad_len, NULL, in aes_gmac()
|
D | aes_wrap.h | 55 const u8 *aad, size_t aad_len, 60 const u8 *aad, size_t aad_len, const u8 *tag, 64 const u8 *aad, size_t aad_len, u8 *tag); 67 const u8 *aad, size_t aad_len, u8 *crypt, u8 *auth); 70 const u8 *aad, size_t aad_len, const u8 *auth,
|
D | aes-ccm.c | 29 const u8 *aad, size_t aad_len, size_t plain_len, in aes_ccm_auth_start() argument 50 os_memcpy(aad_buf + 2, aad, aad_len); in aes_ccm_auth_start() 150 const u8 *aad, size_t aad_len, u8 *crypt, u8 *auth) in aes_ccm_ae() argument 163 aes_ccm_auth_start(aes, M, L, nonce, aad, aad_len, plain_len, x); in aes_ccm_ae() 180 const u8 *aad, size_t aad_len, const u8 *auth, u8 *plain) in aes_ccm_ad() argument 201 aes_ccm_auth_start(aes, M, L, nonce, aad, aad_len, crypt_len, x); in aes_ccm_ad()
|
/external/nos/host/android/hals/keymaster/test/ |
D | import_wrapped_key_test.cpp | 156 const hidl_vec<uint8_t>& aad, in ImportWrappedKeyRequestMatcher() argument 165 aad_(aad), in ImportWrappedKeyRequestMatcher() 224 (const uint8_t *)request.aad().data(), in MatchAndExplain() 225 request.aad().size())) { in MatchAndExplain() 302 const hidl_vec<uint8_t>& aad, in ImportWrappedKeyRequestEq() argument 309 encrypted_import_key, aad, gcm_tag, in ImportWrappedKeyRequestEq()
|
/external/icu/icu4c/source/data/locales/ |
D | so.txt | 282 "Rubaca 1aad", 283 "Rubaca 2aad", 284 "Rubaca 3aad", 285 "Rubaca 4aad", 290 "Rubaca 1aad", 291 "Rubaca 2aad", 292 "Rubaca 3aad", 293 "Rubaca 4aad",
|
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/crypto/ |
D | CipherBasicsTest.java | 172 byte[] aad = toBytes(line[AAD_INDEX]); in testAeadEncryption() 189 if (aad.length > 0) { in testAeadEncryption() 190 cipher.updateAAD(aad); in testAeadEncryption() 201 if (aad.length > 0) { in testAeadEncryption() 202 cipher.updateAAD(aad); in testAeadEncryption()
|
D | CipherTest.java | 3371 public final byte[] aad; field in CipherTest.CipherTestParam 3382 Key decryptKey, byte[] aad, byte[] plaintext, byte[] plaintextPadded, in CipherTestParam() argument 3388 this.aad = aad; in CipherTestParam() 3396 byte[] aad, byte[] plaintext, byte[] plaintextPadded, byte[] ciphertext, in CipherTestParam() argument 3398 this(transformation, spec, key, key, aad, plaintext, plaintextPadded, ciphertext, in CipherTestParam() 3403 byte[] aad, byte[] plaintext, byte[] plaintextPadded, byte[] ciphertext) { in CipherTestParam() argument 3404 this(transformation, spec, key, aad, plaintext, plaintextPadded, ciphertext, in CipherTestParam() 3734 if (p.aad != null) { in checkCipher() 3735 c.updateAAD(p.aad); in checkCipher() 3837 if (p.aad != null) { in checkCipher() [all …]
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | OpenSSLCipher.java | 1041 private byte[] aad; field in OpenSSLCipher.EVP_AEAD 1085 aad = null; in reset() 1223 tagLengthInBytes, output, outputOffset, iv, buf, 0, bufCount, aad); in doFinalInternal() 1226 tagLengthInBytes, output, outputOffset, iv, buf, 0, bufCount, aad); in doFinalInternal() 1264 if (aad == null) { in engineUpdateAAD() 1265 aad = Arrays.copyOfRange(input, inputOffset, inputOffset + inputLen); in engineUpdateAAD() 1267 int newSize = aad.length + inputLen; in engineUpdateAAD() 1269 System.arraycopy(aad, 0, newaad, 0, aad.length); in engineUpdateAAD() 1270 System.arraycopy(input, inputOffset, newaad, aad.length, inputLen); in engineUpdateAAD() 1271 aad = newaad; in engineUpdateAAD()
|
/external/nos/host/android/hals/keymaster/ |
D | import_wrapped_key.cpp | 377 CBS aad; in import_wrapped_key_request() local 378 if (!CBS_get_asn1_element(&child, &aad, CBS_ASN1_SEQUENCE)) { in import_wrapped_key_request() 383 request->set_aad(CBS_data(&aad), CBS_len(&aad)); in import_wrapped_key_request() 386 if (!CBS_get_asn1(&aad, &keyDescription, CBS_ASN1_SEQUENCE)) { in import_wrapped_key_request()
|
/external/llvm/test/MC/X86/ |
D | x86-16.s | 570 aad $1 574 aad $0xA 578 aad
|
D | x86-32.s | 711 aad $1 715 aad $0xA 719 aad
|
/external/swiftshader/third_party/LLVM/test/MC/X86/ |
D | x86-32.s | 614 aad $1 618 aad $0xA 622 aad
|
/external/boringssl/src/crypto/fipsmodule/modes/ |
D | gcm.c | 485 int CRYPTO_gcm128_aad(GCM128_CONTEXT *ctx, const uint8_t *aad, size_t len) { in CRYPTO_gcm128_aad() argument 509 ctx->Xi.c[n] ^= *(aad++); in CRYPTO_gcm128_aad() 525 GHASH(ctx, aad, len_blocks); in CRYPTO_gcm128_aad() 526 aad += len_blocks; in CRYPTO_gcm128_aad() 532 ctx->Xi.c[i] ^= aad[i]; in CRYPTO_gcm128_aad() 535 aad += 16; in CRYPTO_gcm128_aad() 544 ctx->Xi.c[i] ^= aad[i]; in CRYPTO_gcm128_aad()
|
/external/wpa_supplicant_8/src/ap/ |
D | wpa_auth.c | 1478 const u8 *aad[1]; in __wpa_send_eapol() local 1489 aad[0] = (u8 *) hdr; in __wpa_send_eapol() 1492 1, aad, aad_len, key_mic + 2) < 0) { in __wpa_send_eapol() 2161 const u8 *aad[1]; in wpa_aead_decrypt() local 2182 aad[0] = buf; in wpa_aead_decrypt() 2185 1, aad, aad_len, tmp) < 0) { in wpa_aead_decrypt() 2311 const u8 *aad[5]; in fils_decrypt_assoc() local 2357 aad[0] = mgmt->sa; in fils_decrypt_assoc() 2360 aad[1] = mgmt->da; in fils_decrypt_assoc() 2363 aad[2] = sm->SNonce; in fils_decrypt_assoc() [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | mesh_rsn.c | 529 const u8 *aad[] = { rsn->wpa_s->own_addr, sta->addr, cat }; in mesh_rsn_protect_frame() local 610 aad, aad_len, mic_payload)) { in mesh_rsn_protect_frame() 633 const u8 *aad[] = { sta->addr, wpa_s->own_addr, cat }; in mesh_rsn_process_ampe() local 681 aad, aad_len, ampe_buf)) { in mesh_rsn_process_ampe()
|
/external/nos/host/generic/nugget/proto/nugget/app/protoapi/ |
D | testing_api.proto | 61 bytes aad = 4; field
|