aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2023-09-05 02:03:12 -0400
committerPaul Duncan <pabs@pablotron.org>2023-09-05 02:03:12 -0400
commit8aeacc0ac2c5e336ea169f227b4ce37a05402b53 (patch)
treec16bcd3bd7ab95c4410df6cd04515913f487762f
parent509693e6fb0e83b82ff209f21d5275985b51eb1b (diff)
downloadsha3-8aeacc0ac2c5e336ea169f227b4ce37a05402b53.tar.bz2
sha3-8aeacc0ac2c5e336ea169f227b4ce37a05402b53.zip
sha3.[hc]: add header w/ spdx license identifier and library description
-rw-r--r--sha3.c32
-rw-r--r--sha3.h30
2 files changed, 57 insertions, 5 deletions
diff --git a/sha3.c b/sha3.c
index b03e0f3..8439b5b 100644
--- a/sha3.c
+++ b/sha3.c
@@ -1,6 +1,32 @@
-//
-// FIPS202 (SHA-3) implementation.
-//
+/**
+ * sha3
+ * https://pablotron.org/sha3
+ *
+ * Copyright (c) 2023 Paul Duncan
+ * SPDX-License-Identifier: MIT-0
+ *
+ * C11 implementations of the following SHA-3 algorithms:
+ *
+ * - SHA3-224
+ * - SHA3-256
+ * - SHA3-384
+ * - SHA3-512
+ * - HMAC-SHA3-224
+ * - HMAC-SHA3-256
+ * - HMAC-SHA3-384
+ * - HMAC-SHA3-512
+ * - SHAKE128 and SHAKE128-XOF
+ * - SHAKE256 and SHAKE256-XOF
+ * - cSHAKE128 and cSHAKE128-XOF
+ * - cSHAKE256 and cSHAKE256-XOF
+ * - KMAC128 and KMAC128-XOF
+ * - KMAC256 and KMAC256-XOF
+ * - TupleHash128 and TupleHash128-XOF
+ * - TupleHash256 and TupleHash256-XOF
+ * - ParallelHash128 and ParallelHash128-XOF
+ * - ParallelHash256 and ParallelHash256-XOF
+ * - TurboHash128 and TurboHash256 (incomplete)
+ */
#include <stdbool.h> // true, false
#include <stdint.h> // uint64_t
diff --git a/sha3.h b/sha3.h
index eb6ffd8..aa21303 100644
--- a/sha3.h
+++ b/sha3.h
@@ -1,7 +1,33 @@
/**
- * C11 implementations of SHA-3 algorithms from FIPS 202 and NIST SP
- * 800-185.
+ * sha3
+ * https://pablotron.org/sha3
+ *
+ * Copyright (c) 2023 Paul Duncan
+ * SPDX-License-Identifier: MIT-0
+ *
+ * C11 implementations of the following SHA-3 algorithms:
+ *
+ * - SHA3-224
+ * - SHA3-256
+ * - SHA3-384
+ * - SHA3-512
+ * - HMAC-SHA3-224
+ * - HMAC-SHA3-256
+ * - HMAC-SHA3-384
+ * - HMAC-SHA3-512
+ * - SHAKE128 and SHAKE128-XOF
+ * - SHAKE256 and SHAKE256-XOF
+ * - cSHAKE128 and cSHAKE128-XOF
+ * - cSHAKE256 and cSHAKE256-XOF
+ * - KMAC128 and KMAC128-XOF
+ * - KMAC256 and KMAC256-XOF
+ * - TupleHash128 and TupleHash128-XOF
+ * - TupleHash256 and TupleHash256-XOF
+ * - ParallelHash128 and ParallelHash128-XOF
+ * - ParallelHash256 and ParallelHash256-XOF
+ * - TurboHash128 and TurboHash256 (incomplete)
*/
+
#ifndef SHA3_H
#define SHA3_H