/openssl/test/ |
H A D | asn1_dsa_internal_test.c | 89 const unsigned char *pder; in test_decode() local 95 pder = t_dsa_sig; in test_decode() 105 pder = t_dsa_sig_extra; in test_decode() 107 || !TEST_ptr_eq(pder, in test_decode() 116 pder = t_dsa_sig_msb; in test_decode() 126 pder = t_dsa_sig_two; in test_decode() 135 pder = t_invalid_int_zero; in test_decode() 143 pder = t_invalid_int; in test_decode() 151 pder = t_neg_int; in test_decode() 159 pder = t_trunc_der; in test_decode() [all …]
|
H A D | tls-provider.c | 1659 static int xorx_spki_pub_to_der(const void *vecxkey, unsigned char **pder) in xorx_spki_pub_to_der() argument 1676 *pder = keyblob; in xorx_spki_pub_to_der() 1680 static int xorx_pki_priv_to_der(const void *vecxkey, unsigned char **pder) in xorx_pki_priv_to_der() argument 1699 keybloblen = i2d_ASN1_OCTET_STRING(&oct, pder); in xorx_pki_priv_to_der()
|
/openssl/providers/implementations/encode_decode/ |
H A D | decode_epki2pki.c | 90 const unsigned char *pder = NULL; in epki2pki_decode() local 108 pder = der = (unsigned char *)mem->data; in epki2pki_decode() 114 if ((p8 = d2i_X509_SIG(NULL, &pder, der_len)) != NULL) { in epki2pki_decode() 148 pder = der; in epki2pki_decode() 149 p8inf = d2i_PKCS8_PRIV_KEY_INFO(NULL, &pder, der_len); in epki2pki_decode()
|
H A D | encode_key2any.c | 470 static int dh_spki_pub_to_der(const void *dh, unsigned char **pder) in dh_spki_pub_to_der() argument 485 ret = i2d_ASN1_INTEGER(pub_key, pder); in dh_spki_pub_to_der() 506 ret = i2d_ASN1_INTEGER(priv_key, pder); in dh_pki_priv_to_der() 517 return i2d_DHxparams(dh, pder); in dh_type_specific_params_to_der() 518 return i2d_DHparams(dh, pder); in dh_type_specific_params_to_der() 600 ret = i2d_ASN1_INTEGER(pub_key, pder); in dsa_spki_pub_to_der() 621 ret = i2d_ASN1_INTEGER(priv_key, pder); in dsa_pki_priv_to_der() 708 return i2o_ECPublicKey(eckey, pder); in ec_spki_pub_to_der() 726 ret = i2d_ECPrivateKey(eckey, pder); in ec_pki_priv_to_der() 776 *pder = keyblob; in ecx_spki_pub_to_der() [all …]
|
/openssl/include/crypto/ |
H A D | asn1.h | 42 const unsigned char **pder, int derlen); 43 int (*param_encode) (const EVP_PKEY *pkey, unsigned char **pder); 56 const unsigned char **pder, int derlen); 57 int (*old_priv_encode) (const EVP_PKEY *pkey, unsigned char **pder);
|
/openssl/crypto/dsa/ |
H A D | dsa_ameth.c | 321 const unsigned char **pder, int derlen) in dsa_param_decode() argument 325 if ((dsa = d2i_DSAparams(NULL, pder, derlen)) == NULL) in dsa_param_decode() 333 static int dsa_param_encode(const EVP_PKEY *pkey, unsigned char **pder) in dsa_param_encode() argument 335 return i2d_DSAparams(pkey->pkey.dsa, pder); in dsa_param_encode() 357 const unsigned char **pder, int derlen) in old_dsa_priv_decode() argument 361 if ((dsa = d2i_DSAPrivateKey(NULL, pder, derlen)) == NULL) { in old_dsa_priv_decode() 370 static int old_dsa_priv_encode(const EVP_PKEY *pkey, unsigned char **pder) in old_dsa_priv_encode() argument 372 return i2d_DSAPrivateKey(pkey->pkey.dsa, pder); in old_dsa_priv_encode()
|
/openssl/crypto/ec/ |
H A D | ec_ameth.c | 347 const unsigned char **pder, int derlen) in eckey_param_decode() argument 351 if ((eckey = d2i_ECParameters(NULL, pder, derlen)) == NULL) in eckey_param_decode() 357 static int eckey_param_encode(const EVP_PKEY *pkey, unsigned char **pder) in eckey_param_encode() argument 359 return i2d_ECParameters(pkey->pkey.ec, pder); in eckey_param_encode() 381 const unsigned char **pder, int derlen) in old_ec_priv_decode() argument 385 if ((ec = d2i_ECPrivateKey(NULL, pder, derlen)) == NULL) in old_ec_priv_decode() 391 static int old_ec_priv_encode(const EVP_PKEY *pkey, unsigned char **pder) in old_ec_priv_encode() argument 393 return i2d_ECPrivateKey(pkey->pkey.ec, pder); in old_ec_priv_encode()
|
/openssl/doc/man3/ |
H A D | X509_NAME_get0_der.pod | 11 int X509_NAME_get0_der(const X509_NAME *nm, const unsigned char **pder, 18 encoding of an B<X509_NAME> structure in B<*pder> and consisting of
|
H A D | EVP_PKEY_ASN1_METHOD.pod | 68 const unsigned char **pder, 71 unsigned char **pder), 206 const unsigned char **pder, int derlen); 207 int (*param_encode) (const EVP_PKEY *pkey, unsigned char **pder); 265 const unsigned char **pder, int derlen); 266 int (*old_priv_encode) (const EVP_PKEY *pkey, unsigned char **pder);
|
/openssl/crypto/dh/ |
H A D | dh_ameth.c | 228 const unsigned char **pder, int derlen) in dh_param_decode() argument 232 if ((dh = d2i_dhp(pkey, pder, derlen)) == NULL) in dh_param_decode() 239 static int dh_param_encode(const EVP_PKEY *pkey, unsigned char **pder) in dh_param_encode() argument 241 return i2d_dhp(pkey, pkey->pkey.dh, pder); in dh_param_encode()
|
/openssl/crypto/x509/ |
H A D | x_name.c | 546 int X509_NAME_get0_der(const X509_NAME *nm, const unsigned char **pder, in X509_NAME_get0_der() argument 552 if (pder != NULL) in X509_NAME_get0_der() 553 *pder = (unsigned char *)nm->bytes->data; in X509_NAME_get0_der()
|
H A D | x_pubkey.c | 355 const unsigned char *pder = der; in X509_PUBKEY_set() local 357 pk = d2i_X509_PUBKEY(NULL, &pder, (long)derlen); in X509_PUBKEY_set()
|
/openssl/crypto/asn1/ |
H A D | ameth_lib.c | 318 const unsigned char **pder, in EVP_PKEY_asn1_set_param() argument 321 unsigned char **pder), in EVP_PKEY_asn1_set_param() argument
|
/openssl/crypto/rsa/ |
H A D | rsa_ameth.c | 130 const unsigned char **pder, int derlen) in old_rsa_priv_decode() argument 134 if ((rsa = d2i_RSAPrivateKey(NULL, pder, derlen)) == NULL) in old_rsa_priv_decode() 140 static int old_rsa_priv_encode(const EVP_PKEY *pkey, unsigned char **pder) in old_rsa_priv_encode() argument 142 return i2d_RSAPrivateKey(pkey->pkey.rsa, pder); in old_rsa_priv_encode()
|
/openssl/crypto/cms/ |
H A D | cms_asn1.c | 403 int CMS_SharedInfo_encode(unsigned char **pder, X509_ALGOR *kekalg, 430 return ASN1_item_i2d(intsi.a, pder, ASN1_ITEM_rptr(CMS_SharedInfo));
|
/openssl/include/openssl/ |
H A D | cms.h.in | 398 int CMS_SharedInfo_encode(unsigned char **pder, X509_ALGOR *kekalg,
|
H A D | evp.h | 1620 const unsigned char **pder, 1623 unsigned char **pder),
|
H A D | x509.h.in | 893 int X509_NAME_get0_der(const X509_NAME *nm, const unsigned char **pder,
|