Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/cipher_extra/
De_tls.c34 EVP_CIPHER_CTX cipher_ctx; member
59 EVP_CIPHER_CTX_cleanup(&tls_ctx->cipher_ctx); in aead_tls_cleanup()
84 EVP_CIPHER_CTX_init(&tls_ctx->cipher_ctx); in aead_tls_init()
91 if (!EVP_CipherInit_ex(&tls_ctx->cipher_ctx, cipher, NULL, &key[mac_key_len], in aead_tls_init()
98 EVP_CIPHER_CTX_set_padding(&tls_ctx->cipher_ctx, 0); in aead_tls_init()
109 if (EVP_CIPHER_CTX_mode(&tls_ctx->cipher_ctx) != EVP_CIPH_CBC_MODE) { in aead_tls_tag_len()
114 const size_t block_size = EVP_CIPHER_CTX_block_size(&tls_ctx->cipher_ctx); in aead_tls_tag_len()
132 if (!tls_ctx->cipher_ctx.encrypt) { in aead_tls_seal_scatter()
178 if (EVP_CIPHER_CTX_mode(&tls_ctx->cipher_ctx) == EVP_CIPH_CBC_MODE && in aead_tls_seal_scatter()
180 !EVP_EncryptInit_ex(&tls_ctx->cipher_ctx, NULL, NULL, NULL, nonce)) { in aead_tls_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()
128 if (!EVP_CIPHER_CTX_copy(&out->cipher_ctx, &in->cipher_ctx)) { in CMAC_CTX_copy()
181 !EVP_EncryptInit_ex(&ctx->cipher_ctx, cipher, NULL, key, kZeroIV) || in CMAC_Init()
182 !EVP_Cipher(&ctx->cipher_ctx, scratch, kZeroIV, block_size) || in CMAC_Init()
184 !EVP_EncryptInit_ex(&ctx->cipher_ctx, NULL, NULL, NULL, kZeroIV)) { in CMAC_Init()
202 return EVP_EncryptInit_ex(&ctx->cipher_ctx, NULL, NULL, NULL, kZeroIV); in CMAC_Reset()
206 size_t block_size = EVP_CIPHER_CTX_block_size(&ctx->cipher_ctx); in CMAC_Update()
232 if (!EVP_Cipher(&ctx->cipher_ctx, scratch, ctx->block, block_size)) { in CMAC_Update()
[all …]
/external/boringssl/src/ssl/
Dt1_lib.cc3432 Array<uint8_t> *out, EVP_CIPHER_CTX *cipher_ctx, HMAC_CTX *hmac_ctx, in decrypt_ticket_with_cipher_ctx() argument
3434 size_t iv_len = EVP_CIPHER_CTX_iv_length(cipher_ctx); in decrypt_ticket_with_cipher_ctx()
3472 if (!EVP_DecryptUpdate(cipher_ctx, plaintext.data(), &len1, ciphertext.data(), in decrypt_ticket_with_cipher_ctx()
3474 !EVP_DecryptFinal_ex(cipher_ctx, plaintext.data() + len1, &len2)) { in decrypt_ticket_with_cipher_ctx()
3489 ScopedEVP_CIPHER_CTX cipher_ctx; in ssl_decrypt_ticket_with_cb() local
3498 const_cast<uint8_t *>(iv.data()), cipher_ctx.get(), hmac_ctx.get(), in ssl_decrypt_ticket_with_cb()
3509 return decrypt_ticket_with_cipher_ctx(out, cipher_ctx.get(), hmac_ctx.get(), in ssl_decrypt_ticket_with_cb()
3529 ScopedEVP_CIPHER_CTX cipher_ctx; in ssl_decrypt_ticket_with_ticket_keys() local
3543 !EVP_DecryptInit_ex(cipher_ctx.get(), cipher, NULL, in ssl_decrypt_ticket_with_ticket_keys()
3548 return decrypt_ticket_with_cipher_ctx(out, cipher_ctx.get(), hmac_ctx.get(), in ssl_decrypt_ticket_with_ticket_keys()
/external/u-boot/tools/
Dmxsimage.c177 EVP_CIPHER_CTX *cipher_ctx; member
217 ictx->cipher_ctx = ctx; in sb_aes_init()
225 EVP_CIPHER_CTX *ctx = ictx->cipher_ctx; in sb_aes_crypt()
256 EVP_CIPHER_CTX *ctx = ictx->cipher_ctx; in sb_aes_reinit()
434 sb_aes_deinit(ictx->cipher_ctx); in sb_encrypt_image()
2122 sb_aes_deinit(ictx->cipher_ctx); in sb_build_tree_from_img()