/trusty/user/base/lib/hwkey/rust/src/ |
D | lib.rs | 215 kdf_version: args.kdf_version.into(), in derive() 248 kdf_version: KdfVersion::from(response.kdf_version), in derive() 387 pub kdf_version: KdfVersion, field 401 kdf_version: KdfVersion, field 426 kdf_version: KdfVersion::Best, in new() 435 pub fn kdf(mut self, kdf_version: KdfVersion) -> Self { in kdf() 436 self.kdf_version = kdf_version; in kdf() 554 serializer.serialize_as_bytes(&self.msg.kdf_version)?; in serialize() 577 kdf_version: u32, field 602 kdf_version: msg.arg1, in deserialize() [all …]
|
D | test.rs | 52 let DeriveResult { kdf_version, os_rollback_version } = hwkey_session in test_hwkey_derive_repeatable_versioned() 60 assert_ne!(kdf_version, KdfVersion::Best); in test_hwkey_derive_repeatable_versioned() 67 .kdf(kdf_version) in test_hwkey_derive_repeatable_versioned() 82 .kdf(kdf_version) in test_hwkey_derive_repeatable_versioned() 98 .kdf(kdf_version) in test_hwkey_derive_repeatable_versioned() 126 let DeriveResult { kdf_version, .. } = hwkey_session in test_hwkey_derive_different_default() 131 assert_ne!(kdf_version, KdfVersion::Best); in test_hwkey_derive_different_default() 152 let DeriveResult { kdf_version, os_rollback_version } = hwkey_session in test_hwkey_derive_different_specified() 161 assert_ne!(kdf_version, KdfVersion::Best); in test_hwkey_derive_different_specified() 169 .kdf(kdf_version) in test_hwkey_derive_different_specified() [all …]
|
/trusty/user/app/sample/hwcrypto-unittest/ |
D | main.c | 117 uint32_t kdf_version = HWKEY_KDF_VERSION_BEST; in TEST_F() local 120 long rc = hwkey_derive(invalid, &kdf_version, src_data, dest, size); in TEST_F() 128 uint32_t kdf_version = HWKEY_KDF_VERSION_BEST; in TEST_F() local 137 rc = hwkey_derive(session, &kdf_version, src_data, dest, size); in TEST_F() 146 uint32_t kdf_version = HWKEY_KDF_VERSION_BEST; in TEST_F() local 148 .kdf_version = HWKEY_KDF_VERSION_BEST, in TEST_F() 159 long rc = hwkey_derive(_state->hwkey_session, &kdf_version, src_data, dest, in TEST_F() 162 EXPECT_NE(HWKEY_KDF_VERSION_BEST, kdf_version, in TEST_F() 166 rc = hwkey_derive(_state->hwkey_session, &kdf_version, src_data, dest2, in TEST_F() 225 .kdf_version = HWKEY_KDF_VERSION_BEST, in TEST_F() [all …]
|
/trusty/user/app/keymint/ |
D | keys.rs | 81 kdf_version: KdfVersion, field 118 kdf_version: Option<KdfVersion>, in new() 122 if kdf_version.is_none() { in new() 132 let kdf_version = kdf_version.unwrap(); in new() localVariable 135 kdf_version, in new() 139 if kdf_version.is_some() { in new() 176 let kdf_version = deserialize_u32( in from_raw() localVariable 180 let kdf_version = KdfVersion::from(kdf_version); in from_raw() localVariable 187 kdf_version, in from_raw() 204 let (os_version, kdf_version, non_legacy_key) = match self { in to_raw() [all …]
|
/trusty/user/base/lib/hwkey/include/lib/hwkey/ |
D | hwkey.h | 81 uint32_t* kdf_version, 141 uint32_t kdf_version; member
|
/trusty/user/base/lib/hwkey/ |
D | hwkey.c | 190 uint32_t* kdf_version, in hwkey_derive() argument 194 if (src == NULL || buf_size == 0 || dest == NULL || kdf_version == NULL) { in hwkey_derive() 201 .arg1 = *kdf_version, in hwkey_derive() 212 *kdf_version = msg.arg1; in hwkey_derive() 258 .kdf_version = args->kdf_version, in hwkey_derive_versioned() 305 args->kdf_version = resp_msg.kdf_version; in hwkey_derive_versioned()
|
/trusty/user/app/sample/hwcrypto/ |
D | hwkey_srv.c | 337 static uint32_t hwkey_handle_derive_key_impl(uint32_t* kdf_version, in hwkey_handle_derive_key_impl() argument 344 if (*kdf_version == HWKEY_KDF_VERSION_BEST) { in hwkey_handle_derive_key_impl() 345 *kdf_version = HWKEY_KDF_VERSION_1; in hwkey_handle_derive_key_impl() 352 switch (*kdf_version) { in hwkey_handle_derive_key_impl() 357 TLOGE("%u is unsupported KDF function\n", *kdf_version); in hwkey_handle_derive_key_impl() 460 status = hwkey_handle_derive_key_impl(&msg->kdf_version, &ctx->uuid, in hwkey_handle_derive_versioned_key_cmd() 475 if (msg->kdf_version == HWKEY_KDF_VERSION_BEST) { in hwkey_handle_derive_versioned_key_cmd() 476 msg->kdf_version = HWKEY_KDF_VERSION_1; in hwkey_handle_derive_versioned_key_cmd() 479 switch (msg->kdf_version) { in hwkey_handle_derive_versioned_key_cmd() 488 TLOGE("%u is unsupported KDF function\n", msg->kdf_version); in hwkey_handle_derive_versioned_key_cmd()
|
/trusty/user/app/storage/test/storage_host_test/ |
D | library_shims.c | 40 uint32_t* kdf_version, in hwkey_derive() argument
|
/trusty/user/app/storage/ |
D | proxy.c | 61 uint32_t kdf_version = HWKEY_KDF_VERSION_1; in get_storage_encryption_key() local 62 int rc = hwkey_derive(session, &kdf_version, in get_storage_encryption_key()
|
D | block_device_tipc.c | 316 uint32_t kdf_version = HWKEY_KDF_VERSION_1; in hwkey_derive_rpmb_key() local 322 int ret = hwkey_derive(session, &kdf_version, in_buf, out_buf, key_size); in hwkey_derive_rpmb_key()
|
/trusty/user/base/interface/hwkey/include/interface/hwkey/ |
D | hwkey.h | 288 uint32_t kdf_version; member
|
/trusty/user/app/keymaster/ |
D | trusty_keymaster_context.cpp | 382 .kdf_version = HWKEY_KDF_VERSION_BEST, in GetKdfState() 400 info->kdf_version = opt.kdf_version; in GetKdfState() 445 encrypted_key->kdf_version = info.kdf_version; in CreateAuthEncryptedKeyBlob() 820 uint32_t kdf_version = HWKEY_KDF_VERSION_1; in DeriveMasterKey() local 821 rc = hwkey_derive(session, &kdf_version, kMasterKeyDerivationData, in DeriveMasterKey() 830 .kdf_version = enc_key.kdf_version, in DeriveMasterKey()
|
D | trusty_remote_provisioning_context.cpp | 64 uint32_t kdf_version = HWKEY_KDF_VERSION_1; in DeriveBytesFromHbk() local 65 rc = hwkey_derive(session, &kdf_version, kMasterKeyDerivationData, in DeriveBytesFromHbk()
|
/trusty/user/app/gatekeeper/ |
D | trusty_gatekeeper.cpp | 105 uint32_t kdf_version = HWKEY_KDF_VERSION_1; in DerivePasswordKey() local 106 rc = hwkey_derive(session, &kdf_version, DERIVATION_DATA, in DerivePasswordKey()
|
/trusty/user/base/lib/hwbcc/common/ |
D | swbcc.c | 128 uint32_t kdf_version = HWKEY_KDF_VERSION_1; in derive_seed() local 129 rc = hwkey_derive(session, &kdf_version, ctx, seed, in derive_seed()
|
/trusty/user/app/keymint/keys/ |
D | legacy.rs | 161 encrypted_keyblob.kdf_version.map(hwkey::KdfVersion::from), in convert_key()
|