diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/skalibs/blake2s.h | 6 | ||||
-rw-r--r-- | src/include/skalibs/random.h | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/include/skalibs/blake2s.h b/src/include/skalibs/blake2s.h index 1da386d..df41d24 100644 --- a/src/include/skalibs/blake2s.h +++ b/src/include/skalibs/blake2s.h @@ -17,10 +17,10 @@ struct blake2s_ctx_s char buf[64] ; } ; -#define BLAKE2S_INIT(outlen) { \ +#define BLAKE2S_INIT(len) { \ .buflen = 0, \ - .outlen = outlen, \ - .h = { 0x6A09E667UL ^ (0x01010000 | outlen), 0xBB67AE85UL, 0x3C6EF372UL, 0xA54FF53AUL, 0x510E527FUL, 0x9B05688CUL, 0x1F83D9ABUL, 0x5BE0CD19UL }, \ + .outlen = len, \ + .h = { 0x6A09E667UL ^ (0x01010000 | len), 0xBB67AE85UL, 0x3C6EF372UL, 0xA54FF53AUL, 0x510E527FUL, 0x9B05688CUL, 0x1F83D9ABUL, 0x5BE0CD19UL }, \ .t = { 0, 0 }, \ .f = { 0, 0 }, \ .buf = { 0 } } diff --git a/src/include/skalibs/random.h b/src/include/skalibs/random.h index 0391d21..2d3829d 100644 --- a/src/include/skalibs/random.h +++ b/src/include/skalibs/random.h @@ -9,6 +9,8 @@ #include <skalibs/functypes.h> #include <skalibs/stralloc.h> +extern void random_devurandom (char *, size_t) ; + extern void random_buf (char *, size_t) ; extern void random_buf_early (char *, size_t) ; |