/openssl/crypto/cms/ |
H A D | cms_ec.c | 261 unsigned char *penc = NULL; in ecdh_cms_encrypt() local 281 enckeylen = EVP_PKEY_get1_encoded_public_key(pkey, &penc); in ecdh_cms_encrypt() 284 ASN1_STRING_set0(pubkey, penc, (int)enckeylen); in ecdh_cms_encrypt() 287 penc = NULL; in ecdh_cms_encrypt() 351 penclen = CMS_SharedInfo_encode(&penc, wrap_alg, ukm, keylen); in ecdh_cms_encrypt() 356 if (EVP_PKEY_CTX_set0_ecdh_kdf_ukm(pctx, penc, penclen) <= 0) in ecdh_cms_encrypt() 358 penc = NULL; in ecdh_cms_encrypt() 364 penclen = i2d_X509_ALGOR(wrap_alg, &penc); in ecdh_cms_encrypt() 370 ASN1_STRING_set0(wrap_str, penc, penclen); in ecdh_cms_encrypt() 371 penc = NULL; in ecdh_cms_encrypt() [all …]
|
H A D | cms_dh.c | 202 unsigned char *penc = NULL, *dukm = NULL; in dh_cms_encrypt() local 233 penclen = i2d_ASN1_INTEGER(pubk, &penc); in dh_cms_encrypt() 237 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() 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()
|
/openssl/crypto/asn1/ |
H A D | p8_pkey.c | 40 int ptype, void *pval, unsigned char *penc, int penclen) 48 if (penc) 49 ASN1_STRING_set0(priv->pkey, penc, penclen);
|
/openssl/doc/man3/ |
H A D | X509_PUBKEY_new.pod | 42 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
|
/openssl/crypto/ec/ |
H A D | ec_ameth.c | 73 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 D | ecx_meth.c | 34 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()
|
/openssl/crypto/dsa/ |
H A D | dsa_ameth.c | 91 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()
|
/openssl/crypto/dh/ |
H A D | dh_ameth.c | 115 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()
|
/openssl/crypto/x509/ |
H A D | x_pubkey.c | 1011 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()
|
/openssl/crypto/rsa/ |
H A D | rsa_ameth.c | 55 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()
|
/openssl/crypto/pkcs7/ |
H A D | pk7_lib.c | 558 void PKCS7_RECIP_INFO_get0_alg(PKCS7_RECIP_INFO *ri, X509_ALGOR **penc) in PKCS7_RECIP_INFO_get0_alg() argument 560 if (penc) in PKCS7_RECIP_INFO_get0_alg() 561 *penc = ri->key_enc_algor; in PKCS7_RECIP_INFO_get0_alg()
|
/openssl/include/openssl/ |
H A D | pkcs7.h.in | 297 void PKCS7_RECIP_INFO_get0_alg(PKCS7_RECIP_INFO *ri, X509_ALGOR **penc);
|
H A D | x509.h.in | 1082 unsigned char *penc, int penclen); 1097 unsigned char *penc, int penclen); 1100 unsigned char *penc, int penclen);
|