blake2b.h (769B)
1 /* 2 * blake2b.h - header file for blake2b hash function 3 * 4 * This Source Code Form is subject to the terms of the Mozilla Public 5 * License, v. 2.0. If a copy of the MPL was not distributed with this 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 7 8 #ifndef BLAKE_H 9 #define BLAKE_H 10 11 #include <stddef.h> 12 #include <stdint.h> 13 14 struct Blake2bContextStr { 15 uint64_t h[8]; /* chained state */ 16 uint64_t t[2]; /* total number of bytes */ 17 uint64_t f; /* last block flag */ 18 uint8_t buf[BLAKE2B_BLOCK_LENGTH]; /* input buffer */ 19 size_t buflen; /* size of remaining bytes in buf */ 20 size_t outlen; /* digest size */ 21 }; 22 23 #endif /* BLAKE_H */