Home
last modified time | relevance | path

Searched refs:Crypto (Results 1 - 8 of 8) sorted by relevance

/base/security/asset/services/crypto_manager/src/
H A Dcrypto_manager.rs26 use crate::crypto::Crypto;
32 cryptos: Vec<Crypto>,
47 pub fn add(&mut self, crypto: Crypto) -> Result<()> { in add()
58 pub fn find(&mut self, calling_info: &CallingInfo, challenge: &Vec<u8>) -> Result<&Crypto> { in find()
H A Dcrypto.rs44 /// Crypto for storing key attributes that require user authentication.
45 pub struct Crypto { structure names
54 impl Crypto { impls
187 impl Drop for Crypto {
/base/security/asset/test/unittest/module_test/src/crypto_manager/
H A Dlib.rs88 let cipher = Crypto::encrypt(&secret_key, &msg, &aad).unwrap(); in encrypt_and_decrypt()
92 let plaintext = Crypto::decrypt(&secret_key, &cipher, &aad).unwrap(); in encrypt_and_decrypt()
107 let mut crypto = Crypto::build(secret_key.clone(), calling_info, 600).unwrap(); in crypto_init()
122 let cipher = Crypto::encrypt(&secret_key, &msg, &aad).unwrap(); in crypto_exec()
123 let mut crypto = Crypto::build(secret_key.clone(), calling_info, 600).unwrap(); in crypto_exec()
138 let mut crypto1 = Crypto::build(secret_key1.clone(), calling_info.clone(), 600).unwrap(); in crypto_manager()
144 let mut crypto2 = Crypto::build(secret_key2.clone(), calling_info.clone(), 600).unwrap(); in crypto_manager()
/base/security/asset/services/db_key_operator/src/
H A Dlib.rs19 use asset_crypto_manager::{crypto::Crypto, secret_key::SecretKey};
71 let db_key = Crypto::decrypt(&secret_key, db_key_cipher, &aad)?; in decrypt_db_key_cipher()
89 let db_key_cipher = Crypto::encrypt(&secret_key, &self.db_key, &aad)?; in encrypt_db_key()
/base/security/asset/services/core_service/src/operations/
H A Doperation_pre_query.rs19 use asset_crypto_manager::{crypto::Crypto, crypto_manager::CryptoManager, secret_key::SecretKey};
80 let mut crypto = Crypto::build(secret_key, calling_info.clone(), valid_time)?;
H A Doperation_update.rs19 use asset_crypto_manager::crypto::Crypto;
32 let cipher = Crypto::encrypt(&secret_key, secret, &common::build_aad(db_data)?)?; in encrypt()
H A Doperation_query.rs21 use asset_crypto_manager::{crypto::Crypto, crypto_manager::CryptoManager};
46 let cipher = Crypto::encrypt(&secret_key, secret, &common::build_aad(db_data)?)?; in upgrade_version()
65 let secret = Crypto::decrypt(&secret_key, secret, &common::build_aad(db_data)?)?; in decrypt_secret()
H A Doperation_add.rs21 use asset_crypto_manager::crypto::Crypto;
40 let cipher = Crypto::encrypt(&secret_key, secret, &common::build_aad(db_data)?)?; in encrypt_secret()

Completed in 3 milliseconds