Searched refs:Crypto (Results 1 - 8 of 8) sorted by relevance
/base/security/asset/services/crypto_manager/src/ |
H A D | crypto_manager.rs | 26 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 D | crypto.rs | 44 /// 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 D | lib.rs | 88 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 D | lib.rs | 19 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 D | operation_pre_query.rs | 19 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 D | operation_update.rs | 19 use asset_crypto_manager::crypto::Crypto; 32 let cipher = Crypto::encrypt(&secret_key, secret, &common::build_aad(db_data)?)?; in encrypt()
|
H A D | operation_query.rs | 21 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 D | operation_add.rs | 21 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