Add blueprint for aes encryption

This commit is contained in:
samkim-crypto
2021-10-07 18:21:31 -04:00
committed by Michael Vines
parent abe6b27b34
commit 72ade5473a

View File

@ -0,0 +1,30 @@
pub struct AES;
impl AES {
pub fn new() -> AESKey {
AESKey
}
pub fn encrypt(sk: &AESKey, amount: u64) -> AESCiphertext {
AESCiphertext
}
pub fn decrypt(sk: &AESKey, ct: &AESCiphertext) -> u64 {
0_u64
}
}
pub struct AESKey;
impl AESKey {
pub fn encrypt(&self, amount: u64) -> AESCiphertext {
AES::encrypt(self, amount)
}
}
pub struct AESCiphertext;
impl AESCiphertext {
pub fn decrypt(&self, sk: &AESKey) -> u64 {
AES::decrypt(sk, self)
}
}