diff options
author | naddy@openbsd.org <naddy@openbsd.org> | 2017-12-14 21:07:39 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2017-12-19 15:20:43 +1100 |
commit | 4cdc5956f2fcc9e9078938db833142dc07d8f523 (patch) | |
tree | 04f6d43d3c966e23946f89c69d06942483f1d665 /crypto_api.h | |
parent | 012e5cb839faf76549e3b6101b192fe1a74d367e (diff) |
upstream commit
Replace ED25519's private SHA-512 implementation with a
call to the regular digest code. This speeds up compilation considerably. ok
markus@
OpenBSD-Commit-ID: fcce8c3bcfe7389462a28228f63c823e80ade41c
Diffstat (limited to 'crypto_api.h')
-rw-r--r-- | crypto_api.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/crypto_api.h b/crypto_api.h index 5820ce8fa..7c5297603 100644 --- a/crypto_api.h +++ b/crypto_api.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: crypto_api.h,v 1.3 2013/12/17 10:36:38 markus Exp $ */ | 1 | /* $OpenBSD: crypto_api.h,v 1.4 2017/12/14 21:07:39 naddy Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Assembled from generated headers and source files by Markus Friedl. | 4 | * Assembled from generated headers and source files by Markus Friedl. |
@@ -18,12 +18,6 @@ typedef uint32_t crypto_uint32; | |||
18 | 18 | ||
19 | #define randombytes(buf, buf_len) arc4random_buf((buf), (buf_len)) | 19 | #define randombytes(buf, buf_len) arc4random_buf((buf), (buf_len)) |
20 | 20 | ||
21 | #define crypto_hashblocks_sha512_STATEBYTES 64U | ||
22 | #define crypto_hashblocks_sha512_BLOCKBYTES 128U | ||
23 | |||
24 | int crypto_hashblocks_sha512(unsigned char *, const unsigned char *, | ||
25 | unsigned long long); | ||
26 | |||
27 | #define crypto_hash_sha512_BYTES 64U | 21 | #define crypto_hash_sha512_BYTES 64U |
28 | 22 | ||
29 | int crypto_hash_sha512(unsigned char *, const unsigned char *, | 23 | int crypto_hash_sha512(unsigned char *, const unsigned char *, |