Home
last modified time | relevance | path

Searched refs:ctx_size (Results 1 – 8 of 8) sorted by relevance

/external/boringssl/src/crypto/digest/
Ddigest.c91 if (ctx->digest && ctx->digest->ctx_size && ctx->md_data) { in EVP_MD_CTX_cleanup()
92 OPENSSL_cleanse(ctx->md_data, ctx->digest->ctx_size); in EVP_MD_CTX_cleanup()
134 if (in->md_data && in->digest->ctx_size) { in EVP_MD_CTX_copy_ex()
138 out->md_data = OPENSSL_malloc(in->digest->ctx_size); in EVP_MD_CTX_copy_ex()
144 memcpy(out->md_data, in->md_data, in->digest->ctx_size); in EVP_MD_CTX_copy_ex()
167 if (ctx->digest && ctx->digest->ctx_size > 0) { in EVP_DigestInit_ex()
171 if (type->ctx_size > 0) { in EVP_DigestInit_ex()
172 ctx->md_data = OPENSSL_malloc(type->ctx_size); in EVP_DigestInit_ex()
202 OPENSSL_cleanse(ctx->md_data, ctx->digest->ctx_size); in EVP_DigestFinal_ex()
Dinternal.h91 unsigned ctx_size; member
/external/boringssl/src/crypto/cipher/
Dcipher.c107 OPENSSL_cleanse(c->cipher_data, c->cipher->ctx_size); in EVP_CIPHER_CTX_cleanup()
131 if (in->cipher_data && in->cipher->ctx_size) { in EVP_CIPHER_CTX_copy()
132 out->cipher_data = OPENSSL_malloc(in->cipher->ctx_size); in EVP_CIPHER_CTX_copy()
137 memcpy(out->cipher_data, in->cipher_data, in->cipher->ctx_size); in EVP_CIPHER_CTX_copy()
170 if (ctx->cipher->ctx_size) { in EVP_CipherInit_ex()
171 ctx->cipher_data = OPENSSL_malloc(ctx->cipher->ctx_size); in EVP_CipherInit_ex()
/external/tpm2/
DCpriHash.c90 pAssert(ctxt->digest->ctx_size <= OSSL_HASH_STATE_DATA_SIZE); in MarshalHashState()
92 memcpy(buf, (void*) ctxt->md_data, ctxt->digest->ctx_size); in MarshalHashState()
93 return (UINT16)ctxt->digest->ctx_size; in MarshalHashState()
119 pAssert(ctxt->digest->ctx_size < sizeof(ALIGNED_HASH_STATE)); in GetHashState()
120 memcpy(ctxt->md_data, buf, ctxt->digest->ctx_size); in GetHashState()
122 return (UINT16)ctxt->digest->ctx_size; in GetHashState()
DOsslCryptoEngine.h59 unsigned ctx_size; member
Dpart4.txt26544 59 pAssert(ctxt->digest->ctx_size <= OSSL_HASH_STATE_DATA_SIZE);
26547 62 memcpy(buf, (void*) ctxt->md_data, ctxt->digest->ctx_size);
26549 64 return (UINT16)ctxt->digest->ctx_size;
26580 88 pAssert(ctxt->digest->ctx_size < sizeof(ALIGNED_HASH_STATE));
26581 89 memcpy(ctxt->md_data, buf, ctxt->digest->ctx_size);
26588 90 return (UINT16)ctxt->digest->ctx_size;
/external/opencv3/3rdparty/include/ffmpeg_/libavutil/
Dcrc.h61 int av_crc_init(AVCRC *ctx, int le, int bits, uint32_t poly, int ctx_size);
/external/boringssl/src/include/openssl/
Dcipher.h518 unsigned ctx_size; member