Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/openssl/lib/libcrypto provide CRYPTO_mem...
details: https://anonhg.NetBSD.org/src/rev/81da7cd87b1a
branches: trunk
changeset: 320850:81da7cd87b1a
user: christos <christos%NetBSD.org@localhost>
date: Sat Mar 03 04:32:46 2018 +0000
description:
provide CRYPTO_memcmp for the have-nots.
diffstat:
crypto/external/bsd/openssl/lib/libcrypto/arch/sh3/crypto.inc | 3 ++
crypto/external/bsd/openssl/lib/libcrypto/crypto.inc | 4 +-
crypto/external/bsd/openssl/lib/libcrypto/libc-memequal.c | 16 +++++++++++
3 files changed, 21 insertions(+), 2 deletions(-)
diffs (45 lines):
diff -r 05912bf2e295 -r 81da7cd87b1a crypto/external/bsd/openssl/lib/libcrypto/arch/sh3/crypto.inc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/openssl/lib/libcrypto/arch/sh3/crypto.inc Sat Mar 03 04:32:46 2018 +0000
@@ -0,0 +1,3 @@
+
+CRYPTO_SRCS += libc-memequal.c
+.include "../../crypto.inc"
diff -r 05912bf2e295 -r 81da7cd87b1a crypto/external/bsd/openssl/lib/libcrypto/crypto.inc
--- a/crypto/external/bsd/openssl/lib/libcrypto/crypto.inc Sat Mar 03 03:34:17 2018 +0000
+++ b/crypto/external/bsd/openssl/lib/libcrypto/crypto.inc Sat Mar 03 04:32:46 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: crypto.inc,v 1.6 2018/02/08 21:57:24 christos Exp $
+# $NetBSD: crypto.inc,v 1.7 2018/03/03 04:32:46 christos Exp $
#
# @(#) Copyright (c) 1995 Simon J. Gerraty
#
@@ -8,7 +8,7 @@
.PATH: ${OPENSSLSRC}/crypto
-CRYPTO_SRCS = \
+CRYPTO_SRCS += \
cpt_err.c \
cryptlib.c \
cversion.c \
diff -r 05912bf2e295 -r 81da7cd87b1a crypto/external/bsd/openssl/lib/libcrypto/libc-memequal.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/openssl/lib/libcrypto/libc-memequal.c Sat Mar 03 04:32:46 2018 +0000
@@ -0,0 +1,16 @@
+#include <string.h>
+/*
+ * Special version of CRYPTO_memcmp for platforms with no assembly versions
+ */
+
+#include <string.h>
+#include <openssl/crypto.h>
+
+int
+CRYPTO_memcmp(
+ const volatile void * volatile in_a,
+ const volatile void * volatile in_b,
+ size_t len)
+{
+ return consttime_memequal(__UNVOLATILE(in_a), __UNVOLATILE(in_b), len);
+}
Home |
Main Index |
Thread Index |
Old Index