Home
last modified time | relevance | path

Searched refs:pkcs8 (Results 1 – 4 of 4) sorted by relevance

/system/keymaster/
Dopenssl_utils.cpp42 UniquePtr<PKCS8_PRIV_KEY_INFO, PKCS8_PRIV_KEY_INFO_Delete> pkcs8( in convert_pkcs8_blob_to_evp() local
44 if (pkcs8.get() == NULL) in convert_pkcs8_blob_to_evp()
47 pkey->reset(EVP_PKCS82PKEY(pkcs8.get())); in convert_pkcs8_blob_to_evp()
Dsoft_keymaster_device.cpp287 UniquePtr<PKCS8_PRIV_KEY_INFO, PKCS8_PRIV_KEY_INFO_Delete> pkcs8( in GetPkcs8KeyAlgorithm() local
289 if (pkcs8.get() == NULL) { in GetPkcs8KeyAlgorithm()
294 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> pkey(EVP_PKCS82PKEY(pkcs8.get())); in GetPkcs8KeyAlgorithm()
/system/security/softkeymaster/
Dkeymaster_openssl.cpp414 Unique_PKCS8_PRIV_KEY_INFO pkcs8(d2i_PKCS8_PRIV_KEY_INFO(NULL, &key, key_length)); in openssl_import_keypair() local
415 if (pkcs8.get() == NULL) { in openssl_import_keypair()
421 Unique_EVP_PKEY pkey(EVP_PKCS82PKEY(pkcs8.get())); in openssl_import_keypair()
/system/security/keystore/
Dkeystore.cpp1563 Unique_PKCS8_PRIV_KEY_INFO pkcs8(EVP_PKEY2PKCS8(pkey.get())); in importBlobAsKey() local
1564 int len = i2d_PKCS8_PRIV_KEY_INFO(pkcs8.get(), NULL); in importBlobAsKey()
1572 if (i2d_PKCS8_PRIV_KEY_INFO(pkcs8.get(), &tmp) != len) { in importBlobAsKey()
1992 Unique_PKCS8_PRIV_KEY_INFO pkcs8(d2i_PKCS8_PRIV_KEY_INFO(NULL, &ptr, length)); in import() local
1993 if (!pkcs8.get()) { in import()
1996 Unique_EVP_PKEY pkey(EVP_PKCS82PKEY(pkcs8.get())); in import()