Home
last modified time | relevance | path

Searched refs:enc_data (Results 1 – 16 of 16) sorted by relevance

/openssl/crypto/pkcs12/
H A Dp12_add.c129 X509_ALGOR_free(p7->d.encrypted->enc_data->algorithm); in PKCS12_pack_p7encdata_ex()
130 p7->d.encrypted->enc_data->algorithm = pbe; in PKCS12_pack_p7encdata_ex()
131 ASN1_OCTET_STRING_free(p7->d.encrypted->enc_data->enc_data); in PKCS12_pack_p7encdata_ex()
132 if (!(p7->d.encrypted->enc_data->enc_data = in PKCS12_pack_p7encdata_ex()
167 return PKCS12_item_decrypt_d2i_ex(p7->d.encrypted->enc_data->algorithm, in STACK_OF()
170 p7->d.encrypted->enc_data->enc_data, 1, in STACK_OF()
H A Dp12_npas.c84 || !alg_get(p7->d.encrypted->enc_data->algorithm, in newpass_p12()
/openssl/test/
H A Dbio_pw_callback_test.c154 static int re_encrypt_key(char **enc_data, int *enc_data_size, in re_encrypt_key() argument
163 if (!TEST_ptr(enc_data)) in re_encrypt_key()
187 *enc_data_size = BIO_get_mem_data(bio, enc_data); in re_encrypt_key()
199 static int decrypt_key(char *enc_data, int enc_data_size, in decrypt_key() argument
209 if (!TEST_ptr(bio = BIO_new_mem_buf(enc_data, enc_data_size))) in decrypt_key()
243 char *enc_data = NULL; in full_cycle_test() local
248 if (!re_encrypt_key(&enc_data, &enc_data_size, key_encoding)) in full_cycle_test()
251 if (!decrypt_key(enc_data, enc_data_size, key_encoding, in full_cycle_test()
256 OPENSSL_free(enc_data); in full_cycle_test()
H A Devp_extra_test2.c653 char *enc_data = NULL; in test_pkcs8key_nid_bio() local
665 && TEST_int_gt(enc_datalen = BIO_get_mem_data(enc_bio, &enc_data), 0) in test_pkcs8key_nid_bio()
/openssl/crypto/evp/
H A Dencode.c171 OPENSSL_assert(ctx->length <= (int)sizeof(ctx->enc_data)); in EVP_EncodeUpdate()
173 memcpy(&(ctx->enc_data[ctx->num]), in, inl); in EVP_EncodeUpdate()
179 memcpy(&(ctx->enc_data[ctx->num]), in, i); in EVP_EncodeUpdate()
182 j = evp_encodeblock_int(ctx, out, ctx->enc_data, ctx->length); in EVP_EncodeUpdate()
210 memcpy(&(ctx->enc_data[0]), in, inl); in EVP_EncodeUpdate()
222 ret = evp_encodeblock_int(ctx, out, ctx->enc_data, ctx->num); in EVP_EncodeFinal()
311 d = ctx->enc_data; in EVP_DecodeUpdate()
367 OPENSSL_assert(n < (int)sizeof(ctx->enc_data)); in EVP_DecodeUpdate()
470 i = evp_decodeblock_int(ctx, out, ctx->enc_data, ctx->num); in EVP_DecodeFinal()
H A Devp_local.h264 unsigned char enc_data[80]; member
/openssl/crypto/pkcs7/
H A Dpk7_lib.c142 p7->d.signed_and_enveloped->enc_data->content_type in PKCS7_set_type()
152 p7->d.enveloped->enc_data->content_type = OBJ_nid2obj(NID_pkcs7_data); in PKCS7_set_type()
161 p7->d.encrypted->enc_data->content_type = OBJ_nid2obj(NID_pkcs7_data); in PKCS7_set_type()
689 ec = p7->d.signed_and_enveloped->enc_data; in PKCS7_set_cipher()
692 ec = p7->d.enveloped->enc_data; in PKCS7_set_cipher()
722 os = p7->d.signed_and_enveloped->enc_data->enc_data; in PKCS7_stream()
725 p7->d.signed_and_enveloped->enc_data->enc_data = os; in PKCS7_stream()
730 os = p7->d.enveloped->enc_data->enc_data; in PKCS7_stream()
733 p7->d.enveloped->enc_data->enc_data = os; in PKCS7_stream()
H A Dpk7_doit.c285 xalg = p7->d.signed_and_enveloped->enc_data->algorithm; in PKCS7_dataInit()
286 evp_cipher = p7->d.signed_and_enveloped->enc_data->cipher; in PKCS7_dataInit()
294 xalg = p7->d.enveloped->enc_data->algorithm; in PKCS7_dataInit()
295 evp_cipher = p7->d.enveloped->enc_data->cipher; in PKCS7_dataInit()
494 data_body = p7->d.signed_and_enveloped->enc_data->enc_data; in PKCS7_dataDecode()
515 enc_alg = p7->d.enveloped->enc_data->algorithm; in PKCS7_dataDecode()
517 data_body = p7->d.enveloped->enc_data->enc_data; in PKCS7_dataDecode()
808 os = p7->d.signed_and_enveloped->enc_data->enc_data; in PKCS7_dataFinal()
815 p7->d.signed_and_enveloped->enc_data->enc_data = os; in PKCS7_dataFinal()
820 os = p7->d.enveloped->enc_data->enc_data; in PKCS7_dataFinal()
[all …]
H A Dpk7_asn1.c174 ASN1_SIMPLE(PKCS7_ENVELOPE, enc_data, PKCS7_ENC_CONTENT)
202 ASN1_IMP_OPT(PKCS7_ENC_CONTENT, enc_data, ASN1_OCTET_STRING_NDEF, 0)
211 ASN1_SIMPLE(PKCS7_SIGN_ENVELOPE, enc_data, PKCS7_ENC_CONTENT),
221 ASN1_SIMPLE(PKCS7_ENCRYPT, enc_data, PKCS7_ENC_CONTENT)
/openssl/crypto/pem/
H A Dpem_info.c137 xi->enc_data = NULL; in STACK_OF()
175 xi->enc_data = (char *)data; in STACK_OF()
193 (xi->x_pkey != NULL) || (xi->enc_data != NULL)) { in STACK_OF()
254 if ((xi->enc_data != NULL) && (xi->enc_len > 0)) { in PEM_X509_INFO_write_bio()
262 data = (unsigned char *)xi->enc_data; in PEM_X509_INFO_write_bio()
/openssl/ssl/quic/
H A Dquic_local.h321 q_connect, enc_data) \ argument
353 &enc_data, \
/openssl/crypto/asn1/
H A Dx_info.c35 OPENSSL_free(x->enc_data); in X509_INFO_free()
/openssl/include/openssl/
H A Dpkcs7.h.in103 ASN1_OCTET_STRING *enc_data; /* [ 0 ] */ member
111 PKCS7_ENC_CONTENT *enc_data; member
120 PKCS7_ENC_CONTENT *enc_data; member
133 PKCS7_ENC_CONTENT *enc_data; member
H A Dx509.h.in226 char *enc_data; member
/openssl/ssl/
H A Dssl_local.h2300 s_connect, enc_data) \ argument
2332 &enc_data, \
2381 s_connect, enc_data) \ argument
2413 &enc_data, \
/openssl/apps/
H A Dpkcs12.c962 alg_print(p7->d.encrypted->enc_data->algorithm); in dump_certs_keys_p12()

Completed in 86 milliseconds