feat: clean code

This commit is contained in:
2023-10-15 17:24:00 +08:00
parent bec7306918
commit 6f70e7c83e

View File

@@ -30,6 +30,7 @@ fn build_salted_nonce(nonce: &[u8], salt: &[u8]) -> Vec<u8> {
#[test]
fn test_aes_gcm_01() {
use aes_gcm_stream::Aes256GcmStreamEncryptor;
let data_key = hex::decode("0001020304050607080910111213141516171819202122232425262728293031").unwrap();
let nonce = hex::decode("000102030405060708091011").unwrap();
@@ -60,6 +61,7 @@ fn test_aes_gcm_01() {
#[test]
fn test_aes_gcm_02() {
use aes_gcm_stream::Aes256GcmStreamDecryptor;
let data_key = hex::decode("aa01020304050607080910111213141516171819202122232425262728293031").unwrap();
let nonce = hex::decode("aa0102030405060708091011").unwrap();