Home
last modified time | relevance | path

Searched refs:KeyBlob (Results 1 – 9 of 9) sorted by relevance

/system/keymaster/
Dkey_blob.cpp29 class KeyBlob::AeCtx {
43 const size_t KeyBlob::NONCE_LENGTH;
44 const size_t KeyBlob::TAG_LENGTH;
46 KeyBlob::KeyBlob(const AuthorizationSet& enforced, const AuthorizationSet& unenforced, in KeyBlob() function in keymaster::KeyBlob
88 KeyBlob::KeyBlob(const keymaster_key_blob_t& key, const AuthorizationSet& hidden, in KeyBlob() function in keymaster::KeyBlob
103 KeyBlob::KeyBlob(const uint8_t* key_blob, size_t blob_size) in KeyBlob() function in keymaster::KeyBlob
115 size_t KeyBlob::SerializedSize() const { in SerializedSize()
120 uint8_t* KeyBlob::Serialize(uint8_t* buf, const uint8_t* end) const { in Serialize()
131 bool KeyBlob::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize()
149 void KeyBlob::EncryptKey(const keymaster_key_blob_t& master_key) { in EncryptKey()
[all …]
Dkey_blob_test.cpp44 const uint8_t nonce[KeyBlob::NONCE_LENGTH]{12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1};
70 blob_.reset(new KeyBlob(enforced_, unenforced_, hidden_, key_, master_key_, nonce)); in KeyBlobTest()
77 UniquePtr<KeyBlob> blob_;
95 KeyBlob deserialized(encrypted_blob, hidden_, master_key_); in TEST_F()
106 serialized_blob[KeyBlob::NONCE_LENGTH]++; in TEST_F()
110 KeyBlob deserialized(encrypted_blob, hidden_, master_key_); in TEST_F()
129 KeyBlob deserialized(encrypted_blob, hidden_, master_key_); in TEST_F()
142 auto tag_ptr = std::search(begin, end, blob_->tag(), blob_->tag() + KeyBlob::TAG_LENGTH); in TEST_F()
144 EXPECT_EQ(end, std::search(tag_ptr + 1, end, blob_->tag(), blob_->tag() + KeyBlob::TAG_LENGTH)); in TEST_F()
149 KeyBlob deserialized(encrypted_blob, hidden_, master_key_); in TEST_F()
[all …]
Dkey.h26 class KeyBlob; variable
31 static Key* CreateKey(const KeyBlob& blob, const Logger& logger, keymaster_error_t* error);
56 Key(const KeyBlob& blob, const Logger& logger);
Dasymmetric_key.h32 AsymmetricKey(const KeyBlob& blob, const Logger& logger) : Key(blob, logger) {} in AsymmetricKey()
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);
Dgoogle_keymaster.cpp180 UniquePtr<KeyBlob> blob( in GetKeyCharacteristics()
320 uint8_t nonce[KeyBlob::NONCE_LENGTH]; in SerializeKey()
324 UniquePtr<KeyBlob> blob( in SerializeKey()
325 new KeyBlob(*enforced, *unenforced, hidden_auths, key_data, MasterKey(), nonce)); in SerializeKey()
345 UniquePtr<KeyBlob> blob(LoadKeyBlob(key, client_params, error)); in LoadKey()
351 KeyBlob* GoogleKeymaster::LoadKeyBlob(const keymaster_key_blob_t& key, in LoadKeyBlob()
356 UniquePtr<KeyBlob> blob(new KeyBlob(key, hidden, MasterKey())); in LoadKeyBlob()
Dkey.cpp32 Key::Key(const KeyBlob& blob, const Logger& logger) : logger_(logger) { in Key()
38 Key* Key::CreateKey(const KeyBlob& blob, const Logger& logger, keymaster_error_t* error) { in CreateKey()
Dasymmetric_key.cpp38 keymaster_error_t AsymmetricKey::LoadKey(const KeyBlob& blob) { in LoadKey()
221 RsaKey::RsaKey(const KeyBlob& blob, const Logger& logger, keymaster_error_t* error) in RsaKey()
425 DsaKey::DsaKey(const KeyBlob& blob, const Logger& logger, keymaster_error_t* error) in DsaKey()
593 EcdsaKey::EcdsaKey(const KeyBlob& blob, const Logger& logger, keymaster_error_t* error) in EcdsaKey()
/system/keymaster/include/keymaster/
Dkey_blob.h38 class KeyBlob : public Serializable {
57 KeyBlob(const AuthorizationSet& enforced, const AuthorizationSet& unenforced,
71 KeyBlob(const keymaster_key_blob_t& keymaster_blob, const AuthorizationSet& hidden,
80 KeyBlob(const uint8_t* key_blob, size_t blob_size);
82 ~KeyBlob() { in ~KeyBlob()
Dgoogle_keymaster.h27 class KeyBlob; variable
94 KeyBlob* LoadKeyBlob(const keymaster_key_blob_t& key, const AuthorizationSet& client_params,
112 KeyBlob* blob);
113 keymaster_error_t UnwrapKey(const KeyBlob* blob, uint8_t* key, size_t key_length);