summaryrefslogtreecommitdiffstats
path: root/crypto_api.h
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2021-01-08 02:33:13 +0000
committerDamien Miller <djm@mindrot.org>2021-01-08 13:49:49 +1100
commit599df78f3008cf78af21f8977be3e1dd085f8e2e (patch)
treebae023aa5b3201832a04e1829c1823ffc64e14e0 /crypto_api.h
parent16448ff529affda7e2a15ee7c3200793abde0759 (diff)
upstream: 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@ OpenBSD-Commit-ID: 7b9d0cf3acd5a3c1091da8afe00c904d38cf5783
Diffstat (limited to 'crypto_api.h')
-rw-r--r--crypto_api.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto_api.h b/crypto_api.h
index 1827003e..5c3d97ea 100644
--- a/crypto_api.h
+++ b/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.
@@ -21,6 +21,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()