Home
last modified time | relevance | path

Searched refs:cipher_ctx (Results 1 – 6 of 6) sorted by relevance

/external/boringssl/src/crypto/cipher_extra/
De_tls.c34 EVP_CIPHER_CTX cipher_ctx; member
49 EVP_CIPHER_CTX_cleanup(&tls_ctx->cipher_ctx); in aead_tls_cleanup()
81 EVP_CIPHER_CTX_init(&tls_ctx->cipher_ctx); in aead_tls_init()
89 if (!EVP_CipherInit_ex(&tls_ctx->cipher_ctx, cipher, NULL, &key[mac_key_len], in aead_tls_init()
97 EVP_CIPHER_CTX_set_padding(&tls_ctx->cipher_ctx, 0); in aead_tls_init()
111 if (!tls_ctx->cipher_ctx.encrypt) { in aead_tls_seal_scatter()
158 if (EVP_CIPHER_CTX_mode(&tls_ctx->cipher_ctx) == EVP_CIPH_CBC_MODE && in aead_tls_seal_scatter()
160 !EVP_EncryptInit_ex(&tls_ctx->cipher_ctx, NULL, NULL, NULL, nonce)) { in aead_tls_seal_scatter()
166 if (!EVP_EncryptUpdate(&tls_ctx->cipher_ctx, out, &len, in, (int)in_len)) { in aead_tls_seal_scatter()
170 unsigned block_size = EVP_CIPHER_CTX_block_size(&tls_ctx->cipher_ctx); in aead_tls_seal_scatter()
[all …]
De_ssl3.c33 EVP_CIPHER_CTX cipher_ctx; member
79 EVP_CIPHER_CTX_cleanup(&ssl3_ctx->cipher_ctx); in aead_ssl3_cleanup()
108 EVP_CIPHER_CTX_init(&ssl3_ctx->cipher_ctx); in aead_ssl3_init()
112 if (!EVP_CipherInit_ex(&ssl3_ctx->cipher_ctx, cipher, NULL, &key[mac_key_len], in aead_ssl3_init()
121 EVP_CIPHER_CTX_set_padding(&ssl3_ctx->cipher_ctx, 0); in aead_ssl3_init()
135 if (!ssl3_ctx->cipher_ctx.encrypt) { in aead_ssl3_seal_scatter()
173 if (!EVP_EncryptUpdate(&ssl3_ctx->cipher_ctx, out, &len, in, in aead_ssl3_seal_scatter()
178 const size_t block_size = EVP_CIPHER_CTX_block_size(&ssl3_ctx->cipher_ctx); in aead_ssl3_seal_scatter()
189 if (!EVP_EncryptUpdate(&ssl3_ctx->cipher_ctx, buf, &buf_len, mac, in aead_ssl3_seal_scatter()
199 if (!EVP_EncryptUpdate(&ssl3_ctx->cipher_ctx, out_tag + tag_len, &len, in aead_ssl3_seal_scatter()
[all …]
/external/boringssl/src/crypto/cmac/
Dcmac.c62 EVP_CIPHER_CTX cipher_ctx; member
74 EVP_CIPHER_CTX_init(&ctx->cipher_ctx); in CMAC_CTX_init()
78 EVP_CIPHER_CTX_cleanup(&ctx->cipher_ctx); in CMAC_CTX_cleanup()
153 !EVP_EncryptInit_ex(&ctx->cipher_ctx, cipher, NULL, key, kZeroIV) || in CMAC_Init()
154 !EVP_Cipher(&ctx->cipher_ctx, scratch, kZeroIV, AES_BLOCK_SIZE) || in CMAC_Init()
156 !EVP_EncryptInit_ex(&ctx->cipher_ctx, NULL, NULL, NULL, kZeroIV)) { in CMAC_Init()
169 return EVP_EncryptInit_ex(&ctx->cipher_ctx, NULL, NULL, NULL, kZeroIV); in CMAC_Reset()
197 if (!EVP_Cipher(&ctx->cipher_ctx, scratch, ctx->block, AES_BLOCK_SIZE)) { in CMAC_Update()
204 if (!EVP_Cipher(&ctx->cipher_ctx, scratch, in, AES_BLOCK_SIZE)) { in CMAC_Update()
240 return EVP_Cipher(&ctx->cipher_ctx, out, out, AES_BLOCK_SIZE); in CMAC_Final()
/external/syslinux/gpxe/src/net/
Dtls.c359 tx_cipherspec->cipher_ctx, in tls_generate_keys()
371 rx_cipherspec->cipher_ctx, in tls_generate_keys()
382 cipher_setiv ( tx_cipherspec->cipher, tx_cipherspec->cipher_ctx, key ); in tls_generate_keys()
388 cipher_setiv ( rx_cipherspec->cipher, rx_cipherspec->cipher_ctx, key ); in tls_generate_keys()
455 cipherspec->cipher_ctx = dynamic; dynamic += cipher->ctxsize; in tls_set_cipher()
1226 memcpy ( cipherspec->cipher_next_ctx, cipherspec->cipher_ctx, in tls_send_plaintext()
1247 memcpy ( tls->tx_cipherspec.cipher_ctx, in tls_send_plaintext()
1392 cipher_decrypt ( cipherspec->cipher, cipherspec->cipher_ctx, in tls_new_ciphertext()
/external/syslinux/gpxe/src/include/gpxe/
Dtls.h108 void *cipher_ctx; member
/external/boringssl/src/ssl/
Dt1_lib.cc3048 bssl::ScopedEVP_CIPHER_CTX cipher_ctx; in ssl_decrypt_ticket_with_cipher_ctx() local
3061 ssl, (uint8_t *)ticket /* name */, (uint8_t *)iv, cipher_ctx.get(), in ssl_decrypt_ticket_with_cipher_ctx()
3079 !EVP_DecryptInit_ex(cipher_ctx.get(), EVP_aes_128_cbc(), NULL, in ssl_decrypt_ticket_with_cipher_ctx()
3084 size_t iv_len = EVP_CIPHER_CTX_iv_length(cipher_ctx.get()); in ssl_decrypt_ticket_with_cipher_ctx()
3121 if (!EVP_DecryptUpdate(cipher_ctx.get(), plaintext.get(), &len1, ciphertext, in ssl_decrypt_ticket_with_cipher_ctx()
3123 !EVP_DecryptFinal_ex(cipher_ctx.get(), plaintext.get() + len1, &len2)) { in ssl_decrypt_ticket_with_cipher_ctx()