Home
last modified time | relevance | path

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

/freebsd/crypto/openssl/crypto/cms/
H A Dcms_ec.c267 unsigned char *penc = NULL; in ecdh_cms_encrypt() local
287 enckeylen = EVP_PKEY_get1_encoded_public_key(pkey, &penc); in ecdh_cms_encrypt()
290 ASN1_STRING_set0(pubkey, penc, (int)enckeylen); in ecdh_cms_encrypt()
293 penc = NULL; in ecdh_cms_encrypt()
357 penclen = CMS_SharedInfo_encode(&penc, wrap_alg, ukm, keylen); in ecdh_cms_encrypt()
362 if (EVP_PKEY_CTX_set0_ecdh_kdf_ukm(pctx, penc, penclen) <= 0) in ecdh_cms_encrypt()
364 penc = NULL; in ecdh_cms_encrypt()
370 penclen = i2d_X509_ALGOR(wrap_alg, &penc); in ecdh_cms_encrypt()
376 ASN1_STRING_set0(wrap_str, penc, penclen); in ecdh_cms_encrypt()
377 penc = NULL; in ecdh_cms_encrypt()
[all …]
H A Dcms_dh.c207 unsigned char *penc = NULL, *dukm = NULL; in dh_cms_encrypt() local
238 penclen = i2d_ASN1_INTEGER(pubk, &penc); in dh_cms_encrypt()
242 ASN1_STRING_set0(pubkey, penc, penclen); in dh_cms_encrypt()
245 penc = NULL; in dh_cms_encrypt()
315 penc = NULL; in dh_cms_encrypt()
316 penclen = i2d_X509_ALGOR(wrap_alg, &penc); in dh_cms_encrypt()
322 ASN1_STRING_set0(wrap_str, penc, penclen); in dh_cms_encrypt()
323 penc = NULL; in dh_cms_encrypt()
330 OPENSSL_free(penc); in dh_cms_encrypt()
/freebsd/crypto/openssl/crypto/asn1/
H A Dp8_pkey.c55 int ptype, void *pval, unsigned char *penc, int penclen)
66 if (penc)
67 ASN1_STRING_set0(priv->pkey, penc, penclen);
/freebsd/crypto/openssl/doc/man3/
H A DX509_PUBKEY_new.pod42 unsigned char *penc, int penclen);
45 unsigned char *penc, int penclen);
100 to the I<penclen> bytes contained in buffer I<penc>.
102 I<penc> may be NULL to indicate that there is no actual public key data.
103 Ownership of the I<penc> argument is passed to I<pub>.
108 If I<penc> is not NULL the encoding of the public key itself is set
109 to the I<penclen> bytes contained in buffer I<penc> and
/freebsd/crypto/openssl/crypto/ec/
H A 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()
H A 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()
46 V_ASN1_UNDEF, NULL, penc, KEYLEN(pkey))) { in ecx_pub_encode()
47 OPENSSL_free(penc); in ecx_pub_encode()
102 unsigned char *penc = NULL; in ecx_priv_encode() local
114 penclen = i2d_ASN1_OCTET_STRING(&oct, &penc); in ecx_priv_encode()
121 V_ASN1_UNDEF, NULL, penc, penclen)) { in ecx_priv_encode()
122 OPENSSL_clear_free(penc, penclen); in ecx_priv_encode()
/freebsd/crypto/openssl/crypto/dsa/
H A Ddsa_ameth.c90 unsigned char *penc = NULL; in dsa_pub_encode() local
122 penclen = i2d_ASN1_INTEGER(pubint, &penc); in dsa_pub_encode()
134 if (X509_PUBKEY_set0_param(pk, aobj, ptype, str, penc, penclen)) in dsa_pub_encode()
138 OPENSSL_free(penc); in dsa_pub_encode()
/freebsd/crypto/openssl/crypto/dh/
H A 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()
/freebsd/crypto/openssl/crypto/x509/
H A Dx_pubkey.c1011 unsigned char *penc, int penclen) in X509_PUBKEY_set0_public_key() argument
1013 ASN1_STRING_set0(pub->public_key, penc, penclen); in X509_PUBKEY_set0_public_key()
1019 unsigned char *penc, int penclen) in X509_PUBKEY_set0_param() argument
1023 if (penc != NULL) in X509_PUBKEY_set0_param()
1024 X509_PUBKEY_set0_public_key(pub, penc, penclen); in X509_PUBKEY_set0_param()
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_ameth.c55 unsigned char *penc = NULL; in rsa_pub_encode() local
62 penclen = i2d_RSAPublicKey(pkey->pkey.rsa, &penc); in rsa_pub_encode()
68 strtype, str, penc, penclen)) in rsa_pub_encode()
71 OPENSSL_free(penc); in rsa_pub_encode()
/freebsd/crypto/openssl/crypto/pkcs7/
H A Dpk7_lib.c566 void PKCS7_RECIP_INFO_get0_alg(PKCS7_RECIP_INFO *ri, X509_ALGOR **penc) in PKCS7_RECIP_INFO_get0_alg() argument
568 if (penc) in PKCS7_RECIP_INFO_get0_alg()
569 *penc = ri->key_enc_algor; in PKCS7_RECIP_INFO_get0_alg()
/freebsd/crypto/openssl/include/openssl/
H A Dpkcs7.h373 void PKCS7_RECIP_INFO_get0_alg(PKCS7_RECIP_INFO *ri, X509_ALGOR **penc);
H A Dpkcs7.h.in302 void PKCS7_RECIP_INFO_get0_alg(PKCS7_RECIP_INFO *ri, X509_ALGOR **penc);
H A Dx509.h.in1081 unsigned char *penc, int penclen);
1095 unsigned char *penc, int penclen);
1098 unsigned char *penc, int penclen);
H A Dx509.h1275 unsigned char *penc, int penclen);
1289 unsigned char *penc, int penclen);
1292 unsigned char *penc, int penclen);