HomeSort by relevance Sort by last modified time
    Searched refs:pkey (Results 1 - 25 of 300) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/chromium_org/third_party/openssl/openssl/crypto/evp/
p_lib.c 85 int EVP_PKEY_bits(EVP_PKEY *pkey)
87 if (pkey && pkey->ameth && pkey->ameth->pkey_bits)
88 return pkey->ameth->pkey_bits(pkey);
92 int EVP_PKEY_size(EVP_PKEY *pkey)
94 if (pkey && pkey->ameth && pkey->ameth->pkey_size
    [all...]
evp_pkey.c 70 EVP_PKEY *pkey = NULL; local
77 if (!(pkey = EVP_PKEY_new())) {
82 if (!EVP_PKEY_set_type(pkey, OBJ_obj2nid(algoid)))
90 if (pkey->ameth->priv_decode)
92 if (!pkey->ameth->priv_decode(pkey, p8))
105 return pkey;
108 EVP_PKEY_free (pkey);
112 PKCS8_PRIV_KEY_INFO *EVP_PKEY2PKCS8(EVP_PKEY *pkey)
114 return EVP_PKEY2PKCS8_broken(pkey, PKCS8_OK)
    [all...]
  /external/openssl/crypto/evp/
p_lib.c 85 int EVP_PKEY_bits(EVP_PKEY *pkey)
87 if (pkey && pkey->ameth && pkey->ameth->pkey_bits)
88 return pkey->ameth->pkey_bits(pkey);
92 int EVP_PKEY_size(EVP_PKEY *pkey)
94 if (pkey && pkey->ameth && pkey->ameth->pkey_size
    [all...]
evp_pkey.c 70 EVP_PKEY *pkey = NULL; local
77 if (!(pkey = EVP_PKEY_new())) {
82 if (!EVP_PKEY_set_type(pkey, OBJ_obj2nid(algoid)))
90 if (pkey->ameth->priv_decode)
92 if (!pkey->ameth->priv_decode(pkey, p8))
105 return pkey;
108 EVP_PKEY_free (pkey);
112 PKCS8_PRIV_KEY_INFO *EVP_PKEY2PKCS8(EVP_PKEY *pkey)
114 return EVP_PKEY2PKCS8_broken(pkey, PKCS8_OK)
    [all...]
  /external/chromium_org/third_party/openssl/openssl/crypto/cmac/
cm_ameth.c 64 static int cmac_size(const EVP_PKEY *pkey)
69 static void cmac_key_free(EVP_PKEY *pkey)
71 CMAC_CTX *cmctx = (CMAC_CTX *)pkey->pkey.ptr;
  /external/openssl/crypto/cmac/
cm_ameth.c 64 static int cmac_size(const EVP_PKEY *pkey)
69 static void cmac_key_free(EVP_PKEY *pkey)
71 CMAC_CTX *cmctx = (CMAC_CTX *)pkey->pkey.ptr;
  /external/google-tv-pairing-protocol/cpp/tests/polo/util/
certificateutiltest.cc 54 EVP_PKEY* pkey = EVP_PKEY_new(); local
76 EVP_PKEY_assign_RSA(pkey, rsa);
82 X509_set_pubkey(x509, pkey);
92 X509_sign(x509, pkey, EVP_sha256());
97 EVP_PKEY_free(pkey);
135 EVP_PKEY* pkey = CertificateUtil::PKEYFromPEM(pem, "testing"); local
137 ASSERT_TRUE(pkey);
139 RSA* rsa = EVP_PKEY_get1_RSA(pkey);
142 EVP_PKEY_free(pkey);
147 EVP_PKEY* pkey = EVP_PKEY_new() local
166 EVP_PKEY* pkey = CertificateUtil::GeneratePrivateKey(); local
173 EVP_PKEY* pkey = CertificateUtil::GeneratePrivateKey(); local
    [all...]
  /external/chromium_org/third_party/openssl/openssl/crypto/hmac/
hm_ameth.c 70 static int hmac_size(const EVP_PKEY *pkey)
75 static void hmac_key_free(EVP_PKEY *pkey)
77 ASN1_OCTET_STRING *os = (ASN1_OCTET_STRING *)pkey->pkey.ptr;
87 static int hmac_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2)
106 static int old_hmac_decode(EVP_PKEY *pkey,
113 EVP_PKEY_assign(pkey, EVP_PKEY_HMAC, os);
117 static int old_hmac_encode(const EVP_PKEY *pkey, unsigned char **pder)
120 ASN1_OCTET_STRING *os = (ASN1_OCTET_STRING *)pkey->pkey.ptr
    [all...]
  /external/openssl/crypto/hmac/
hm_ameth.c 70 static int hmac_size(const EVP_PKEY *pkey)
75 static void hmac_key_free(EVP_PKEY *pkey)
77 ASN1_OCTET_STRING *os = (ASN1_OCTET_STRING *)pkey->pkey.ptr;
87 static int hmac_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2)
106 static int old_hmac_decode(EVP_PKEY *pkey,
113 EVP_PKEY_assign(pkey, EVP_PKEY_HMAC, os);
117 static int old_hmac_encode(const EVP_PKEY *pkey, unsigned char **pder)
120 ASN1_OCTET_STRING *os = (ASN1_OCTET_STRING *)pkey->pkey.ptr
    [all...]
  /external/chromium_org/third_party/openssl/openssl/crypto/asn1/
asn1_locl.h 86 int (*pub_print)(BIO *out, const EVP_PKEY *pkey, int indent,
91 int (*priv_print)(BIO *out, const EVP_PKEY *pkey, int indent,
97 int (*param_decode)(EVP_PKEY *pkey,
99 int (*param_encode)(const EVP_PKEY *pkey, unsigned char **pder);
103 int (*param_print)(BIO *out, const EVP_PKEY *pkey, int indent,
110 void (*pkey_free)(EVP_PKEY *pkey);
111 int (*pkey_ctrl)(EVP_PKEY *pkey, int op, long arg1, void *arg2);
115 int (*old_priv_decode)(EVP_PKEY *pkey,
117 int (*old_priv_encode)(const EVP_PKEY *pkey, unsigned char **pder);
121 EVP_PKEY *pkey);
    [all...]
i2d_pu.c 80 return(i2d_RSAPublicKey(a->pkey.rsa,pp));
84 return(i2d_DSAPublicKey(a->pkey.dsa,pp));
88 return(i2o_ECPublicKey(a->pkey.ec, pp));
x_pubkey.c 78 EVP_PKEY_free(pubkey->pkey);
90 int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey)
98 if (pkey->ameth)
100 if (pkey->ameth->pub_encode)
102 if (!pkey->ameth->pub_encode(pk, pkey))
139 if (key->pkey != NULL)
141 CRYPTO_add(&key->pkey->references, 1, CRYPTO_LOCK_EVP_PKEY);
142 return key->pkey;
174 /* Check to see if another thread set key->pkey first *
    [all...]
  /external/openssl/crypto/asn1/
asn1_locl.h 86 int (*pub_print)(BIO *out, const EVP_PKEY *pkey, int indent,
91 int (*priv_print)(BIO *out, const EVP_PKEY *pkey, int indent,
97 int (*param_decode)(EVP_PKEY *pkey,
99 int (*param_encode)(const EVP_PKEY *pkey, unsigned char **pder);
103 int (*param_print)(BIO *out, const EVP_PKEY *pkey, int indent,
110 void (*pkey_free)(EVP_PKEY *pkey);
111 int (*pkey_ctrl)(EVP_PKEY *pkey, int op, long arg1, void *arg2);
115 int (*old_priv_decode)(EVP_PKEY *pkey,
117 int (*old_priv_encode)(const EVP_PKEY *pkey, unsigned char **pder);
121 EVP_PKEY *pkey);
    [all...]
i2d_pu.c 80 return(i2d_RSAPublicKey(a->pkey.rsa,pp));
84 return(i2d_DSAPublicKey(a->pkey.dsa,pp));
88 return(i2o_ECPublicKey(a->pkey.ec, pp));
x_pubkey.c 78 EVP_PKEY_free(pubkey->pkey);
90 int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey)
98 if (pkey->ameth)
100 if (pkey->ameth->pub_encode)
102 if (!pkey->ameth->pub_encode(pk, pkey))
139 if (key->pkey != NULL)
141 CRYPTO_add(&key->pkey->references, 1, CRYPTO_LOCK_EVP_PKEY);
142 return key->pkey;
174 /* Check to see if another thread set key->pkey first *
    [all...]
  /external/chromium_org/third_party/openssl/openssl/crypto/dh/
dh_ameth.c 66 static void int_dh_free(EVP_PKEY *pkey)
68 DH_free(pkey->pkey.dh);
71 static int dh_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey)
117 EVP_PKEY_assign_DH(pkey, dh);
129 static int dh_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey)
139 dh=pkey->pkey.dh;
184 static int dh_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8)
223 EVP_PKEY_assign_DH(pkey, dh)
    [all...]
  /external/chromium_org/third_party/openssl/openssl/crypto/ec/
ec_ameth.c 103 static int eckey_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey)
105 EC_KEY *ec_key = pkey->pkey.ec;
190 static int eckey_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey)
217 EVP_PKEY_assign_EC_KEY(pkey, eckey);
229 const EC_GROUP *group = EC_KEY_get0_group(b->pkey.ec);
230 const EC_POINT *pa = EC_KEY_get0_public_key(a->pkey.ec),
231 *pb = EC_KEY_get0_public_key(b->pkey.ec);
240 static int eckey_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8)
301 EVP_PKEY_assign_EC_KEY(pkey, eckey)
    [all...]
  /external/openssl/crypto/dh/
dh_ameth.c 66 static void int_dh_free(EVP_PKEY *pkey)
68 DH_free(pkey->pkey.dh);
71 static int dh_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey)
117 EVP_PKEY_assign_DH(pkey, dh);
129 static int dh_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey)
139 dh=pkey->pkey.dh;
184 static int dh_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8)
223 EVP_PKEY_assign_DH(pkey, dh)
    [all...]
  /external/openssl/crypto/ec/
ec_ameth.c 103 static int eckey_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey)
105 EC_KEY *ec_key = pkey->pkey.ec;
190 static int eckey_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey)
217 EVP_PKEY_assign_EC_KEY(pkey, eckey);
229 const EC_GROUP *group = EC_KEY_get0_group(b->pkey.ec);
230 const EC_POINT *pa = EC_KEY_get0_public_key(a->pkey.ec),
231 *pb = EC_KEY_get0_public_key(b->pkey.ec);
240 static int eckey_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8)
301 EVP_PKEY_assign_EC_KEY(pkey, eckey)
    [all...]
  /external/chromium_org/net/base/
openssl_private_key_store_memory.cc 38 bool StoreKeyPair(EVP_PKEY* pkey) {
39 CRYPTO_add(&pkey->references, 1, CRYPTO_LOCK_EVP_PKEY);
41 keys_.push_back(pkey);
45 bool HasPrivateKey(EVP_PKEY* pkey) {
49 if (EVP_PKEY_cmp(*it, pkey) == 1)
65 EVP_PKEY* pkey) {
66 return MemoryKeyPairStore::GetInstance()->StoreKeyPair(pkey);
keygen_handler_openssl.cc 20 EVP_PKEY* pkey = key->key(); local
23 OpenSSLPrivateKeyStore::StoreKeyPair(url_, pkey);
29 NETSCAPE_SPKI_set_pubkey(spki.get(), pkey);
32 NETSCAPE_SPKI_sign(spki.get(), pkey, EVP_md5());
  /external/chromium_org/third_party/openssl/openssl/crypto/dsa/
dsa_ameth.c 69 static int dsa_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey)
126 EVP_PKEY_assign_DSA(pkey, dsa);
138 static int dsa_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey)
146 dsa=pkey->pkey.dsa;
147 if (pkey->save_parameters && dsa->p && dsa->q && dsa->g)
190 static int dsa_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8)
283 EVP_PKEY_assign_DSA(pkey, dsa);
303 static int dsa_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey)
318 params->length = i2d_DSAparams(pkey->pkey.dsa, &params->data)
    [all...]
  /external/openssl/crypto/dsa/
dsa_ameth.c 69 static int dsa_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey)
126 EVP_PKEY_assign_DSA(pkey, dsa);
138 static int dsa_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey)
146 dsa=pkey->pkey.dsa;
147 if (pkey->save_parameters && dsa->p && dsa->q && dsa->g)
190 static int dsa_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8)
283 EVP_PKEY_assign_DSA(pkey, dsa);
303 static int dsa_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey)
318 params->length = i2d_DSAparams(pkey->pkey.dsa, &params->data)
    [all...]
  /external/chromium_org/third_party/openssl/openssl/crypto/pkcs12/
p12_kiss.c 66 EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
69 int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
72 EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
76 * or it should point to a valid STACK structure. pkey and cert can be
80 int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert,
93 if(pkey)
94 *pkey = NULL;
127 if (!parse_pk12 (p12, pass, -1, pkey, ocerts))
135 if (pkey && *pkey && cert && !*cert
    [all...]
  /external/openssl/crypto/pkcs12/
p12_kiss.c 66 EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
69 int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
72 EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
76 * or it should point to a valid STACK structure. pkey and cert can be
80 int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert,
93 if(pkey)
94 *pkey = NULL;
127 if (!parse_pk12 (p12, pass, -1, pkey, ocerts))
135 if (pkey && *pkey && cert && !*cert
    [all...]

Completed in 678 milliseconds

1 2 3 4 5 6 7 8 91011>>