/external/boringssl/src/crypto/cmac/ |
cmac.c | 60 EVP_CIPHER_CTX cipher_ctx; member in struct:cmac_ctx_st 72 EVP_CIPHER_CTX_init(&ctx->cipher_ctx); 76 EVP_CIPHER_CTX_cleanup(&ctx->cipher_ctx); 151 !EVP_EncryptInit_ex(&ctx->cipher_ctx, cipher, NULL, key, kZeroIV) || 152 !EVP_Cipher(&ctx->cipher_ctx, scratch, kZeroIV, AES_BLOCK_SIZE) || 154 !EVP_EncryptInit_ex(&ctx->cipher_ctx, NULL, NULL, NULL, kZeroIV)) { 167 return EVP_EncryptInit_ex(&ctx->cipher_ctx, NULL, NULL, NULL, kZeroIV); 195 if (!EVP_Cipher(&ctx->cipher_ctx, scratch, ctx->block, AES_BLOCK_SIZE)) { 202 if (!EVP_Cipher(&ctx->cipher_ctx, scratch, in, AES_BLOCK_SIZE)) { 238 return EVP_Cipher(&ctx->cipher_ctx, out, out, AES_BLOCK_SIZE) [all...] |
/external/boringssl/src/crypto/cipher/ |
e_ssl3.c | 31 EVP_CIPHER_CTX cipher_ctx; member in struct:__anon5802 77 EVP_CIPHER_CTX_cleanup(&ssl3_ctx->cipher_ctx); 108 EVP_CIPHER_CTX_init(&ssl3_ctx->cipher_ctx); 112 if (!EVP_CipherInit_ex(&ssl3_ctx->cipher_ctx, cipher, NULL, &key[mac_key_len], 121 EVP_CIPHER_CTX_set_padding(&ssl3_ctx->cipher_ctx, 0); 134 if (!ssl3_ctx->cipher_ctx.encrypt) { 172 if (!EVP_EncryptUpdate(&ssl3_ctx->cipher_ctx, out, &len, in, 179 if (!EVP_EncryptUpdate(&ssl3_ctx->cipher_ctx, out + total, &len, mac, 185 unsigned block_size = EVP_CIPHER_CTX_block_size(&ssl3_ctx->cipher_ctx); 188 assert(EVP_CIPHER_CTX_mode(&ssl3_ctx->cipher_ctx) == EVP_CIPH_CBC_MODE) [all...] |
e_tls.c | 33 EVP_CIPHER_CTX cipher_ctx; member in struct:__anon5803 48 EVP_CIPHER_CTX_cleanup(&tls_ctx->cipher_ctx); 82 EVP_CIPHER_CTX_init(&tls_ctx->cipher_ctx); 90 if (!EVP_CipherInit_ex(&tls_ctx->cipher_ctx, cipher, NULL, &key[mac_key_len], 98 EVP_CIPHER_CTX_set_padding(&tls_ctx->cipher_ctx, 0); 111 if (!tls_ctx->cipher_ctx.encrypt) { 158 if (EVP_CIPHER_CTX_mode(&tls_ctx->cipher_ctx) == EVP_CIPH_CBC_MODE && 160 !EVP_EncryptInit_ex(&tls_ctx->cipher_ctx, NULL, NULL, NULL, nonce)) { 166 if (!EVP_EncryptUpdate(&tls_ctx->cipher_ctx, out, &len, in, 173 if (!EVP_EncryptUpdate(&tls_ctx->cipher_ctx, out + total, &len, mac [all...] |
/external/boringssl/src/ssl/ |
t1_lib.c | 2496 EVP_CIPHER_CTX cipher_ctx; local [all...] |