Searched refs:KeyId (Results 1 - 6 of 6) sorted by relevance
/base/security/asset/services/crypto_manager/src/ |
H A D | huks_wrapper.h | 39 struct KeyId { struct 45 int32_t GenerateKey(const struct KeyId *keyId, bool needAuth, bool requirePasswordSet); 46 int32_t DeleteKey(const struct KeyId *keyId); 47 int32_t IsKeyExist(const struct KeyId *keyId); 48 int32_t EncryptData(const struct KeyId *keyId, const struct HksBlob *aad, const struct HksBlob *inData, 50 int32_t DecryptData(const struct KeyId *keyId, const struct HksBlob *aad, const struct HksBlob *inData, 52 int32_t InitKey(const struct KeyId *keyId, uint32_t validTime, struct HksBlob *challenge, struct HksBlob *handle); 56 int32_t RenameKeyAlias(const struct KeyId *keyId, const struct HksBlob *newKeyAlias);
|
H A D | secret_key.rs | 23 use crate::{HksBlob, KeyId}; 43 fn GenerateKey(keyId: *const KeyId, need_auth: bool, require_password_set: bool) -> i32; in GenerateKey() 44 fn DeleteKey(keyId: *const KeyId) -> i32; in DeleteKey() 45 fn IsKeyExist(keyId: *const KeyId) -> i32; in IsKeyExist() 46 fn RenameKeyAlias(keyId: *const KeyId, newKeyAlias: *const HksBlob) -> i32; in RenameKeyAlias() 142 let key_id = KeyId::new(calling_info.user_id(), alias_blob, access_type); in huks_rename_key_alias() 151 unsafe { RenameKeyAlias(&key_id as *const KeyId, &prefixed_new_alias_blob as *const HksBlob) } in huks_rename_key_alias() 221 let key_id = KeyId::new(self.user_id, key_alias, self.access_type); in exists() 222 let ret = unsafe { IsKeyExist(&key_id as *const KeyId) }; in exists() 233 let key_id = KeyId in generate() [all...] |
H A D | lib.rs | 37 struct KeyId { structure names 43 impl KeyId { impls
|
H A D | crypto.rs | 23 use crate::{secret_key::SecretKey, HksBlob, KeyId, OutBlob}; 26 fn EncryptData(keyId: *const KeyId, aad: *const HksBlob, in_data: *const HksBlob, out_data: *mut OutBlob) -> i32; in EncryptData() 27 fn DecryptData(keyId: *const KeyId, aad: *const HksBlob, in_data: *const HksBlob, out_data: *mut OutBlob) -> i32; in DecryptData() 28 fn InitKey(keyId: *const KeyId, valid_time: u32, challenge: *mut OutBlob, handle: *mut OutBlob) -> i32; in InitKey() 72 let key_id = KeyId::new(self.key.user_id(), key_alias, self.key.access_type()); in init_key() 76 &key_id as *const KeyId, in init_key() 123 let key_id = KeyId::new(key.user_id(), key_alias, key.access_type()); in encrypt() 127 &key_id as *const KeyId, in encrypt() 150 let key_id = KeyId::new(key.user_id(), key_alias, key.access_type()); in decrypt() 154 &key_id as *const KeyId, in decrypt() [all...] |
H A D | huks_wrapper.c | 100 static int32_t AddCommonGenParams(struct HksParamSet *paramSet, const struct KeyId *keyId) in AddCommonGenParams() 127 int32_t GenerateKey(const struct KeyId *keyId, bool needAuth, bool requirePasswordSet) in GenerateKey() 185 int32_t DeleteKey(const struct KeyId *keyId) in DeleteKey() 201 int32_t IsKeyExist(const struct KeyId *keyId) in IsKeyExist() 217 int32_t EncryptData(const struct KeyId *keyId, const struct HksBlob *aad, const struct HksBlob *inData, in EncryptData() 252 int32_t DecryptData(const struct KeyId *keyId, const struct HksBlob *aad, const struct HksBlob *inData, in DecryptData() 294 int32_t InitKey(const struct KeyId *keyId, uint32_t validTime, struct HksBlob *challenge, struct HksBlob *handle) in InitKey() 370 int32_t RenameKeyAlias(const struct KeyId *keyId, const struct HksBlob *newKeyAlias) in RenameKeyAlias()
|
/base/security/asset/test/unittest/module_test/src/ |
H A D | huks_wrapper_test.cpp | 86 struct KeyId keyId = { 0, keyAlias, DEVICE_POWERED_ON }; in HWTEST_F() 102 struct KeyId keyId = { 0, keyAlias, DEVICE_POWERED_ON }; in HWTEST_F() 127 struct KeyId keyId = { 0, keyAlias, DEVICE_POWERED_ON }; in HWTEST_F() 162 struct KeyId keyId = { 100, keyAlias, DEVICE_FIRST_UNLOCKED }; in HWTEST_F()
|
Completed in 3 milliseconds