Searched refs:KmErrorOr (Results 1 – 6 of 6) sorted by relevance
/system/keymaster/include/keymaster/ |
D | keymaster_utils.h | 35 template <typename T> class KmErrorOr { 39 KmErrorOr() : error_(KM_ERROR_UNKNOWN_ERROR), value_checked_(true) {} in KmErrorOr() function 42 KmErrorOr(keymaster_error_t error) : error_(error) {} // NOLINT(google-explicit-constructor) in KmErrorOr() function 45 KmErrorOr(const T& value) : value_(value) {} // NOLINT(google-explicit-constructor) in KmErrorOr() function 46 KmErrorOr(T&& value) : value_(std::move(value)) {} // NOLINT(google-explicit-constructor) in KmErrorOr() function 49 KmErrorOr(KmErrorOr&& other) { // NOLINT(google-explicit-constructor) in KmErrorOr() function 54 KmErrorOr& operator=(KmErrorOr&& other) { 65 KmErrorOr(const KmErrorOr&) = delete; 66 void operator=(const KmErrorOr&) = delete; 68 ~KmErrorOr() { in ~KmErrorOr()
|
D | keymaster_enforcement.h | 191 virtual KmErrorOr<std::array<uint8_t, 32>>
|
/system/keymaster/tests/ |
D | key_blob_test.cpp | 138 KmErrorOr<DeserializedKey> deserialized = DeserializeAuthEncryptedBlob(serialized_blob_); in TEST_P() 149 KmErrorOr<KeymasterKeyBlob> plaintext = in TEST_P() 469 ASSERT_DEATH({ KmErrorOr<int> kmError(KM_ERROR_UNKNOWN_ERROR); }, ""); in TEST() 475 KmErrorOr<int> kmError(KM_ERROR_UNKNOWN_ERROR); in TEST() 483 auto func = []() -> KmErrorOr<int> { in TEST() 486 return KmErrorOr<int>(KM_ERROR_UNEXPECTED_NULL_POINTER); in TEST() 500 KmErrorOr<int> err(KM_ERROR_UNEXPECTED_NULL_POINTER); in TEST() 501 KmErrorOr<int> err2(4); in TEST() 512 KmErrorOr<int> err(KM_ERROR_UNEXPECTED_NULL_POINTER); in TEST() 513 KmErrorOr<int> err2(4); in TEST() [all …]
|
/system/keymaster/include/keymaster/key_blob_utils/ |
D | auth_encrypted_key_blob.h | 93 KmErrorOr<EncryptedKey> 107 KmErrorOr<KeymasterKeyBlob> SerializeAuthEncryptedBlob(const EncryptedKey& encrypted_key, 116 KmErrorOr<DeserializedKey> DeserializeAuthEncryptedBlob(const KeymasterKeyBlob& key_blob); 121 KmErrorOr<KeymasterKeyBlob> DecryptKey(const DeserializedKey& key, const AuthorizationSet& hidden,
|
/system/keymaster/key_blob_utils/ |
D | auth_encrypted_key_blob.cpp | 42 KmErrorOr<Buffer> generate_nonce(const RandomSource& random, size_t size) { in generate_nonce() 51 KmErrorOr<Buffer> BuildDerivationInfo(const AuthEncryptedBlobFormat format, // in BuildDerivationInfo() 92 KmErrorOr<Buffer> DeriveAesGcmKeyEncryptionKey(const AuthEncryptedBlobFormat format, // in DeriveAesGcmKeyEncryptionKey() 105 KmErrorOr<Buffer> info = in DeriveAesGcmKeyEncryptionKey() 124 KmErrorOr<EncryptedKey> AesGcmEncryptKey(const AuthorizationSet& hw_enforced, // in AesGcmEncryptKey() 132 KmErrorOr<Buffer> kek = DeriveAesGcmKeyEncryptionKey(format, hw_enforced, sw_enforced, hidden, in AesGcmEncryptKey() 166 KmErrorOr<KeymasterKeyBlob> AesGcmDecryptKey(const DeserializedKey& key, in AesGcmDecryptKey() 170 KmErrorOr<Buffer> kek = in AesGcmDecryptKey() 205 KmErrorOr<KeymasterKeyBlob> SerializeAuthEncryptedBlob(const EncryptedKey& encrypted_key, in SerializeAuthEncryptedBlob() 242 KmErrorOr<DeserializedKey> DeserializeAuthEncryptedBlob(const KeymasterKeyBlob& key_blob) { in DeserializeAuthEncryptedBlob() [all …]
|
D | software_keyblobs.cpp | 241 KmErrorOr<DeserializedKey> key = DeserializeAuthEncryptedBlob(blob); in ParseAuthEncryptedBlob() 244 KmErrorOr<KeymasterKeyBlob> decrypted = in ParseAuthEncryptedBlob()
|