Searched defs:keyBlob (Results 1 - 2 of 2) sorted by path

/system/security/keystore/
H A Dkeystore.cpp592 ResponseCode get(const char* filename, Blob* keyBlob, const BlobType type) { argument
593 ResponseCode rc = keyBlob->decryptBlob(filename, &mMasterKeyDecryption);
598 const uint8_t version = keyBlob->getVersion();
600 upgrade(filename, keyBlob, version, type);
603 if (keyBlob->getType() != type) {
604 ALOGW("key found but type doesn't match: %d vs %d", keyBlob->getType(), type);
611 ResponseCode put(const char* filename, Blob* keyBlob) { argument
612 return keyBlob->encryptBlob(filename, &mMasterKeyEncryption, mEntropy);
666 Blob keyBlob(data, dataLength, NULL, 0, TYPE_KEY_PAIR);
669 return put(filename, &keyBlob);
895 get_key_for_name(KeyStore* keyStore, Blob* keyBlob, const Value* keyName, const uid_t uid, const BlobType type) argument
942 Blob keyBlob; local
963 Blob keyBlob; local
1115 Blob keyBlob; local
1153 Blob keyBlob; local
1183 Blob keyBlob; local
1223 Blob keyBlob; 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
142 *keyBlob = derData.release();
147 static EVP_PKEY* unwrap_key(const uint8_t* keyBlob, const size_t keyBlobLength) { argument
150 const uint8_t* p = keyBlob;
151 const uint8_t *const end = keyBlob + keyBlobLength;
153 if (keyBlob == NULL) {
211 uint8_t** keyBlob, size_t* keyBlobLength) {
261 if (wrap_key(pkey.get(), EVP_PKEY_RSA, keyBlob, keyBlobLength)) {
343 const uint8_t* keyBlob, const size_t keyBlobLength,
359 Unique_EVP_PKEY pkey(unwrap_key(keyBlob, keyBlobLengt
209 openssl_generate_keypair(const keymaster_device_t* dev, const keymaster_keypair_t key_type, const void* key_params, uint8_t** keyBlob, size_t* keyBlobLength) argument
341 openssl_sign_data(const keymaster_device_t* dev, const void* params, const uint8_t* keyBlob, const size_t keyBlobLength, const uint8_t* data, const size_t dataLength, uint8_t** signedData, size_t* signedDataLength) argument
401 openssl_verify_data(const keymaster_device_t* dev, const void* params, const uint8_t* keyBlob, const size_t keyBlobLength, const uint8_t* signedData, const size_t signedDataLength, const uint8_t* signature, const size_t signatureLength) argument
[all...]

Completed in 5 milliseconds