Lines Matching defs:out
93 int CMAC_CTX_copy(CMAC_CTX *out, const CMAC_CTX *in)
101 if (!EVP_CIPHER_CTX_copy(out->cctx, in->cctx))
103 memcpy(out->k1, in->k1, bl);
104 memcpy(out->k2, in->k2, bl);
105 memcpy(out->tbl, in->tbl, bl);
106 memcpy(out->last_block, in->last_block, bl);
107 out->nlast_block = in->nlast_block;
206 int CMAC_Final(CMAC_CTX *ctx, unsigned char *out, size_t *poutlen)
216 if (!out)
222 out[i] = ctx->last_block[i] ^ ctx->k1[i];
228 out[i] = ctx->last_block[i] ^ ctx->k2[i];
230 if (EVP_Cipher(ctx->cctx, out, out, bl) <= 0) {
231 OPENSSL_cleanse(out, bl);