summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2021-08-18 16:04:33 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2021-08-18 16:04:33 +0000
commitcdfdaead097054da7a8aec382a7c747859120bca (patch)
tree1b99a10c050fa69a55fe6688a1d82b346137f0ec /lib
parent2359c451b80aaf9097845cdff8ef260cb62801af (diff)
Import initial code for the SM2 cipher
This adds the SM2 algorithm defined in the Chinese standards GB/T 32918.1-2016, GB/T 32918.2-2016, GB/T 32918.3-2016, GB/T 32918.4-2016 and GB/T 32918.5-2017. This is an ISC licensed implementation contributed by Ribose.inc, based on the same code that was contributed to OpenSSL by Jack Lloyd. The port to LibreSSL was done by Ronald Tse and Nickolay Olshevsky. Github PR #105 I made quite a few cleanup passes on this, but more is needed, some of which will happen in-tree before this is linked to the build. ok deraadt inoguchi (a long time ago), jsing
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/sm2/sm2.h2
-rw-r--r--lib/libcrypto/sm2/sm2_err.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/sm2/sm2.h b/lib/libcrypto/sm2/sm2.h
index 92eef8a6dea..74d1464452c 100644
--- a/lib/libcrypto/sm2/sm2.h
+++ b/lib/libcrypto/sm2/sm2.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sm2.h,v 1.1.1.1 2021/08/18 16:04:32 tb Exp $ */
+/* $OpenBSD: sm2.h,v 1.1 2021/08/18 16:04:32 tb Exp $ */
/*
* Copyright (c) 2017, 2019 Ribose Inc
*
diff --git a/lib/libcrypto/sm2/sm2_err.c b/lib/libcrypto/sm2/sm2_err.c
index d34123cbf9a..d780ef8e322 100644
--- a/lib/libcrypto/sm2/sm2_err.c
+++ b/lib/libcrypto/sm2/sm2_err.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sm2_err.c,v 1.1.1.1 2021/08/18 16:04:32 tb Exp $ */
+/* $OpenBSD: sm2_err.c,v 1.1 2021/08/18 16:04:32 tb Exp $ */
/*
* Generated by util/mkerr.pl DO NOT EDIT
* Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.