/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:__anon4767 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 | 32 EVP_CIPHER_CTX cipher_ctx; member in struct:__anon4768 47 EVP_CIPHER_CTX_cleanup(&tls_ctx->cipher_ctx); 81 EVP_CIPHER_CTX_init(&tls_ctx->cipher_ctx); 89 if (!EVP_CipherInit_ex(&tls_ctx->cipher_ctx, cipher, NULL, &key[mac_key_len], 97 EVP_CIPHER_CTX_set_padding(&tls_ctx->cipher_ctx, 0); 110 if (!tls_ctx->cipher_ctx.encrypt) { 162 if (EVP_CIPHER_CTX_mode(&tls_ctx->cipher_ctx) == EVP_CIPH_CBC_MODE && 164 !EVP_EncryptInit_ex(&tls_ctx->cipher_ctx, NULL, NULL, NULL, nonce)) { 170 if (!EVP_EncryptUpdate(&tls_ctx->cipher_ctx, out, &len, in, 177 if (!EVP_EncryptUpdate(&tls_ctx->cipher_ctx, out + total, &len, mac [all...] |