/system/keymaster/ |
H A D | google_softkeymaster.h | 29 root_of_trust.blob.data = reinterpret_cast<const uint8_t*>("SW"); 30 root_of_trust.blob.data_length = 2; 39 keymaster_key_blob_t blob; local 40 blob.key_material = master_key_; 41 blob.key_material_size = 16; 42 return blob;
|
H A D | openssl_utils.h | 41 inline void convert_bn_to_blob(BIGNUM* bn, keymaster_blob_t* blob) { argument 42 blob->data_length = BN_num_bytes(bn); 43 blob->data = new uint8_t[blob->data_length]; 44 BN_bn2bin(bn, const_cast<uint8_t*>(blob->data));
|
H A D | key.cpp | 32 Key::Key(const KeyBlob& blob, const Logger& logger) : logger_(logger) { argument 33 authorizations_.push_back(blob.unenforced()); 34 authorizations_.push_back(blob.enforced()); 38 Key* Key::CreateKey(const KeyBlob& blob, const Logger& logger, keymaster_error_t* error) { argument 39 switch (blob.algorithm()) { 41 return new RsaKey(blob, logger, error); 43 return new DsaKey(blob, logger, error); 45 return new EcdsaKey(blob, logger, error);
|
H A D | asymmetric_key.h | 32 AsymmetricKey(const KeyBlob& blob, const Logger& logger) : Key(blob, logger) {} argument 33 keymaster_error_t LoadKey(const KeyBlob& blob); 66 RsaKey(const KeyBlob& blob, const Logger& logger, keymaster_error_t* error); 92 DsaKey(const KeyBlob& blob, const Logger& logger, keymaster_error_t* error); 120 EcdsaKey(const KeyBlob& blob, const Logger& logger, keymaster_error_t* error);
|
H A D | asymmetric_key.cpp | 38 keymaster_error_t AsymmetricKey::LoadKey(const KeyBlob& blob) { argument 44 const uint8_t* key_material = blob.key_material(); 45 if (d2i_PrivateKey(evp_key_type(), &tmp_pkey, &key_material, blob.key_material_length()) == 221 RsaKey::RsaKey(const KeyBlob& blob, const Logger& logger, keymaster_error_t* error) argument 222 : AsymmetricKey(blob, logger) { 224 *error = LoadKey(blob); 256 keymaster_blob_t* blob) { 257 if (!auths.GetTagValue(tag, blob)) 258 blob->data = NULL; 264 keymaster_blob_t blob; local 255 GetDsaParamData(const AuthorizationSet& auths, TypedTag<KM_BIGNUM, Tag> tag, keymaster_blob_t* blob) argument 339 keymaster_blob_t blob; local 425 DsaKey(const KeyBlob& blob, const Logger& logger, keymaster_error_t* error) argument 593 EcdsaKey(const KeyBlob& blob, const Logger& logger, keymaster_error_t* error) argument [all...] |
/system/keymaster/include/keymaster/ |
H A D | keymaster_tags.h | 237 const keymaster_blob_t& blob) { 238 return keymaster_param_blob(tag, blob.data, blob.data_length); 249 const keymaster_blob_t& blob) { 250 return keymaster_param_blob(tag, blob.data, blob.data_length); 236 Authorization(TypedTag<KM_BYTES, Tag> tag, const keymaster_blob_t& blob) argument 248 Authorization(TypedTag<KM_BIGNUM, Tag> tag, const keymaster_blob_t& blob) argument
|
H A D | google_keymaster_messages.h | 140 void SetKeyMaterial(const keymaster_key_blob_t& blob) { argument 141 SetKeyMaterial(blob.key_material, blob.key_material_size); 166 void SetKeyMaterial(const keymaster_key_blob_t& blob) { argument 167 SetKeyMaterial(blob.key_material, blob.key_material_size); 250 void SetKeyMaterial(const keymaster_key_blob_t& blob) { argument 251 SetKeyMaterial(blob.key_material, blob.key_material_size); 268 void SetKeyMaterial(const keymaster_key_blob_t& blob) { argument [all...] |
H A D | keymaster_defs.h | 277 keymaster_blob_t blob; /* KM_BIGNUM and KM_BYTES*/ member in union:__anon300::__anon301 436 param.blob.data = bytes; 437 param.blob.data_length = bytes_len; 464 free((void*)param->blob.data);
|
/system/security/keystore/ |
H A D | keystore.cpp | 441 /* Here is the file format. There are two parts in blob.value, the secret and 443 * can be found in blob.length. The description is stored after the secret in 444 * plaintext, and its size is specified in blob.info. The total size of the two 446 * the second is the blob's type, and the third byte is flags. Fields other 447 * than blob.info, blob.length, and blob.value are modified by encryptBlob() 464 struct __attribute__((packed)) blob { struct 506 Blob(blob b) { 573 ALOGV("writing blob 1394 upgradeBlob(const char* filename, Blob* blob, const uint8_t oldVersion, const BlobType type, uid_t uid) argument 1438 importBlobAsKey(Blob* blob, const char* filename, uid_t uid) argument [all...] |