summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2021-09-19 01:42:57 +0200
committerBruno Haible <bruno@clisp.org>2021-09-19 01:42:57 +0200
commit81ca30b0dedb08c6ef54c308cd264bc234a060c4 (patch)
tree584f90140c3fce49afbe4ef38e4da91fc2aabc6e /modules
parent9dbf2816fd77fbd502b58d03f9f67e4894f8d78f (diff)
downloadgnulib-81ca30b0dedb08c6ef54c308cd264bc234a060c4.tar.gz
sm3-buffer: New module.
* lib/sm3-stream.c: New file, extracted from lib/sm3.c. * lib/sm3.c: Don't include stdlib.h, unlocked-io.h. (BLOCKSIZE, sm3_stream): Moved to sm3-stream.c. * lib/sm3.h: Tweak. * modules/crypto/sm3-buffer: New file, based on modules/crypto/sm3. * modules/crypto/sm3: Rewritten.
Diffstat (limited to 'modules')
-rw-r--r--modules/crypto/sm313
-rw-r--r--modules/crypto/sm3-buffer32
2 files changed, 35 insertions, 10 deletions
diff --git a/modules/crypto/sm3 b/modules/crypto/sm3
index 3df7d88259..773f0fa91b 100644
--- a/modules/crypto/sm3
+++ b/modules/crypto/sm3
@@ -2,22 +2,15 @@ Description:
Compute SM3 checksums.
Files:
-lib/sm3.h
-lib/sm3.c
-m4/sm3.m4
+lib/sm3-stream.c
Depends-on:
-byteswap
-c99
-extern-inline
-stdalign
-stdint
+crypto/sm3-buffer
configure.ac:
-gl_SM3
Makefile.am:
-lib_SOURCES += sm3.c
+lib_SOURCES += sm3-stream.c
Include:
"sm3.h"
diff --git a/modules/crypto/sm3-buffer b/modules/crypto/sm3-buffer
new file mode 100644
index 0000000000..3df7d88259
--- /dev/null
+++ b/modules/crypto/sm3-buffer
@@ -0,0 +1,32 @@
+Description:
+Compute SM3 checksums.
+
+Files:
+lib/sm3.h
+lib/sm3.c
+m4/sm3.m4
+
+Depends-on:
+byteswap
+c99
+extern-inline
+stdalign
+stdint
+
+configure.ac:
+gl_SM3
+
+Makefile.am:
+lib_SOURCES += sm3.c
+
+Include:
+"sm3.h"
+
+Link:
+$(LIB_CRYPTO)
+
+License:
+LGPLv2+
+
+Maintainer:
+Jia Zhang