Home
last modified time | relevance | path

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

/third_party/openssl/crypto/cms/
Dcms_ec.c259 unsigned char *penc = NULL; in ecdh_cms_encrypt() local
278 penclen = EVP_PKEY_get1_encoded_public_key(pkey, &penc); in ecdh_cms_encrypt()
279 ASN1_STRING_set0(pubkey, penc, penclen); in ecdh_cms_encrypt()
283 penc = NULL; in ecdh_cms_encrypt()
347 penclen = CMS_SharedInfo_encode(&penc, wrap_alg, ukm, keylen); in ecdh_cms_encrypt()
352 if (EVP_PKEY_CTX_set0_ecdh_kdf_ukm(pctx, penc, penclen) <= 0) in ecdh_cms_encrypt()
354 penc = NULL; in ecdh_cms_encrypt()
360 penclen = i2d_X509_ALGOR(wrap_alg, &penc); in ecdh_cms_encrypt()
361 if (penc == NULL || penclen == 0) in ecdh_cms_encrypt()
366 ASN1_STRING_set0(wrap_str, penc, penclen); in ecdh_cms_encrypt()
[all …]
Dcms_dh.c201 unsigned char *penc = NULL, *dukm = NULL; in dh_cms_encrypt() local
232 penclen = i2d_ASN1_INTEGER(pubk, &penc); in dh_cms_encrypt()
236 ASN1_STRING_set0(pubkey, penc, penclen); in dh_cms_encrypt()
240 penc = NULL; in dh_cms_encrypt()
310 penc = NULL; in dh_cms_encrypt()
311 penclen = i2d_X509_ALGOR(wrap_alg, &penc); in dh_cms_encrypt()
312 if (penc == NULL || penclen == 0) in dh_cms_encrypt()
317 ASN1_STRING_set0(wrap_str, penc, penclen); in dh_cms_encrypt()
318 penc = NULL; in dh_cms_encrypt()
325 OPENSSL_free(penc); in dh_cms_encrypt()
/third_party/openssl/crypto/asn1/
Dp8_pkey.c40 int ptype, void *pval, unsigned char *penc, int penclen)
48 if (penc)
49 ASN1_STRING_set0(priv->pkey, penc, penclen);
/third_party/openssl/crypto/ec/
Dec_ameth.c73 unsigned char *penc = NULL, *p; in eckey_pub_encode() local
83 penc = OPENSSL_malloc(penclen); in eckey_pub_encode()
84 if (penc == NULL) in eckey_pub_encode()
86 p = penc; in eckey_pub_encode()
91 ptype, pval, penc, penclen)) in eckey_pub_encode()
96 OPENSSL_free(penc); in eckey_pub_encode()
Decx_meth.c34 unsigned char *penc; in ecx_pub_encode() local
41 penc = OPENSSL_memdup(ecxkey->pubkey, KEYLEN(pkey)); in ecx_pub_encode()
42 if (penc == NULL) { in ecx_pub_encode()
48 V_ASN1_UNDEF, NULL, penc, KEYLEN(pkey))) { in ecx_pub_encode()
49 OPENSSL_free(penc); in ecx_pub_encode()
104 unsigned char *penc = NULL; in ecx_priv_encode() local
116 penclen = i2d_ASN1_OCTET_STRING(&oct, &penc); in ecx_priv_encode()
123 V_ASN1_UNDEF, NULL, penc, penclen)) { in ecx_priv_encode()
124 OPENSSL_clear_free(penc, penclen); in ecx_priv_encode()
/third_party/openssl/crypto/dsa/
Ddsa_ameth.c91 unsigned char *penc = NULL; in dsa_pub_encode() local
123 penclen = i2d_ASN1_INTEGER(pubint, &penc); in dsa_pub_encode()
135 if (X509_PUBKEY_set0_param(pk, aobj, ptype, str, penc, penclen)) in dsa_pub_encode()
139 OPENSSL_free(penc); in dsa_pub_encode()
/third_party/openssl/crypto/dh/
Ddh_ameth.c115 unsigned char *penc = NULL; in dh_pub_encode() local
138 penclen = i2d_ASN1_INTEGER(pub_key, &penc); in dh_pub_encode()
148 ptype, str, penc, penclen)) in dh_pub_encode()
152 OPENSSL_free(penc); in dh_pub_encode()
/third_party/openssl/crypto/rsa/
Drsa_ameth.c55 unsigned char *penc = NULL; in rsa_pub_encode() local
62 penclen = i2d_RSAPublicKey(pkey->pkey.rsa, &penc); in rsa_pub_encode()
66 strtype, str, penc, penclen)) in rsa_pub_encode()
69 OPENSSL_free(penc); in rsa_pub_encode()
/third_party/openssl/crypto/pkcs7/
Dpk7_lib.c559 void PKCS7_RECIP_INFO_get0_alg(PKCS7_RECIP_INFO *ri, X509_ALGOR **penc) in PKCS7_RECIP_INFO_get0_alg() argument
561 if (penc) in PKCS7_RECIP_INFO_get0_alg()
562 *penc = ri->key_enc_algor; in PKCS7_RECIP_INFO_get0_alg()
/third_party/libsnd/src/
Dalac.c172 { ALAC_ENCODER *penc = &plac->encoder ; in alac_close() local
187 alac_get_magic_cookie (penc, kuki_data, &plac->kuki_size) ; in alac_close()
440 { ALAC_ENCODER *penc = &plac->encoder ; in alac_encode_block() local
443 alac_encode (penc, plac->partial_block_frames, plac->buffer, plac->byte_buffer, &num_bytes) ; in alac_encode_block()
/third_party/openssl/doc/man3/
DX509_PUBKEY_new.pod37 unsigned char *penc, int penclen);
92 bytes contained in buffer I<penc>. On success ownership of all the supplied
/third_party/openssl/crypto/x509/
Dx_pubkey.c982 unsigned char *penc, int penclen) in X509_PUBKEY_set0_param() argument
986 if (penc) { in X509_PUBKEY_set0_param()
988 pub->public_key->data = penc; in X509_PUBKEY_set0_param()
/third_party/openssl/ohos_lite/include/openssl/
Dpkcs7.h265 void PKCS7_RECIP_INFO_get0_alg(PKCS7_RECIP_INFO *ri, X509_ALGOR **penc);
Dx509.h1019 unsigned char *penc, int penclen);
1031 unsigned char *penc, int penclen);
/third_party/openssl/include/openssl/
Dpkcs7.h.in294 void PKCS7_RECIP_INFO_get0_alg(PKCS7_RECIP_INFO *ri, X509_ALGOR **penc);
Dx509.h.in1057 unsigned char *penc, int penclen);
1073 unsigned char *penc, int penclen);