/external/boringssl/src/crypto/fipsmodule/cipher/ |
D | aead.c | 28 size_t EVP_AEAD_key_length(const EVP_AEAD *aead) { return aead->key_len; } in EVP_AEAD_key_length() argument 30 size_t EVP_AEAD_nonce_length(const EVP_AEAD *aead) { return aead->nonce_len; } in EVP_AEAD_nonce_length() argument 32 size_t EVP_AEAD_max_overhead(const EVP_AEAD *aead) { return aead->overhead; } in EVP_AEAD_max_overhead() argument 34 size_t EVP_AEAD_max_tag_len(const EVP_AEAD *aead) { return aead->max_tag_len; } in EVP_AEAD_max_tag_len() argument 40 EVP_AEAD_CTX *EVP_AEAD_CTX_new(const EVP_AEAD *aead, const uint8_t *key, in EVP_AEAD_CTX_new() argument 45 if (EVP_AEAD_CTX_init(ctx, aead, key, key_len, tag_len, NULL)) { in EVP_AEAD_CTX_new() 58 int EVP_AEAD_CTX_init(EVP_AEAD_CTX *ctx, const EVP_AEAD *aead, in EVP_AEAD_CTX_init() argument 61 if (!aead->init) { in EVP_AEAD_CTX_init() 63 ctx->aead = NULL; in EVP_AEAD_CTX_init() 66 return EVP_AEAD_CTX_init_with_direction(ctx, aead, key, key_len, tag_len, in EVP_AEAD_CTX_init() [all …]
|
/external/boringssl/src/crypto/cipher_extra/ |
D | aead_test.cc | 100 const EVP_AEAD *aead() { return GetParam().func(); } in aead() function in PerAEADTest 139 ctx.get(), aead(), key.data(), key.size(), tag_len, evp_aead_seal)); in TEST_P() 141 std::vector<uint8_t> out(in.size() + EVP_AEAD_max_overhead(aead())); in TEST_P() 162 ctx.get(), aead(), key.data(), key.size(), tag_len, evp_aead_open)); in TEST_P() 183 ctx.get(), aead(), key.data(), key.size(), tag_len, evp_aead_open)); in TEST_P() 198 ctx.get(), aead(), key.data(), key.size(), tag_len, evp_aead_open)); in TEST_P() 214 if (!aead()->seal_scatter_supports_extra_in) { in TEST_P() 236 ASSERT_TRUE(EVP_AEAD_CTX_init(ctx.get(), aead(), key.data(), key.size(), in TEST_P() 238 std::vector<uint8_t> out_tag(EVP_AEAD_max_overhead(aead()) + in.size()); in TEST_P() 286 ctx.get(), aead(), key.data(), key.size(), tag_len, evp_aead_seal)); in TEST_P() [all …]
|
D | e_tls.c | 65 if (key_len != EVP_AEAD_key_length(ctx->aead)) { in aead_tls_init() 147 if (nonce_len != EVP_AEAD_nonce_length(ctx->aead)) { in aead_tls_seal_scatter() 264 if (nonce_len != EVP_AEAD_nonce_length(ctx->aead)) { in aead_tls_open()
|
D | e_ssl3.c | 94 if (key_len != EVP_AEAD_key_length(ctx->aead)) { in aead_ssl3_init()
|
/external/boringssl/src/include/openssl/ |
D | aead.h | 129 OPENSSL_EXPORT size_t EVP_AEAD_key_length(const EVP_AEAD *aead); 133 OPENSSL_EXPORT size_t EVP_AEAD_nonce_length(const EVP_AEAD *aead); 137 OPENSSL_EXPORT size_t EVP_AEAD_max_overhead(const EVP_AEAD *aead); 142 OPENSSL_EXPORT size_t EVP_AEAD_max_tag_len(const EVP_AEAD *aead); 150 const EVP_AEAD *aead; member 184 OPENSSL_EXPORT EVP_AEAD_CTX *EVP_AEAD_CTX_new(const EVP_AEAD *aead, 201 OPENSSL_EXPORT int EVP_AEAD_CTX_init(EVP_AEAD_CTX *ctx, const EVP_AEAD *aead, 381 EVP_AEAD_CTX *ctx, const EVP_AEAD *aead, const uint8_t *key, size_t key_len,
|
/external/boringssl/src/ssl/test/runner/ |
D | cipher_suites.go | 87 aead func(version uint16, key, fixedNonce []byte) *tlsAead member 237 aead cipher.AEAD member 241 func (f *fixedNonceAEAD) Overhead() int { return f.aead.Overhead() } 245 return f.aead.Seal(out, f.sealNonce, plaintext, additionalData) 250 return f.aead.Open(out, f.openNonce, plaintext, additionalData) 258 aead, err := cipher.NewGCM(aes) 268 return &tlsAead{&xorNonceAEAD{nonce1, nonce2, aead}, false} 271 return &tlsAead{&fixedNonceAEAD{nonce1, nonce2, aead}, true} 287 aead cipher.AEAD member 291 func (x *xorNonceAEAD) Overhead() int { return x.aead.Overhead() } [all …]
|
D | chacha20_poly1305_test.go | 121 aead, err := newChaCha20Poly1305(key) 126 out, err := aead.Open(nil, nonce, output, ad) 133 out = aead.Seal(nil, nonce, input, ad) 139 _, err = aead.Open(nil, nonce, out, ad)
|
D | chacha20_poly1305.go | 128 aead := new(chaCha20Poly1305) 129 copy(aead.key[:], key) 130 return aead, nil
|
D | dtls.go | 348 } else if aead, ok := c.out.cipher.(*tlsAead); ok { 349 if aead.explicitNonce {
|
D | prf.go | 494 return suite.aead(version, key, iv)
|
D | handshake_server.go | 1768 if hs.suite.aead == nil { 1774 clientCipher = hs.suite.aead(c.vers, clientKey, clientIV) 1775 serverCipher = hs.suite.aead(c.vers, serverKey, serverIV)
|
D | conn.go | 1183 if aead, ok := c.out.cipher.(*tlsAead); ok && aead.explicitNonce {
|
D | handshake_client.go | 1338 clientCipher = hs.suite.aead(c.vers, clientKey, clientIV) 1339 serverCipher = hs.suite.aead(c.vers, serverKey, serverIV)
|
/external/boringssl/src/fipstools/ |
D | cavp_aes_gcm_test.cc | 32 const EVP_AEAD *aead; member 74 if (!AEADEncrypt(ctx->aead, &ct, &tag, tag_len, key, pt, aad, iv)) { in TestAEADEncrypt() 118 AEADDecrypt(ctx->aead, &pt, pt_len, key, aad, ct, tag, iv); in TestAEADDecrypt() 148 const EVP_AEAD *aead = GetAEAD(argv[2], mode == "enc"); in cavp_aes_gcm_test_main() local 149 if (aead == nullptr) { in cavp_aes_gcm_test_main() 154 TestCtx ctx = {aead}; in cavp_aes_gcm_test_main()
|
D | cavp_test_util.cc | 108 bool AEADEncrypt(const EVP_AEAD *aead, std::vector<uint8_t> *ct, in AEADEncrypt() argument 115 if (!EVP_AEAD_CTX_init(ctx.get(), aead, key.data(), key.size(), tag_len, in AEADEncrypt() 121 out.resize(pt.size() + EVP_AEAD_max_overhead(aead)); in AEADEncrypt() 136 bool AEADDecrypt(const EVP_AEAD *aead, std::vector<uint8_t> *pt, size_t pt_len, in AEADDecrypt() argument 143 if (!EVP_AEAD_CTX_init_with_direction(ctx.get(), aead, key.data(), key.size(), in AEADDecrypt()
|
D | cavp_test_util.h | 37 bool AEADEncrypt(const EVP_AEAD *aead, std::vector<uint8_t> *ct, 44 bool AEADDecrypt(const EVP_AEAD *aead, std::vector<uint8_t> *pt, size_t pt_len,
|
/external/boringssl/src/tool/ |
D | speed.cc | 203 static bool SpeedAEADChunk(const EVP_AEAD *aead, const std::string &name, in SpeedAEADChunk() argument 209 const size_t key_len = EVP_AEAD_key_length(aead); in SpeedAEADChunk() 210 const size_t nonce_len = EVP_AEAD_nonce_length(aead); in SpeedAEADChunk() 211 const size_t overhead_len = EVP_AEAD_max_overhead(aead); in SpeedAEADChunk() 238 if (!EVP_AEAD_CTX_init_with_direction(ctx.get(), aead, key.get(), key_len, in SpeedAEADChunk() 287 static bool SpeedAEAD(const EVP_AEAD *aead, const std::string &name, in SpeedAEAD() argument 293 return SpeedAEADChunk(aead, name + " (16 bytes)", 16, ad_len, in SpeedAEAD() 295 SpeedAEADChunk(aead, name + " (1350 bytes)", 1350, ad_len, in SpeedAEAD() 297 SpeedAEADChunk(aead, name + " (8192 bytes)", 8192, ad_len, in SpeedAEAD() 301 static bool SpeedAEADOpen(const EVP_AEAD *aead, const std::string &name, in SpeedAEADOpen() argument [all …]
|
/external/boringssl/src/ssl/ |
D | ssl_aead_ctx.cc | 61 const EVP_AEAD *aead; in Create() local 65 !ssl_cipher_get_evp_aead(&aead, &expected_mac_key_len, in Create() 102 aead_ctx->ctx_.get(), aead, enc_key.data(), enc_key.size(), in Create() 107 assert(EVP_AEAD_nonce_length(aead) <= EVP_AEAD_MAX_NONCE_LENGTH); in Create() 110 aead_ctx->variable_nonce_len_ = (uint8_t)EVP_AEAD_nonce_length(aead); in Create()
|
D | dtls_record.cc | 306 SSLAEADContext *aead = ssl->s3->aead_write_ctx.get(); in dtls_seal_record() local 311 aead = ssl->d1->last_aead_write_ctx.get(); in dtls_seal_record() 331 if (!aead->Seal(out + DTLS1_RT_HEADER_LENGTH, &ciphertext_len, in dtls_seal_record()
|
D | t1_enc.cc | 220 const EVP_AEAD *aead = NULL; in get_key_block_lengths() local 221 if (!ssl_cipher_get_evp_aead(&aead, out_mac_secret_len, out_iv_len, cipher, in get_key_block_lengths() 227 *out_key_len = EVP_AEAD_key_length(aead); in get_key_block_lengths()
|
D | tls13_enc.cc | 148 const EVP_AEAD *aead; in tls13_set_traffic_key() local 150 if (!ssl_cipher_get_evp_aead(&aead, &discard, &discard, session->cipher, in tls13_set_traffic_key() 158 size_t key_len = EVP_AEAD_key_length(aead); in tls13_set_traffic_key() 166 size_t iv_len = EVP_AEAD_nonce_length(aead); in tls13_set_traffic_key()
|
/external/boringssl/src/util/ |
D | doc.config | 49 "include/openssl/aead.h",
|
/external/iproute2/ip/ |
D | xfrm_state.c | 455 struct xfrm_algo_aead aead; in xfrm_state_modify() member 521 alg.u.aead.alg_icv_len = icvlen; in xfrm_state_modify() 523 buf = alg.u.aead.alg_key; in xfrm_state_modify() 524 len = sizeof(alg.u.aead); in xfrm_state_modify()
|
/external/scapy/scapy/layers/tls/crypto/ |
D | cipher_aead.py | 29 from cryptography.hazmat.primitives.ciphers.aead import (AESCCM,
|
/external/python/cpython3/Modules/ |
D | _ssl.c | 1589 int aead, nid; in cipher_to_dict() local 1604 aead = SSL_CIPHER_is_aead(cipher); in cipher_to_dict() 1628 ,"aead", aead ? Py_True : Py_False, in cipher_to_dict()
|