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

1 2 3 4 5 6

  /system/keymaster/
ec_key.cpp 27 bool EcKey::EvpToInternal(const EVP_PKEY* pkey) {
28 ec_key_.reset(EVP_PKEY_get1_EC_KEY(const_cast<EVP_PKEY*>(pkey)));
32 bool EcKey::InternalToEvp(EVP_PKEY* pkey) const {
rsa_key.cpp 27 bool RsaKey::EvpToInternal(const EVP_PKEY* pkey) {
28 rsa_key_.reset(EVP_PKEY_get1_RSA(const_cast<EVP_PKEY*>(pkey)));
32 bool RsaKey::InternalToEvp(EVP_PKEY* pkey) const {
asymmetric_key.h 42 virtual bool InternalToEvp(EVP_PKEY* pkey) const = 0;
43 virtual bool EvpToInternal(const EVP_PKEY* pkey) = 0;
ec_key.h 35 bool InternalToEvp(EVP_PKEY* pkey) const override;
36 bool EvpToInternal(const EVP_PKEY* pkey) override;
ecdsa_operation.h 31 EcdsaOperation(keymaster_purpose_t purpose, keymaster_digest_t digest, EVP_PKEY* key)
45 EVP_PKEY* ecdsa_key_;
52 EcdsaSignOperation(keymaster_digest_t digest, EVP_PKEY* key)
66 EcdsaVerifyOperation(keymaster_digest_t digest, EVP_PKEY* key)
86 virtual Operation* InstantiateOperation(keymaster_digest_t digest, EVP_PKEY* key) = 0;
92 Operation* InstantiateOperation(keymaster_digest_t digest, EVP_PKEY* key) {
100 Operation* InstantiateOperation(keymaster_digest_t digest, EVP_PKEY* key) {
rsa_operation.h 37 keymaster_padding_t padding, EVP_PKEY* key)
60 EVP_PKEY* rsa_key_;
76 keymaster_padding_t padding, EVP_PKEY* key);
90 RsaSignOperation(keymaster_digest_t digest, keymaster_padding_t padding, EVP_PKEY* key)
112 RsaVerifyOperation(keymaster_digest_t digest, keymaster_padding_t padding, EVP_PKEY* key)
135 keymaster_padding_t padding, EVP_PKEY* key)
151 RsaEncryptOperation(keymaster_digest_t digest, keymaster_padding_t padding, EVP_PKEY* key)
163 RsaDecryptOperation(keymaster_digest_t digest, keymaster_padding_t padding, EVP_PKEY* key)
186 static EVP_PKEY* GetRsaKey(const Key& key, keymaster_error_t* error);
192 keymaster_padding_t padding, EVP_PKEY* key) = 0
    [all...]
ecdsa_keymaster1_operation.cpp 31 keymaster_error_t EcdsaKeymaster1WrappedOperation::Begin(EVP_PKEY* ecdsa_key,
61 EcdsaKeymaster1WrappedOperation::PrepareFinish(EVP_PKEY* ecdsa_key,
78 keymaster_error_t EcdsaKeymaster1WrappedOperation::GetError(EVP_PKEY* ecdsa_key) {
85 static EVP_PKEY* GetEvpKey(const EcdsaKeymaster1Key& key, keymaster_error_t* error) {
91 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> pkey(EVP_PKEY_new());
107 unique_ptr<EVP_PKEY, EVP_PKEY_Delete> ecdsa(GetEvpKey(ecdsa_km1_key, error));
rsa_key.h 32 bool InternalToEvp(EVP_PKEY* pkey) const override;
33 bool EvpToInternal(const EVP_PKEY* pkey) override;
openssl_utils.h 62 DEFINE_OPENSSL_OBJECT_POINTER(EVP_PKEY)
87 UniquePtr<EVP_PKEY, EVP_PKEY_Delete>* pkey);
92 UniquePtr<EVP_PKEY, EVP_PKEY_Delete>* evp_pkey);
94 keymaster_error_t EvpKeyToKeyMaterial(const EVP_PKEY* evp_pkey, KeymasterKeyBlob* key_blob);
  /external/google-tv-pairing-protocol/cpp/src/polo/util/
certificateutil.h 44 // @return a pointer to a new EVP_PKEY or NULL if there was an error loading
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,
certificateutil.cc 54 EVP_PKEY* CertificateUtil::PKEYFromPEM(std::string pem,
57 EVP_PKEY* pkey = PEM_read_bio_PrivateKey(bio, NULL, 0, &passphrase[0]);
63 std::string CertificateUtil::PKEYToPEM(EVP_PKEY* pkey,
79 EVP_PKEY* CertificateUtil::GeneratePrivateKey() {
80 EVP_PKEY* pkey = EVP_PKEY_new();
86 X509* CertificateUtil::GenerateSelfSignedCert(EVP_PKEY* pkey,
  /external/boringssl/src/crypto/evp/
evp.c 75 EVP_PKEY *EVP_PKEY_new(void) {
76 EVP_PKEY *ret;
78 ret = OPENSSL_malloc(sizeof(EVP_PKEY));
84 memset(ret, 0, sizeof(EVP_PKEY));
91 static void free_it(EVP_PKEY *pkey) {
99 void EVP_PKEY_free(EVP_PKEY *pkey) {
112 EVP_PKEY *EVP_PKEY_up_ref(EVP_PKEY *pkey) {
117 int EVP_PKEY_is_opaque(const EVP_PKEY *pkey) {
124 int EVP_PKEY_supports_digest(const EVP_PKEY *pkey, const EVP_MD *md)
    [all...]
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)
    [all...]
evp_asn1.c 67 EVP_PKEY *d2i_PrivateKey(int type, EVP_PKEY **out, const uint8_t **inp,
69 EVP_PKEY *ret;
121 EVP_PKEY *d2i_AutoPrivateKey(EVP_PKEY **out, const uint8_t **inp, long len) {
141 EVP_PKEY *ret;
167 int i2d_PublicKey(EVP_PKEY *key, uint8_t **outp) {
p_ec_asn1.c 89 static int eckey_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) {
166 static int eckey_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey) {
200 static int eckey_pub_cmp(const EVP_PKEY *a, const EVP_PKEY *b) {
215 static int eckey_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8) {
283 static int eckey_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) {
335 static int int_ec_size(const EVP_PKEY *pkey) {
339 static int ec_bits(const EVP_PKEY *pkey) {
348 static int ec_missing_parameters(const EVP_PKEY *pkey) {
352 static int ec_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from)
    [all...]
  /external/boringssl/src/include/openssl/
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)
    [all...]
  /external/boringssl/src/crypto/pem/
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);
136 * For private keys we read in an EVP_PKEY structure with
142 static RSA *pkey_get_rsa(EVP_PKEY *key, RSA **rsa)
159 EVP_PKEY *pktmp;
169 EVP_PKEY *pktmp;
183 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa)
200 EVP_PKEY *pktmp;
215 EVP_PKEY *pktmp
    [all...]
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,
91 int PEM_write_bio_PKCS8PrivateKey(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc,
98 int i2d_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc,
105 int i2d_PKCS8PrivateKey_nid_bio(BIO *bp, EVP_PKEY *x, int nid,
112 static int do_pk8pkey(BIO *bp, EVP_PKEY *x, int isder, int nid, const EVP_CIPHER *enc,
152 EVP_PKEY *d2i_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY **x, pem_password_cb *cb, void *u)
157 EVP_PKEY *ret
    [all...]
pem_pkey.c 77 EVP_PKEY *PEM_read_bio_PrivateKey(BIO *bp, EVP_PKEY **x, pem_password_cb *cb, void *u)
84 EVP_PKEY *ret=NULL;
96 if(*x) EVP_PKEY_free((EVP_PKEY *)*x);
121 if(*x) EVP_PKEY_free((EVP_PKEY *)*x);
144 int PEM_write_bio_PrivateKey(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc,
170 static int set_pkey_type_from_str(EVP_PKEY *pkey, const char *name, size_t len) {
178 EVP_PKEY *PEM_read_bio_Parameters(BIO *bp, EVP_PKEY **x)
185 EVP_PKEY *ret=NULL
    [all...]
  /system/security/keystore-engine/
methods.h 66 int ecdsa_pkey_setup(ENGINE *, EVP_PKEY*, const char*);
70 int dsa_pkey_setup(ENGINE *, EVP_PKEY*, const char*);
74 int rsa_pkey_setup(ENGINE *, EVP_PKEY*, const char*);
  /external/boringssl/src/crypto/x509/
i2d_pr.c 67 int i2d_PrivateKey(const EVP_PKEY *a, unsigned char **pp)
74 PKCS8_PRIV_KEY_INFO *p8 = EVP_PKEY2PKCS8((EVP_PKEY*)a);
x_pubkey.c 70 /* Minor tweak to operation: free up EVP_PKEY */
89 int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey)
136 EVP_PKEY *X509_PUBKEY_get(X509_PUBKEY *key)
138 EVP_PKEY *ret=NULL;
200 /* Now two pseudo ASN1 routines that take an EVP_PKEY structure
204 EVP_PKEY *d2i_PUBKEY(EVP_PKEY **a, const unsigned char **pp,
208 EVP_PKEY *pktmp;
222 int i2d_PUBKEY(const EVP_PKEY *a, unsigned char **pp)
227 if(!X509_PUBKEY_set(&xpk, (EVP_PKEY*) a)) return 0
    [all...]
  /external/google-tv-pairing-protocol/cpp/tests/polo/util/
certificateutiltest.cc 54 EVP_PKEY* pkey = EVP_PKEY_new();
135 EVP_PKEY* pkey = CertificateUtil::PKEYFromPEM(pem, "testing");
147 EVP_PKEY* pkey = EVP_PKEY_new();
157 EVP_PKEY* verify = CertificateUtil::PKEYFromPEM(pem, "testing");
166 EVP_PKEY* pkey = CertificateUtil::GeneratePrivateKey();
173 EVP_PKEY* pkey = CertificateUtil::GeneratePrivateKey();
  /system/security/keystore/
keystore_utils.h 49 void operator()(EVP_PKEY* p) const { EVP_PKEY_free(p); }
51 typedef UniquePtr<EVP_PKEY, EVP_PKEY_Delete> Unique_EVP_PKEY;
  /external/libchrome/crypto/
ec_private_key.h 20 typedef struct evp_pkey_st EVP_PKEY;
75 EVP_PKEY* key() { return key_; }
106 EVP_PKEY* key_;

Completed in 412 milliseconds

1 2 3 4 5 6