Home
last modified time | relevance | path

Searched defs:SecretKey (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/base/security/asset/services/crypto_manager/src/
H A Dsecret_key.rs27 pub struct SecretKey { struct
28 auth_type: AuthType,
29 access_type: Accessibility,
30 require_password_set: bool,
31 alias: Vec<u8>,
32 user_id: i32,
187 impl SecretKey { impl
H A Dcrypto.rs56 pub fn build(key: SecretKey, calling_info: CallingInfo, valid_time: u32) -> Result<Self> { in build()
117 pub fn encrypt(key: &SecretKey, msg: &Vec<u8>, aad: &Vec<u8>) -> Result<Vec<u8>> { in encrypt()
140 pub fn decrypt(key: &SecretKey, cipher: &Vec<u8>, aad: &Vec<u8>) -> Result<Vec<u8>> { in decrypt()
166 pub(crate) fn key(&self) -> &SecretKey { in key()
/ohos5.0/base/security/asset/services/core_service/src/operations/
H A Dcommon.rs136 pub(crate) fn build_secret_key(calling: &CallingInfo, attrs: &DbMap) -> Result<SecretKey> { in build_secret_key()
/ohos5.0/base/security/asset/services/db_key_operator/src/
H A Dlib.rs29 fn build_db_key_secret_key(user_id: i32) -> Result<SecretKey> { in build_db_key_secret_key()