/external/boringssl/src/include/openssl/ |
D | evp.h | 86 OPENSSL_EXPORT EVP_PKEY *EVP_PKEY_new(void); 90 OPENSSL_EXPORT void EVP_PKEY_free(EVP_PKEY *pkey); 93 OPENSSL_EXPORT EVP_PKEY *EVP_PKEY_up_ref(EVP_PKEY *pkey); 98 OPENSSL_EXPORT int EVP_PKEY_is_opaque(const EVP_PKEY *pkey); 103 OPENSSL_EXPORT int EVP_PKEY_supports_digest(const EVP_PKEY *pkey, 111 OPENSSL_EXPORT int EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b); 115 OPENSSL_EXPORT int EVP_PKEY_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from); 119 OPENSSL_EXPORT int EVP_PKEY_missing_parameters(const EVP_PKEY *pkey); 125 OPENSSL_EXPORT int EVP_PKEY_size(const EVP_PKEY *pkey); 130 OPENSSL_EXPORT int EVP_PKEY_bits(EVP_PKEY *pkey); [all …]
|
D | pem.h | 403 …type, EVP_MD *md_type, unsigned char **ek, int *ekl, unsigned char *iv, EVP_PKEY **pubk, int npubk… 405 …ENCODE_SEAL_CTX *ctx, unsigned char *sig,int *sigl, unsigned char *out, int *outl, EVP_PKEY *priv); 409 …RT int PEM_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, unsigned int *siglen, EVP_PKEY *pkey); 462 DECLARE_PEM_rw_cb(PrivateKey, EVP_PKEY) 464 DECLARE_PEM_rw(PUBKEY, EVP_PKEY) 466 OPENSSL_EXPORT int PEM_write_bio_PKCS8PrivateKey_nid(BIO *bp, EVP_PKEY *x, int nid, char *kstr, int… 467 OPENSSL_EXPORT int PEM_write_bio_PKCS8PrivateKey(BIO *, EVP_PKEY *, const EVP_CIPHER *, char *, int… 468 OPENSSL_EXPORT int i2d_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc, char *kstr,… 469 OPENSSL_EXPORT int i2d_PKCS8PrivateKey_nid_bio(BIO *bp, EVP_PKEY *x, int nid, char *kstr, int klen,… 470 OPENSSL_EXPORT EVP_PKEY *d2i_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY **x, pem_password_cb *cb, void *… [all …]
|
D | x509.h | 125 EVP_PKEY *pkey; 451 EVP_PKEY *dec_pkey; 589 int (*crl_verify)(X509_CRL *crl, EVP_PKEY *pk)); 603 OPENSSL_EXPORT int X509_verify(X509 *a, EVP_PKEY *r); 605 OPENSSL_EXPORT int X509_REQ_verify(X509_REQ *a, EVP_PKEY *r); 606 OPENSSL_EXPORT int X509_CRL_verify(X509_CRL *a, EVP_PKEY *r); 607 OPENSSL_EXPORT int NETSCAPE_SPKI_verify(NETSCAPE_SPKI *a, EVP_PKEY *r); 611 OPENSSL_EXPORT EVP_PKEY *NETSCAPE_SPKI_get_pubkey(NETSCAPE_SPKI *x); 612 OPENSSL_EXPORT int NETSCAPE_SPKI_set_pubkey(NETSCAPE_SPKI *x, EVP_PKEY *pkey); 619 OPENSSL_EXPORT int X509_sign(X509 *x, EVP_PKEY *pkey, const EVP_MD *md); [all …]
|
/external/boringssl/src/crypto/evp/ |
D | internal.h | 94 int (*pub_decode)(EVP_PKEY *pk, X509_PUBKEY *pub); 95 int (*pub_encode)(X509_PUBKEY *pub, const EVP_PKEY *pk); 96 int (*pub_cmp)(const EVP_PKEY *a, const EVP_PKEY *b); 97 int (*pub_print)(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx); 99 int (*priv_decode)(EVP_PKEY *pk, PKCS8_PRIV_KEY_INFO *p8inf); 100 int (*priv_encode)(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pk); 101 int (*priv_print)(BIO *out, const EVP_PKEY *pkey, int indent, 106 int (*pkey_opaque)(const EVP_PKEY *pk); 112 int (*pkey_supports_digest)(const EVP_PKEY *pkey, const EVP_MD *md); 114 int (*pkey_size)(const EVP_PKEY *pk); [all …]
|
D | evp.c | 75 EVP_PKEY *EVP_PKEY_new(void) { in EVP_PKEY_new() 76 EVP_PKEY *ret; in EVP_PKEY_new() 78 ret = OPENSSL_malloc(sizeof(EVP_PKEY)); in EVP_PKEY_new() 84 memset(ret, 0, sizeof(EVP_PKEY)); in EVP_PKEY_new() 91 static void free_it(EVP_PKEY *pkey) { in free_it() 99 void EVP_PKEY_free(EVP_PKEY *pkey) { in EVP_PKEY_free() 112 EVP_PKEY *EVP_PKEY_up_ref(EVP_PKEY *pkey) { in EVP_PKEY_up_ref() 117 int EVP_PKEY_is_opaque(const EVP_PKEY *pkey) { in EVP_PKEY_is_opaque() 124 int EVP_PKEY_supports_digest(const EVP_PKEY *pkey, const EVP_MD *md) { in EVP_PKEY_supports_digest() 131 int EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b) { in EVP_PKEY_cmp() [all …]
|
D | p_ec_asn1.c | 89 static int eckey_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) { in eckey_pub_encode() 166 static int eckey_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey) { in eckey_pub_decode() 200 static int eckey_pub_cmp(const EVP_PKEY *a, const EVP_PKEY *b) { in eckey_pub_cmp() 215 static int eckey_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8) { in eckey_priv_decode() 283 static int eckey_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) { in eckey_priv_encode() 335 static int int_ec_size(const EVP_PKEY *pkey) { in int_ec_size() 339 static int ec_bits(const EVP_PKEY *pkey) { in ec_bits() 348 static int ec_missing_parameters(const EVP_PKEY *pkey) { in ec_missing_parameters() 352 static int ec_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from) { in ec_copy_parameters() 362 static int ec_cmp_parameters(const EVP_PKEY *a, const EVP_PKEY *b) { in ec_cmp_parameters() [all …]
|
D | p_dsa_asn1.c | 71 static int dsa_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey) { in dsa_pub_decode() 130 static int dsa_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) { in dsa_pub_encode() 174 static int dsa_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8) { in dsa_priv_decode() 247 static int dsa_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) { in dsa_priv_encode() 298 static int int_dsa_size(const EVP_PKEY *pkey) { in int_dsa_size() 302 static int dsa_bits(const EVP_PKEY *pkey) { in dsa_bits() 306 static int dsa_missing_parameters(const EVP_PKEY *pkey) { in dsa_missing_parameters() 328 static int dsa_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from) { in dsa_copy_parameters() 338 static int dsa_cmp_parameters(const EVP_PKEY *a, const EVP_PKEY *b) { in dsa_cmp_parameters() 344 static int dsa_pub_cmp(const EVP_PKEY *a, const EVP_PKEY *b) { in dsa_pub_cmp() [all …]
|
D | evp_asn1.c | 67 EVP_PKEY *d2i_PrivateKey(int type, EVP_PKEY **out, const uint8_t **inp, in d2i_PrivateKey() 69 EVP_PKEY *ret; in d2i_PrivateKey() 121 EVP_PKEY *d2i_AutoPrivateKey(EVP_PKEY **out, const uint8_t **inp, long len) { in d2i_AutoPrivateKey() 141 EVP_PKEY *ret; in d2i_AutoPrivateKey() 167 int i2d_PublicKey(EVP_PKEY *key, uint8_t **outp) { in i2d_PublicKey()
|
D | p_rsa_asn1.c | 72 static int rsa_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) { in rsa_pub_encode() 88 static int rsa_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey) { in rsa_pub_decode() 114 static int rsa_pub_cmp(const EVP_PKEY *a, const EVP_PKEY *b) { in rsa_pub_cmp() 119 static int rsa_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) { in rsa_priv_encode() 137 static int rsa_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8) { in rsa_priv_decode() 155 static int rsa_opaque(const EVP_PKEY *pkey) { in rsa_opaque() 159 static int rsa_supports_digest(const EVP_PKEY *pkey, const EVP_MD *md) { in rsa_supports_digest() 163 static int int_rsa_size(const EVP_PKEY *pkey) { in int_rsa_size() 167 static int rsa_bits(const EVP_PKEY *pkey) { in rsa_bits() 171 static void int_rsa_free(EVP_PKEY *pkey) { RSA_free(pkey->pkey.rsa); } in int_rsa_free() [all …]
|
D | digestsign.c | 70 const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey, in do_sigver_init() 107 ENGINE *e, EVP_PKEY *pkey) { in EVP_DigestSignInit() 112 const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey) { in EVP_DigestVerifyInit()
|
/external/boringssl/src/crypto/pem/ |
D | pem_pk8.c | 69 static int do_pk8pkey(BIO *bp, EVP_PKEY *x, int isder, 73 static int do_pk8pkey_fp(FILE *bp, EVP_PKEY *x, int isder, 84 int PEM_write_bio_PKCS8PrivateKey_nid(BIO *bp, EVP_PKEY *x, int nid, in PEM_write_bio_PKCS8PrivateKey_nid() 91 int PEM_write_bio_PKCS8PrivateKey(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc, in PEM_write_bio_PKCS8PrivateKey() 98 int i2d_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc, in i2d_PKCS8PrivateKey_bio() 105 int i2d_PKCS8PrivateKey_nid_bio(BIO *bp, EVP_PKEY *x, int nid, in i2d_PKCS8PrivateKey_nid_bio() 112 static int do_pk8pkey(BIO *bp, EVP_PKEY *x, int isder, int nid, const EVP_CIPHER *enc, in do_pk8pkey() 152 EVP_PKEY *d2i_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY **x, pem_password_cb *cb, void *u) in d2i_PKCS8PrivateKey_bio() 157 EVP_PKEY *ret; in d2i_PKCS8PrivateKey_bio() 185 int i2d_PKCS8PrivateKey_fp(FILE *fp, EVP_PKEY *x, const EVP_CIPHER *enc, in i2d_PKCS8PrivateKey_fp() [all …]
|
D | pem_all.c | 121 static RSA *pkey_get_rsa(EVP_PKEY *key, RSA **rsa); 122 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa); 123 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey); 142 static RSA *pkey_get_rsa(EVP_PKEY *key, RSA **rsa) in IMPLEMENT_PEM_rw() 159 EVP_PKEY *pktmp; in PEM_read_bio_RSAPrivateKey() 169 EVP_PKEY *pktmp; in PEM_read_RSAPrivateKey() 183 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa) in IMPLEMENT_PEM_write_cb_const() 200 EVP_PKEY *pktmp; in PEM_read_bio_DSAPrivateKey() 215 EVP_PKEY *pktmp; in IMPLEMENT_PEM_write_cb_const() 227 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey) in IMPLEMENT_PEM_rw_const() [all …]
|
D | pem_pkey.c | 77 EVP_PKEY *PEM_read_bio_PrivateKey(BIO *bp, EVP_PKEY **x, pem_password_cb *cb, void *u) in PEM_read_bio_PrivateKey() 84 EVP_PKEY *ret=NULL; in PEM_read_bio_PrivateKey() 96 if(*x) EVP_PKEY_free((EVP_PKEY *)*x); in PEM_read_bio_PrivateKey() 121 if(*x) EVP_PKEY_free((EVP_PKEY *)*x); in PEM_read_bio_PrivateKey() 144 int PEM_write_bio_PrivateKey(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc, in PEM_write_bio_PrivateKey() 170 static int set_pkey_type_from_str(EVP_PKEY *pkey, const char *name, size_t len) { in set_pkey_type_from_str() 178 EVP_PKEY *PEM_read_bio_Parameters(BIO *bp, EVP_PKEY **x) in PEM_read_bio_Parameters() 185 EVP_PKEY *ret=NULL; in PEM_read_bio_Parameters() 207 if(*x) EVP_PKEY_free((EVP_PKEY *)*x); in PEM_read_bio_Parameters() 219 int PEM_write_bio_Parameters(BIO *bp, EVP_PKEY *x) in PEM_write_bio_Parameters() [all …]
|
/external/boringssl/src/crypto/x509/ |
D | x_all.c | 67 int X509_verify(X509 *a, EVP_PKEY *r) in X509_verify() 75 int X509_REQ_verify(X509_REQ *a, EVP_PKEY *r) in X509_REQ_verify() 81 int X509_sign(X509 *x, EVP_PKEY *pkey, const EVP_MD *md) in X509_sign() 96 int X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const EVP_MD *md) in X509_REQ_sign() 108 int X509_CRL_sign(X509_CRL *x, EVP_PKEY *pkey, const EVP_MD *md) in X509_CRL_sign() 122 int NETSCAPE_SPKI_sign(NETSCAPE_SPKI *x, EVP_PKEY *pkey, const EVP_MD *md) in NETSCAPE_SPKI_sign() 128 int NETSCAPE_SPKI_verify(NETSCAPE_SPKI *x, EVP_PKEY *pkey) in NETSCAPE_SPKI_verify() 423 int i2d_PKCS8PrivateKeyInfo_fp(FILE *fp, EVP_PKEY *key) in i2d_PKCS8PrivateKeyInfo_fp() 434 int i2d_PrivateKey_fp(FILE *fp, EVP_PKEY *pkey) in i2d_PrivateKey_fp() 436 return ASN1_i2d_fp_of_const(EVP_PKEY,i2d_PrivateKey,fp,pkey); in i2d_PrivateKey_fp() [all …]
|
D | x_pubkey.c | 89 int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey) 136 EVP_PKEY *X509_PUBKEY_get(X509_PUBKEY *key) in X509_PUBKEY_get() 138 EVP_PKEY *ret=NULL; in X509_PUBKEY_get() 204 EVP_PKEY *d2i_PUBKEY(EVP_PKEY **a, const unsigned char **pp, in d2i_PUBKEY() 208 EVP_PKEY *pktmp; in d2i_PUBKEY() 222 int i2d_PUBKEY(const EVP_PKEY *a, unsigned char **pp) in i2d_PUBKEY() 227 if(!X509_PUBKEY_set(&xpk, (EVP_PKEY*) a)) return 0; in i2d_PUBKEY() 239 EVP_PKEY *pkey; in d2i_RSA_PUBKEY() 259 EVP_PKEY *pktmp; in i2d_RSA_PUBKEY() 278 EVP_PKEY *pkey; in d2i_DSA_PUBKEY() [all …]
|
D | x509_req.c | 70 X509_REQ *X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md) in X509_to_X509_REQ() 75 EVP_PKEY *pktmp; in X509_to_X509_REQ() 112 EVP_PKEY *X509_REQ_get_pubkey(X509_REQ *req) in X509_REQ_get_pubkey() 119 int X509_REQ_check_private_key(X509_REQ *x, EVP_PKEY *k) in X509_REQ_check_private_key() 121 EVP_PKEY *xk=NULL; in X509_REQ_check_private_key()
|
D | i2d_pr.c | 67 int i2d_PrivateKey(const EVP_PKEY *a, unsigned char **pp) in i2d_PrivateKey() 74 PKCS8_PRIV_KEY_INFO *p8 = EVP_PKEY2PKCS8((EVP_PKEY*)a); in i2d_PrivateKey()
|
/external/conscrypt/src/main/java/org/conscrypt/ |
D | NativeCrypto.java | 88 public static native int EVP_PKEY_size(NativeRef.EVP_PKEY pkey); in EVP_PKEY_size() 90 public static native int EVP_PKEY_type(NativeRef.EVP_PKEY pkey); in EVP_PKEY_type() 92 public static native String EVP_PKEY_print_public(NativeRef.EVP_PKEY pkeyRef); in EVP_PKEY_print_public() 94 public static native String EVP_PKEY_print_params(NativeRef.EVP_PKEY pkeyRef); in EVP_PKEY_print_params() 98 public static native int EVP_PKEY_cmp(NativeRef.EVP_PKEY pkey1, NativeRef.EVP_PKEY pkey2); in EVP_PKEY_cmp() 100 public static native byte[] i2d_PKCS8_PRIV_KEY_INFO(NativeRef.EVP_PKEY pkey); in i2d_PKCS8_PRIV_KEY_INFO() 104 public static native byte[] i2d_PUBKEY(NativeRef.EVP_PKEY pkey); in i2d_PUBKEY() 119 public static native int RSA_size(NativeRef.EVP_PKEY pkey); in RSA_size() 122 NativeRef.EVP_PKEY pkey, int padding); in RSA_private_encrypt() 125 NativeRef.EVP_PKEY pkey, int padding) throws BadPaddingException, SignatureException; in RSA_public_decrypt() [all …]
|
/external/google-tv-pairing-protocol/cpp/tests/polo/util/ |
D | certificateutiltest.cc | 54 EVP_PKEY* pkey = EVP_PKEY_new(); in TEST() 135 EVP_PKEY* pkey = CertificateUtil::PKEYFromPEM(pem, "testing"); in TEST() 147 EVP_PKEY* pkey = EVP_PKEY_new(); in TEST() 157 EVP_PKEY* verify = CertificateUtil::PKEYFromPEM(pem, "testing"); in TEST() 166 EVP_PKEY* pkey = CertificateUtil::GeneratePrivateKey(); in TEST() 173 EVP_PKEY* pkey = CertificateUtil::GeneratePrivateKey(); in TEST()
|
/external/google-tv-pairing-protocol/cpp/src/polo/util/ |
D | certificateutil.cc | 54 EVP_PKEY* CertificateUtil::PKEYFromPEM(std::string pem, in PKEYFromPEM() 57 EVP_PKEY* pkey = PEM_read_bio_PrivateKey(bio, NULL, 0, &passphrase[0]); in PKEYFromPEM() 63 std::string CertificateUtil::PKEYToPEM(EVP_PKEY* pkey, in PKEYToPEM() 79 EVP_PKEY* CertificateUtil::GeneratePrivateKey() { in GeneratePrivateKey() 80 EVP_PKEY* pkey = EVP_PKEY_new(); in GeneratePrivateKey() 86 X509* CertificateUtil::GenerateSelfSignedCert(EVP_PKEY* pkey, in GenerateSelfSignedCert()
|
D | certificateutil.h | 46 static EVP_PKEY* PKEYFromPEM(std::string pem, 53 static std::string PKEYToPEM(EVP_PKEY* pkey, 58 static EVP_PKEY* GeneratePrivateKey(); 65 static X509* GenerateSelfSignedCert(EVP_PKEY* pkey,
|
/external/boringssl/src/ssl/ |
D | ssl_rsa.c | 70 static int ssl_set_pkey(CERT *c, EVP_PKEY *pkey); 104 EVP_PKEY *pkey; in SSL_use_RSAPrivateKey() 127 static int ssl_set_pkey(CERT *c, EVP_PKEY *pkey) { in ssl_set_pkey() 162 int SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey) { in SSL_use_PrivateKey() 182 EVP_PKEY *pkey = d2i_PrivateKey(type, NULL, &p, (long)der_len); in SSL_use_PrivateKey_ASN1() 204 EVP_PKEY *pkey = X509_get_pubkey(x); in ssl_set_cert() 261 EVP_PKEY *pkey; in SSL_CTX_use_RSAPrivateKey() 295 int SSL_CTX_use_PrivateKey(SSL_CTX *ctx, EVP_PKEY *pkey) { in SSL_CTX_use_PrivateKey() 312 EVP_PKEY *pkey = d2i_PrivateKey(type, NULL, &p, (long)der_len); in SSL_CTX_use_PrivateKey_ASN1()
|
/external/libchrome/crypto/ |
D | ec_private_key.h | 20 typedef struct evp_pkey_st EVP_PKEY; typedef 75 EVP_PKEY* key() { return key_; } in key() 106 EVP_PKEY* key_;
|
D | rsa_private_key.h | 20 typedef struct evp_pkey_st EVP_PKEY; typedef 186 static RSAPrivateKey* CreateFromKey(EVP_PKEY* key); 194 EVP_PKEY* key() { return key_; } in key() 214 EVP_PKEY* key_;
|
/external/webrtc/webrtc/base/ |
D | opensslidentity.h | 31 explicit OpenSSLKeyPair(EVP_PKEY* pkey) : pkey_(pkey) { in OpenSSLKeyPair() 41 EVP_PKEY* pkey() const { return pkey_; } in pkey() 46 EVP_PKEY* pkey_;
|