mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:07:35 +00:00
LibCrypto: Yet more ByteBuffer::wrap() removal. Not much left now!
This commit is contained in:
parent
497f1fd472
commit
a8dbfc3398
4 changed files with 14 additions and 14 deletions
|
@ -700,7 +700,7 @@ static void aes_cbc_test_encrypt()
|
|||
0xd6, 0xa0, 0x46
|
||||
};
|
||||
u8 key[] { 0x0a, 0x8c, 0x5b, 0x0d, 0x8a, 0x68, 0x43, 0xf7, 0xaf, 0xc0, 0xe3, 0x4e, 0x4b, 0x43, 0xaa, 0x28, 0x69, 0x9b, 0x6f, 0xe7, 0x24, 0x82, 0x1c, 0x71, 0x86, 0xf6, 0x2b, 0x87, 0xd6, 0x8b, 0x8f, 0xf1 };
|
||||
Crypto::Cipher::AESCipher::CBCMode cipher(ByteBuffer::wrap(key, 32), 256, Crypto::Cipher::Intent::Encryption);
|
||||
Crypto::Cipher::AESCipher::CBCMode cipher(ReadonlyBytes { key, sizeof(key) }, 256, Crypto::Cipher::Intent::Encryption);
|
||||
test_it(cipher, result);
|
||||
}
|
||||
// TODO: Test non-CMS padding options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue