summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/crypto_api.h
diff options
context:
space:
mode:
authordtucker <dtucker@openbsd.org>2021-01-08 02:33:13 +0000
committerdtucker <dtucker@openbsd.org>2021-01-08 02:33:13 +0000
commit2b637b8e6fb008e56a1a8d87bc60ce1b3d4cc655 (patch)
tree3e6d4799abc1560c893a54ba01260323a9343bad /usr.bin/ssh/crypto_api.h
parentmention that DisableForwarding is valid in a sshd_config Match block (diff)
downloadwireguard-openbsd-2b637b8e6fb008e56a1a8d87bc60ce1b3d4cc655.tar.xz
wireguard-openbsd-2b637b8e6fb008e56a1a8d87bc60ce1b3d4cc655.zip
Update the sntrup761 creation script and generated code:
- remove unneeded header files and typedefs and rely on crypto_api.h - add defines to map types used to the crypto_api ones instead of typedefs. This prevents typedef name collisions in -portable. - remove CRYPTO_NAMESPACE entirely instead of making it a no-op - delete unused functions and make the remaining ones that aren't exported static. ok djm@
Diffstat (limited to 'usr.bin/ssh/crypto_api.h')
-rw-r--r--usr.bin/ssh/crypto_api.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/ssh/crypto_api.h b/usr.bin/ssh/crypto_api.h
index dcca5e33756..10aa0730adb 100644
--- a/usr.bin/ssh/crypto_api.h
+++ b/usr.bin/ssh/crypto_api.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: crypto_api.h,v 1.6 2020/12/29 00:59:15 djm Exp $ */
+/* $OpenBSD: crypto_api.h,v 1.7 2021/01/08 02:33:13 dtucker Exp $ */
/*
* Assembled from generated headers and source files by Markus Friedl.
@@ -17,6 +17,8 @@ typedef int16_t crypto_int16;
typedef uint16_t crypto_uint16;
typedef int32_t crypto_int32;
typedef uint32_t crypto_uint32;
+typedef int64_t crypto_int64;
+typedef uint64_t crypto_uint64;
#define randombytes(buf, buf_len) arc4random_buf((buf), (buf_len))
#define small_random32() arc4random()