Adds AES256 to the Crypto trait (#611)

This commit is contained in:
kaczmarczyck
2023-04-06 10:27:33 +02:00
committed by GitHub
parent d0cdbec5ce
commit 4cc1b4fddf
9 changed files with 294 additions and 228 deletions

View File

@@ -29,6 +29,7 @@ use rng256::Rng256;
#[cfg(feature = "std")]
pub mod test;
pub type AesKey<E> = <<E as Env>::Crypto as Crypto>::Aes256;
pub type EcdhSk<E> = <<<E as Env>::Crypto as Crypto>::Ecdh as Ecdh>::SecretKey;
pub type EcdhPk<E> = <<<E as Env>::Crypto as Crypto>::Ecdh as Ecdh>::PublicKey;
pub type EcdsaSk<E> = <<<E as Env>::Crypto as Crypto>::Ecdsa as Ecdsa>::SecretKey;