Test our implementation against Cryptography module's

This commit is contained in:
2023-10-29 10:59:32 +00:00
parent 8e38985bf8
commit baf3ef31a5
4 changed files with 22 additions and 4 deletions
+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);