| /system/ulib/crypto/ |
| A D | secret.cpp | 30 Secret::Secret() : buf_(nullptr), len_(0) {} in Secret() function in crypto::Secret 32 Secret::~Secret() { in ~Secret() 36 zx_status_t Secret::Allocate(size_t len, uint8_t** out) { in Allocate() 53 zx_status_t Secret::Generate(size_t len) { in Generate() 66 void Secret::Clear() { in Clear()
|
| A D | hmac.cpp | 42 zx_status_t HMAC::Create(digest::Algorithm digest, const Secret& key, const void* in, size_t in_len, in Create() 55 zx_status_t HMAC::Verify(digest::Algorithm digest, const Secret& key, const void* in, size_t in_len, in Verify() 86 zx_status_t HMAC::Init(digest::Algorithm digest, const Secret& key, uint16_t flags) { in Init()
|
| A D | hkdf.cpp | 36 zx_status_t HKDF::Init(digest::Algorithm digest, const Secret& key, const Bytes& salt, in Init() 86 zx_status_t HKDF::Derive(const char* label, size_t len, Secret* out) { in Derive()
|
| A D | cipher.cpp | 115 zx_status_t Cipher::Init(Algorithm algo, Direction direction, const Secret& key, const Bytes& iv, in Init()
|
| A D | aead.cpp | 208 zx_status_t AEAD::Init(Algorithm algo, const Secret& key, const Bytes& iv, in Init()
|
| /system/ulib/zxcrypt/include/zxcrypt/ |
| A D | volume.h | 77 static zx_status_t Create(fbl::unique_fd fd, const crypto::Secret& key, 83 static zx_status_t Unlock(fbl::unique_fd fd, const crypto::Secret& key, key_slot_t slot, 88 static zx_status_t Unlock(zx_device_t* dev, const crypto::Secret& key, key_slot_t slot, 93 zx_status_t Unlock(const crypto::Secret& key, key_slot_t slot = 0); 105 zx_status_t Enroll(const crypto::Secret& key, key_slot_t slot); 132 zx_status_t DeriveSlotKeys(const crypto::Secret& key, key_slot_t slot); 155 zx_status_t SealBlock(const crypto::Secret& key, key_slot_t slot); 159 zx_status_t UnsealBlock(const crypto::Secret& key, key_slot_t slot); 195 crypto::Secret wrap_key_; 200 crypto::Secret data_key_;
|
| /system/ulib/crypto/include/crypto/ |
| A D | secret.h | 22 class Secret final { 24 Secret(); 25 ~Secret(); 43 DISALLOW_COPY_AND_ASSIGN_ALLOW_MOVE(Secret);
|
| A D | hkdf.h | 36 zx_status_t Init(digest::Algorithm digest, const Secret& ikm, const Bytes& salt, 43 zx_status_t Derive(const char* label, size_t len, Secret* out); 54 Secret prk_;
|
| A D | hmac.h | 32 static zx_status_t Create(digest::Algorithm digest, const Secret& key, const void* in, 39 static zx_status_t Verify(digest::Algorithm digest, const Secret& key, const void* in, 45 zx_status_t Init(digest::Algorithm digest, const Secret& key, uint16_t flags = 0);
|
| A D | cipher.h | 59 zx_status_t Init(Algorithm algo, Direction direction, const Secret& key, const Bytes& iv, 64 zx_status_t InitEncrypt(Algorithm algo, const Secret& key, const Bytes& iv) { in InitEncrypt() 67 … zx_status_t InitEncrypt(Algorithm algo, const Secret& key, const Bytes& iv, uint64_t alignment) { in InitEncrypt() 73 zx_status_t InitDecrypt(Algorithm algo, const Secret& key, const Bytes& iv) { in InitDecrypt() 76 … zx_status_t InitDecrypt(Algorithm algo, const Secret& key, const Bytes& iv, uint64_t alignment) { in InitDecrypt()
|
| A D | aead.h | 47 zx_status_t InitSeal(Algorithm aead, const Secret& key, const Bytes& iv) { in InitSeal() 53 zx_status_t InitOpen(Algorithm aead, const Secret& key, const Bytes& iv) { in InitOpen() 87 zx_status_t Init(Algorithm aead, const Secret& key, const Bytes& iv,
|
| /system/utest/crypto/ |
| A D | secret.cpp | 21 Secret secret; in TestAllocate() 33 static_cast<Secret*>(arg)->Allocate(0, &buf); in TestAllocate() 36 ASSERT_DEATH([](void* arg) { static_cast<Secret*>(arg)->Allocate(kSize, nullptr); }, &secret, in TestAllocate() 64 Secret secret; in TestGenerate() 68 ASSERT_DEATH([](void* arg) { static_cast<Secret*>(arg)->Generate(0); }, &secret, "zero length"); in TestGenerate() 87 Secret secret; in TestClear()
|
| A D | utils.h | 66 zx_status_t HexToSecret(const char* hex, Secret* out); 70 zx_status_t GenerateKeyMaterial(Cipher::Algorithm cipher, Secret* key, Bytes* iv); 74 zx_status_t GenerateKeyMaterial(AEAD::Algorithm aead, Secret* key, Bytes* iv);
|
| A D | cipher.cpp | 56 Secret key; in TestInitEncrypt_Uninitialized() 65 Secret key; in TestInitEncrypt() 70 Secret bad_key; in TestInitEncrypt() 93 Secret key; in DEFINE_EACH() 102 Secret key; in TestInitDecrypt() 107 Secret bad_key; in TestInitDecrypt() 130 Secret key; in DEFINE_EACH() 165 Secret key; in DEFINE_EACH() 203 Secret key; in DEFINE_EACH() 268 Secret key; in DEFINE_EACH() [all …]
|
| A D | hkdf.cpp | 26 Secret ikm; in TestInit() 59 Secret ikm, key1, key2, key3; in TestDerive() 89 Secret ikm, okm; in TestRfc5869_TC1() 114 Secret ikm, okm; in TestRfc5869_TC2() 148 Secret ikm, okm; in TestRfc5869_TC3()
|
| A D | utils.cpp | 61 zx_status_t HexToSecret(const char* hex, Secret* out) { in HexToSecret() 76 zx_status_t GenerateKeyMaterial(Cipher::Algorithm cipher, Secret* key, Bytes* iv) { in GenerateKeyMaterial() 96 zx_status_t GenerateKeyMaterial(AEAD::Algorithm cipher, Secret* key, Bytes* iv) { in GenerateKeyMaterial()
|
| A D | aead.cpp | 75 Secret key; in TestInitSeal_Uninitialized() 84 Secret key; in TestInitSeal() 89 Secret bad_key; in TestInitSeal() 108 Secret key; in DEFINE_EACH() 117 Secret key; in TestInitOpen() 122 Secret bad_key; in TestInitOpen() 141 Secret key; in DEFINE_EACH() 172 Secret key; in DEFINE_EACH() 236 Secret key; in DEFINE_EACH() 477 Secret key; in TestAes128GcmSiv_TC()
|
| A D | hmac.cpp | 26 Secret key; in TestInit() 56 Secret key; in TestUpdate() 81 Secret key; in TestFinal() 110 Secret key; in TestCreate() 145 Secret key; in TestVerify() 185 Secret key; in TestRfc4231_TC()
|
| /system/utest/zxcrypt/ |
| A D | volume.cpp | 28 bool VolumeCreate(const fbl::unique_fd& fd, const crypto::Secret& key, bool fvm, in VolumeCreate() 86 crypto::Secret short_key; in TestCreate() 115 crypto::Secret bad_key; in TestUnlock() 173 crypto::Secret bad_key; in TestEnroll()
|
| A D | test-device.h | 77 const crypto::Secret& key() const { return key_; } in key() 200 crypto::Secret key_;
|
| /system/ulib/zxcrypt/ |
| A D | volume.cpp | 207 zx_status_t Volume::Create(fbl::unique_fd fd, const crypto::Secret& key, in Create() 224 zx_status_t Volume::Unlock(fbl::unique_fd fd, const crypto::Secret& key, key_slot_t slot, in Unlock() 238 zx_status_t Volume::Unlock(zx_device_t* dev, const crypto::Secret& key, key_slot_t slot, in Unlock() 260 zx_status_t Volume::Unlock(const crypto::Secret& key, key_slot_t slot) { in Unlock() 337 zx_status_t Volume::Enroll(const crypto::Secret& key, key_slot_t slot) { in Enroll() 506 zx_status_t Volume::DeriveSlotKeys(const crypto::Secret& key, key_slot_t slot) { in DeriveSlotKeys() 522 crypto::Secret wrap_iv; in DeriveSlotKeys() 615 zx_status_t Volume::SealBlock(const crypto::Secret& key, key_slot_t slot) { in SealBlock() 643 zx_status_t Volume::UnsealBlock(const crypto::Secret& key, key_slot_t slot) { in UnsealBlock()
|
| /system/ulib/ftl/inc/ |
| A D | sys.h | 188 typedef struct secret Secret; typedef 204 extern Secret Secrets[]; 208 Secret* SysLogin(SysLoginData* login_data);
|
| /system/dev/block/zxcrypt/ |
| A D | device.cpp | 116 crypto::Secret root_key; in Init()
|
| /system/uapp/disk-pave/ |
| A D | pave-lib.cpp | 475 crypto::Secret key; in ZxcryptCreate()
|