Test our implementation against Cryptography module's

This commit is contained in:
LeoVasanko committed 2023-10-29 10:59:32 +00:00
1 parent 8e38985bf8
commit baf3ef31a5
4 files changed
+22 -4

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ static inline uint64_t _cha_block(cha_ctx* ctx, uint8_t* begin, uint8_t* end) {
c = end;
// Leftover bytes are stored in ctx for next call
ctx->uncount = 64 - bytes;
memcpy(ctx->unconsumed, x + bytes, ctx->uncount);
memcpy(ctx->unconsumed, (uint8_t*)x + bytes, ctx->uncount);
break;
}
memcpy(c, x, 64);