Searched refs:pkey (Results 1 - 4 of 4) sorted by relevance

/system/security/softkeymaster/
H A Dkeymaster_openssl.cpp95 static int wrap_key(EVP_PKEY* pkey, int type, uint8_t** keyBlob, size_t* keyBlobLength) { argument
97 int publicLen = i2d_PublicKey(pkey, NULL);
98 int privateLen = i2d_PrivateKey(pkey, NULL);
128 if (i2d_PublicKey(pkey, &p) != publicLen) {
137 if (i2d_PrivateKey(pkey, &p) != privateLen) {
177 Unique_EVP_PKEY pkey(EVP_PKEY_new());
178 if (pkey.get() == NULL) {
190 EVP_PKEY* tmp = pkey.get();
206 return pkey.release();
249 Unique_EVP_PKEY pkey(EVP_PKEY_ne
[all...]
/system/core/adb/
H A Dadb_auth_host.c63 static int RSA_to_RSAPublicKey(RSA *rsa, RSAPublicKey *pkey) argument
88 pkey->len = RSANUMWORDS;
89 pkey->n0inv = 0 - BN_get_word(n0inv);
92 pkey->rr[i] = BN_get_word(rem);
94 pkey->n[i] = BN_get_word(rem);
96 pkey->exponent = BN_get_word(rsa->e);
134 RSAPublicKey pkey; local
143 ret = RSA_to_RSAPublicKey(private_key, &pkey);
161 BIO_write(bio, &pkey, sizeof(pkey));
176 EVP_PKEY* pkey = EVP_PKEY_new(); local
[all...]
/system/security/keystore-engine/
H A Deng_keystore.cpp229 Unique_EVP_PKEY pkey(d2i_PUBKEY(NULL, &tmp, reply.length()));
230 if (pkey.get() == NULL) {
235 switch (EVP_PKEY_type(pkey->type)) {
237 Unique_RSA rsa(EVP_PKEY_get1_RSA(pkey.get()));
257 ALOGE("Unsupported key type %d", EVP_PKEY_type(pkey->type));
261 return pkey.release();
/system/security/keystore/
H A Dkeystore.cpp816 Unique_EVP_PKEY pkey(PEM_read_bio_PrivateKey(b.get(), NULL, NULL, NULL));
817 if (pkey.get() == NULL) {
822 Unique_PKCS8_PRIV_KEY_INFO pkcs8(EVP_PKEY2PKCS8(pkey.get()));

Completed in 40 milliseconds