projects
/
mobile-com.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bring in keccak symbols
[mobile-com.git]
/
DH-Keccak
/
assets
/
KremKeccak
/
krem_keccak.c
diff --git
a/DH-Keccak/assets/KremKeccak/krem_keccak.c
b/DH-Keccak/assets/KremKeccak/krem_keccak.c
index 565ff26abbdc3a015de3a926a76c6a18b26e58e5..7a64c052ee15dc6fe874556bf07884fef19972e4 100644
(file)
--- a/
DH-Keccak/assets/KremKeccak/krem_keccak.c
+++ b/
DH-Keccak/assets/KremKeccak/krem_keccak.c
@@
-37,7
+37,7
@@
int main(int argc, char *argv[]) {
r = 576;
c = 1024;
r = 576;
c = 1024;
- state =
(spongeState*)
calloc(1, sizeof(spongeState));
+ state = calloc(1, sizeof(spongeState));
if(stat(argv[1], &input_stat) || input_stat.st_size <= 0) {
if(stat(argv[1], &input_stat) || input_stat.st_size <= 0) {
@@
-55,8
+55,8
@@
int main(int argc, char *argv[]) {
exit(1);
}
exit(1);
}
- input_buf =
(unsigned char *)
calloc(1, (size_t) input_stat.st_size);
- output_buf =
(unsigned char *)
calloc(1, (size_t) 64);
+ input_buf = calloc(1, (size_t) input_stat.st_size);
+ output_buf = calloc(1, (size_t) 64);
if( ! (input_bytes_read = fread(input_buf, 1, (size_t)input_stat.st_size, input))) {
if( ! (input_bytes_read = fread(input_buf, 1, (size_t)input_stat.st_size, input))) {