projects
/
openpower-isa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e2163d
)
fix huge bug with C poly1305 function call
author
Sadoon Albader
<sadoon@soulserv.xyz>
Tue, 3 Oct 2023 18:18:42 +0000
(21:18 +0300)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Wed, 4 Oct 2023 09:08:14 +0000
(10:08 +0100)
crypto/poly1305/poly1305-rand-test.c
patch
|
blob
|
history
diff --git
a/crypto/poly1305/poly1305-rand-test.c
b/crypto/poly1305/poly1305-rand-test.c
index ad52706218684f65433e6611d7c0b4ef1f9f2770..7a056c3088b3af9008672150dae9f50117d360e7 100644
(file)
--- a/
crypto/poly1305/poly1305-rand-test.c
+++ b/
crypto/poly1305/poly1305-rand-test.c
@@
-24,7
+24,7
@@
int main(int argc, char **argv){
for (int i = 0; i < msg_size; i++) msg[i] = random() & 0x000000FF;
- poly1305_auth(mac, msg,
sizeof(msg)
, key);
+ poly1305_auth(mac, msg,
msg_size
, key);
for (int i = 0; i < msg_size; i++)
printf("%u%s", msg[i], (i == msg_size-1) ? "\n" : "," );