implemented Login and Register requests
This commit is contained in:
@@ -103,9 +103,10 @@ Result(u32) AESBlockDecryptor_decrypt(AESBlockDecryptor* ptr,
|
||||
Array(u8) src, Array(u8) dst)
|
||||
{
|
||||
Deferral(4);
|
||||
try_assert(src.size >= AESBlockEncryptor_calcDstSize(0));
|
||||
u32 overhead_size = AESBlockEncryptor_calcDstSize(0);
|
||||
try_assert(src.size >= overhead_size);
|
||||
try_assert(src.size % 16 == 0 && "src must be array of 16-byte blocks");
|
||||
try_assert(dst.size >= src.size);
|
||||
try_assert(dst.size >= src.size - overhead_size);
|
||||
|
||||
// read IV from the beginning of src
|
||||
__Array_readNext(ptr->iv, &src, __AES_BLOCK_IV_SIZE);
|
||||
|
||||
Reference in New Issue
Block a user