Searched defs:pkey (Results 1 - 2 of 2) sorted by relevance

/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/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...]

Completed in 36 milliseconds