summaryrefslogtreecommitdiff
path: root/sha512-224-meta.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-04-09 14:53:20 +0200
committerNiels Möller <nisse@lysator.liu.se>2014-04-09 14:53:20 +0200
commit7aef18d3e4cbdbef1c24309475ae10f66e4456ff (patch)
tree21a0718b5a154b812099d578667f1f6599c7959e /sha512-224-meta.c
parent6846fe5654648390c05f57f8eb7d2579fe324f12 (diff)
downloadnettle-7aef18d3e4cbdbef1c24309475ae10f66e4456ff.tar.gz
nettle_hash instances for sha512_224 and sha512_256.
Diffstat (limited to 'sha512-224-meta.c')
-rw-r--r--sha512-224-meta.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/sha512-224-meta.c b/sha512-224-meta.c
new file mode 100644
index 00000000..eee1bd56
--- /dev/null
+++ b/sha512-224-meta.c
@@ -0,0 +1,40 @@
+/* sha512-224-meta.c */
+
+/* nettle, low-level cryptographics library
+ *
+ * Copyright (C) 2014 Niels Möller
+ *
+ * The nettle library is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at your
+ * option) any later version.
+ *
+ * The nettle library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with the nettle library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02111-1301, USA.
+ */
+
+#if HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include "nettle-meta.h"
+
+#include "sha2.h"
+
+const struct nettle_hash nettle_sha512_224 =
+ {
+ "sha512-224", sizeof(struct sha512_ctx),
+ SHA512_224_DIGEST_SIZE,
+ SHA512_224_DATA_SIZE,
+ (nettle_hash_init_func *) sha512_224_init,
+ (nettle_hash_update_func *) sha512_224_update,
+ (nettle_hash_digest_func *) sha512_224_digest
+ };
+