Home
last modified time | relevance | path

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

/external/epid-sdk/epid/member/tiny/unittests/
Dcontext-test.cc55 size_t ctx_size = 0; in TEST_F() local
58 EXPECT_EQ(kEpidBadArgErr, EpidMemberGetSize(nullptr, &ctx_size)); in TEST_F()
65 size_t ctx_size = 0; in TEST_F() local
69 EXPECT_EQ(kEpidNoErr, EpidMemberGetSize(&params, &ctx_size)); in TEST_F()
75 size_t ctx_size = 0; in TEST_F() local
81 EXPECT_EQ(kEpidNoErr, EpidMemberGetSize(&params, &ctx_size)); in TEST_F()
82 ctx_buf.resize(ctx_size); in TEST_F()
96 size_t ctx_size = 0; in TEST_F() local
102 EXPECT_EQ(kEpidNoErr, EpidMemberGetSize(&params, &ctx_size)); in TEST_F()
103 ctx_buf.resize(ctx_size); in TEST_F()
[all …]
/external/boringssl/src/crypto/fipsmodule/digest/
Ddigests.c98 out->ctx_size = sizeof(MD4_CTX); in DEFINE_METHOD_FUNCTION()
122 out->ctx_size = sizeof(MD5_CTX); in DEFINE_METHOD_FUNCTION()
146 out->ctx_size = sizeof(SHA_CTX); in DEFINE_METHOD_FUNCTION()
170 out->ctx_size = sizeof(SHA256_CTX); in DEFINE_METHOD_FUNCTION()
194 out->ctx_size = sizeof(SHA256_CTX); in DEFINE_METHOD_FUNCTION()
218 out->ctx_size = sizeof(SHA512_CTX); in DEFINE_METHOD_FUNCTION()
242 out->ctx_size = sizeof(SHA512_CTX); in DEFINE_METHOD_FUNCTION()
277 out->ctx_size = sizeof(MD5_SHA1_CTX); in DEFINE_METHOD_FUNCTION()
Ddigest.c136 assert(in->digest->ctx_size != 0); in EVP_MD_CTX_copy_ex()
137 tmp_buf = OPENSSL_malloc(in->digest->ctx_size); in EVP_MD_CTX_copy_ex()
156 OPENSSL_memcpy(out->md_data, in->md_data, in->digest->ctx_size); in EVP_MD_CTX_copy_ex()
177 assert(type->ctx_size != 0); in EVP_DigestInit_ex()
178 uint8_t *md_data = OPENSSL_malloc(type->ctx_size); in EVP_DigestInit_ex()
211 OPENSSL_cleanse(ctx->md_data, ctx->digest->ctx_size); in EVP_DigestFinal_ex()
Dinternal.h91 unsigned ctx_size; member
/external/epid-sdk/epid/member/unittests/
Dcontext-test.cc60 size_t ctx_size = 0; in TEST_F() local
63 EXPECT_EQ(kEpidBadArgErr, EpidMemberGetSize(nullptr, &ctx_size)); in TEST_F()
70 size_t ctx_size = 0; in TEST_F() local
74 EXPECT_EQ(kEpidNoErr, EpidMemberGetSize(&params, &ctx_size)); in TEST_F()
80 size_t ctx_size = 0; in TEST_F() local
86 EXPECT_EQ(kEpidNoErr, EpidMemberGetSize(&params, &ctx_size)); in TEST_F()
87 ctx_buf.resize(ctx_size); in TEST_F()
101 size_t ctx_size = 0; in TEST_F() local
107 EXPECT_EQ(kEpidNoErr, EpidMemberGetSize(&params, &ctx_size)); in TEST_F()
108 ctx_buf.resize(ctx_size); in TEST_F()
[all …]
/external/boringssl/src/crypto/fipsmodule/cipher/
De_des.c97 out->ctx_size = sizeof(EVP_DES_KEY); in DEFINE_METHOD_FUNCTION()
124 out->ctx_size = sizeof(EVP_DES_KEY); in DEFINE_METHOD_FUNCTION()
165 out->ctx_size = sizeof(DES_EDE_KEY); in DEFINE_METHOD_FUNCTION()
189 out->ctx_size = sizeof(DES_EDE_KEY); in DEFINE_METHOD_FUNCTION()
217 out->ctx_size = sizeof(DES_EDE_KEY); in DEFINE_METHOD_FUNCTION()
229 out->ctx_size = sizeof(DES_EDE_KEY); in DEFINE_METHOD_FUNCTION()
De_aes.c296 assert(ctx->cipher->ctx_size == in aes_gcm_from_cipher_ctx()
541 out->ctx_size = sizeof(EVP_AES_KEY); in DEFINE_LOCAL_DATA()
554 out->ctx_size = sizeof(EVP_AES_KEY); in DEFINE_LOCAL_DATA()
566 out->ctx_size = sizeof(EVP_AES_KEY); in DEFINE_LOCAL_DATA()
579 out->ctx_size = sizeof(EVP_AES_KEY); in DEFINE_LOCAL_DATA()
592 out->ctx_size = sizeof(EVP_AES_GCM_CTX) + EVP_AES_GCM_CTX_PADDING; in DEFINE_LOCAL_DATA()
609 out->ctx_size = sizeof(EVP_AES_KEY); in DEFINE_LOCAL_DATA()
622 out->ctx_size = sizeof(EVP_AES_KEY); in DEFINE_LOCAL_DATA()
634 out->ctx_size = sizeof(EVP_AES_KEY); in DEFINE_LOCAL_DATA()
647 out->ctx_size = sizeof(EVP_AES_KEY); in DEFINE_LOCAL_DATA()
[all …]
Dcipher.c108 if (in->cipher_data && in->cipher->ctx_size) { in EVP_CIPHER_CTX_copy()
109 out->cipher_data = OPENSSL_malloc(in->cipher->ctx_size); in EVP_CIPHER_CTX_copy()
115 OPENSSL_memcpy(out->cipher_data, in->cipher_data, in->cipher->ctx_size); in EVP_CIPHER_CTX_copy()
156 if (ctx->cipher->ctx_size) { in EVP_CipherInit_ex()
157 ctx->cipher_data = OPENSSL_malloc(ctx->cipher->ctx_size); in EVP_CipherInit_ex()
/external/libaom/libaom/av1/encoder/
Dblock.h474 TX_SIZE ctx_size = max_txsize_rect_lookup[bsize]; in tx_size_to_depth() local
476 while (tx_size != ctx_size) { in tx_size_to_depth()
478 ctx_size = sub_tx_size_map[ctx_size]; in tx_size_to_depth()
/external/mesa3d/src/gallium/drivers/radeon/
Dradeon_vcn_dec.c698 unsigned ctx_size; in rvcn_dec_message_decode() local
700 ctx_size = calc_ctx_size_h265_main10(dec, in rvcn_dec_message_decode()
703 ctx_size = calc_ctx_size_h265_main(dec); in rvcn_dec_message_decode()
704 if (!si_vid_create_buffer(dec->screen, &dec->ctx, ctx_size, PIPE_USAGE_DEFAULT)) in rvcn_dec_message_decode()
867 unsigned width_in_mb, height_in_mb, ctx_size; in calc_ctx_size_h264_perf() local
907 ctx_size = max_references * align(width_in_mb * height_in_mb * 192, 256); in calc_ctx_size_h264_perf()
909 return ctx_size; in calc_ctx_size_h264_perf()
1296 unsigned ctx_size = calc_ctx_size_h264_perf(dec); in radeon_create_decoder() local
1297 if (!si_vid_create_buffer(dec->screen, &dec->ctx, ctx_size, PIPE_USAGE_DEFAULT)) { in radeon_create_decoder()
Dradeon_uvd.c230 unsigned width_in_mb, height_in_mb, ctx_size; in calc_ctx_size_h264_perf() local
271 ctx_size = max_references * align(width_in_mb * height_in_mb * 192, 256); in calc_ctx_size_h264_perf()
276 ctx_size = align(width_in_mb * height_in_mb * max_references * 192, 256); in calc_ctx_size_h264_perf()
279 return ctx_size; in calc_ctx_size_h264_perf()
1287 unsigned ctx_size; in ruvd_end_frame() local
1289 ctx_size = calc_ctx_size_h265_main10(dec, (struct pipe_h265_picture_desc*)picture); in ruvd_end_frame()
1291 ctx_size = calc_ctx_size_h265_main(dec); in ruvd_end_frame()
1292 if (!si_vid_create_buffer(dec->screen, &dec->ctx, ctx_size, PIPE_USAGE_DEFAULT)) { in ruvd_end_frame()
1461 unsigned ctx_size = calc_ctx_size_h264_perf(dec); in si_common_uvd_create_decoder() local
1462 if (!si_vid_create_buffer(dec->screen, &dec->ctx, ctx_size, PIPE_USAGE_DEFAULT)) { in si_common_uvd_create_decoder()
/external/openssh/
Dmd-sha256.c80 ssh_sha256.ctx_size = sizeof(SHA256_CTX); in evp_ssh_sha256()
Dcipher.c693 #define EVP_X_STATE_LEN(evp) (evp)->cipher->ctx_size
/external/boringssl/src/include/openssl/
Dcipher.h564 unsigned ctx_size; member
/external/mesa3d/src/gallium/drivers/r600/
Dradeon_uvd.c1201 unsigned ctx_size; in ruvd_end_frame() local
1203 ctx_size = calc_ctx_size_h265_main10(dec, (struct pipe_h265_picture_desc*)picture); in ruvd_end_frame()
1205 ctx_size = calc_ctx_size_h265_main(dec); in ruvd_end_frame()
1206 if (!rvid_create_buffer(dec->screen, &dec->ctx, ctx_size, PIPE_USAGE_DEFAULT)) { in ruvd_end_frame()