• Home
  • Raw
  • Download

Lines Matching refs:cctx

25     EVP_CIPHER_CTX *cctx;  member
60 ctx->cctx = EVP_CIPHER_CTX_new(); in CMAC_CTX_new()
61 if (ctx->cctx == NULL) { in CMAC_CTX_new()
71 EVP_CIPHER_CTX_reset(ctx->cctx); in CMAC_CTX_cleanup()
81 return ctx->cctx; in CMAC_CTX_get0_cipher_ctx()
89 EVP_CIPHER_CTX_free(ctx->cctx); in CMAC_CTX_free()
99 if ((bl = EVP_CIPHER_CTX_get_block_size(in->cctx)) < 0) in CMAC_CTX_copy()
101 if (!EVP_CIPHER_CTX_copy(out->cctx, in->cctx)) in CMAC_CTX_copy()
121 if (!EVP_EncryptInit_ex(ctx->cctx, NULL, NULL, NULL, zero_iv)) in CMAC_Init()
123 memset(ctx->tbl, 0, EVP_CIPHER_CTX_get_block_size(ctx->cctx)); in CMAC_Init()
131 if (!EVP_EncryptInit_ex(ctx->cctx, cipher, impl, NULL, NULL)) in CMAC_Init()
140 if (EVP_CIPHER_CTX_get0_cipher(ctx->cctx) == NULL) in CMAC_Init()
142 if (EVP_CIPHER_CTX_set_key_length(ctx->cctx, keylen) <= 0) in CMAC_Init()
144 if (!EVP_EncryptInit_ex(ctx->cctx, NULL, NULL, key, zero_iv)) in CMAC_Init()
146 if ((bl = EVP_CIPHER_CTX_get_block_size(ctx->cctx)) < 0) in CMAC_Init()
148 if (EVP_Cipher(ctx->cctx, ctx->tbl, zero_iv, bl) <= 0) in CMAC_Init()
154 if (!EVP_EncryptInit_ex(ctx->cctx, NULL, NULL, NULL, zero_iv)) in CMAC_Init()
172 if ((bl = EVP_CIPHER_CTX_get_block_size(ctx->cctx)) < 0) in CMAC_Update()
189 if (EVP_Cipher(ctx->cctx, ctx->tbl, ctx->last_block, bl) <= 0) in CMAC_Update()
194 if (EVP_Cipher(ctx->cctx, ctx->tbl, data, bl) <= 0) in CMAC_Update()
212 if ((bl = EVP_CIPHER_CTX_get_block_size(ctx->cctx)) < 0) in CMAC_Final()
230 if (EVP_Cipher(ctx->cctx, out, out, bl) <= 0) { in CMAC_Final()
248 return EVP_EncryptInit_ex(ctx->cctx, NULL, NULL, NULL, ctx->tbl); in CMAC_resume()