/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;
|
/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 | 74 EVP_PKEY *EVP_PKEY_new(void) { 75 EVP_PKEY *ret; 77 ret = OPENSSL_malloc(sizeof(EVP_PKEY)); 83 OPENSSL_memset(ret, 0, sizeof(EVP_PKEY)); 90 static void free_it(EVP_PKEY *pkey) { 98 void EVP_PKEY_free(EVP_PKEY *pkey) { 111 int EVP_PKEY_up_ref(EVP_PKEY *pkey) { 116 int EVP_PKEY_is_opaque(const EVP_PKEY *pkey) { 123 int EVP_PKEY_supports_digest(const EVP_PKEY *pkey, const EVP_MD *md) { 130 int EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b) [all...] |
internal.h | 81 int (*pub_decode)(EVP_PKEY *out, CBS *params, CBS *key); 85 int (*pub_encode)(CBB *out, const EVP_PKEY *key); 87 int (*pub_cmp)(const EVP_PKEY *a, const EVP_PKEY *b); 93 int (*priv_decode)(EVP_PKEY *out, CBS *params, CBS *key); 97 int (*priv_encode)(CBB *out, const EVP_PKEY *key); 101 int (*pkey_opaque)(const EVP_PKEY *pk); 107 int (*pkey_supports_digest)(const EVP_PKEY *pkey, const EVP_MD *md); 109 int (*pkey_size)(const EVP_PKEY *pk); 110 int (*pkey_bits)(const EVP_PKEY *pk) [all...] |
p_rsa_asn1.c | 69 static int rsa_pub_encode(CBB *out, const EVP_PKEY *key) { 88 static int rsa_pub_decode(EVP_PKEY *out, CBS *params, CBS *key) { 117 static int rsa_pub_cmp(const EVP_PKEY *a, const EVP_PKEY *b) { 122 static int rsa_priv_encode(CBB *out, const EVP_PKEY *key) { 140 static int rsa_priv_decode(EVP_PKEY *out, CBS *params, CBS *key) { 161 static int rsa_opaque(const EVP_PKEY *pkey) { 165 static int rsa_supports_digest(const EVP_PKEY *pkey, const EVP_MD *md) { 169 static int int_rsa_size(const EVP_PKEY *pkey) { 173 static int rsa_bits(const EVP_PKEY *pkey) [all...] |
evp_asn1.c | 96 EVP_PKEY *EVP_parse_public_key(CBS *cbs) { 114 /* Set up an |EVP_PKEY| of the appropriate type. */ 115 EVP_PKEY *ret = EVP_PKEY_new(); 137 int EVP_marshal_public_key(CBB *cbb, const EVP_PKEY *key) { 146 EVP_PKEY *EVP_parse_private_key(CBS *cbs) { 163 /* Set up an |EVP_PKEY| of the appropriate type. */ 164 EVP_PKEY *ret = EVP_PKEY_new(); 186 int EVP_marshal_private_key(CBB *cbb, const EVP_PKEY *key) { 195 static EVP_PKEY *old_priv_decode(CBS *cbs, int type) { 196 EVP_PKEY *ret = EVP_PKEY_new() [all...] |
p_ec_asn1.c | 68 static int eckey_pub_encode(CBB *out, const EVP_PKEY *key) { 92 static int eckey_pub_decode(EVP_PKEY *out, CBS *params, CBS *key) { 128 static int eckey_pub_cmp(const EVP_PKEY *a, const EVP_PKEY *b) { 143 static int eckey_priv_decode(EVP_PKEY *out, CBS *params, CBS *key) { 164 static int eckey_priv_encode(CBB *out, const EVP_PKEY *key) { 191 static int int_ec_size(const EVP_PKEY *pkey) { 195 static int ec_bits(const EVP_PKEY *pkey) { 204 static int ec_missing_parameters(const EVP_PKEY *pkey) { 208 static int ec_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from) [all...] |
p_dsa_asn1.c | 67 static int dsa_pub_decode(EVP_PKEY *out, CBS *params, CBS *key) { 104 static int dsa_pub_encode(CBB *out, const EVP_PKEY *key) { 127 static int dsa_priv_decode(EVP_PKEY *out, CBS *params, CBS *key) { 169 static int dsa_priv_encode(CBB *out, const EVP_PKEY *key) { 194 static int int_dsa_size(const EVP_PKEY *pkey) { 198 static int dsa_bits(const EVP_PKEY *pkey) { 202 static int dsa_missing_parameters(const EVP_PKEY *pkey) { 224 static int dsa_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from) { 234 static int dsa_cmp_parameters(const EVP_PKEY *a, const EVP_PKEY *b) [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 int 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) [all...] |
/external/boringssl/src/crypto/pem/ |
pem_all.c | 122 static RSA *pkey_get_rsa(EVP_PKEY *key, RSA **rsa); 123 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa); 124 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey); 133 * read in an EVP_PKEY structure with PEM_read_bio_PrivateKey() and extract 137 static RSA *pkey_get_rsa(EVP_PKEY *key, RSA **rsa) 156 EVP_PKEY *pktmp; 165 EVP_PKEY *pktmp; 181 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa) 200 EVP_PKEY *pktmp; 212 EVP_PKEY *pktmp [all...] |
pem_pk8.c | 68 static int do_pk8pkey(BIO *bp, EVP_PKEY *x, int isder, 71 static int do_pk8pkey_fp(FILE *bp, EVP_PKEY *x, int isder, 82 int PEM_write_bio_PKCS8PrivateKey_nid(BIO *bp, EVP_PKEY *x, int nid, 89 int PEM_write_bio_PKCS8PrivateKey(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc, 96 int i2d_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc, 103 int i2d_PKCS8PrivateKey_nid_bio(BIO *bp, EVP_PKEY *x, int nid, 110 static int do_pk8pkey(BIO *bp, EVP_PKEY *x, int isder, int nid, 156 EVP_PKEY *d2i_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY **x, pem_password_cb *cb, 162 EVP_PKEY *ret [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/ |
internal.h | 33 int x509_rsa_pss_to_ctx(EVP_MD_CTX *ctx, X509_ALGOR *sigalg, EVP_PKEY *pkey); 59 EVP_PKEY *pkey);
|
x_pubkey.c | 72 /* Minor tweak to operation: free up EVP_PKEY */ 90 int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey) 133 EVP_PKEY *X509_PUBKEY_get(X509_PUBKEY *key) 135 EVP_PKEY *ret = NULL; 184 * Now two pseudo ASN1 routines that take an EVP_PKEY structure and encode or 188 EVP_PKEY *d2i_PUBKEY(EVP_PKEY **a, const unsigned char **pp, long length) 191 EVP_PKEY *pktmp; 206 int i2d_PUBKEY(const EVP_PKEY *a, unsigned char **pp) 212 if (!X509_PUBKEY_set(&xpk, (EVP_PKEY *)a) [all...] |
/device/linaro/bootloader/arm-trusted-firmware/tools/cert_create/include/ |
key.h | 50 EVP_PKEY *key; /* Key container */
|
ext.h | 68 X509_EXTENSION *ext_new_key(int nid, int crit, EVP_PKEY *k);
|
/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();
|