diff options
author | tb <> | 2022-11-13 14:05:04 +0000 |
---|---|---|
committer | tb <> | 2022-11-13 14:05:04 +0000 |
commit | ffddd519694c7a8547145a7ce2b027e4a0ec21c5 (patch) | |
tree | 9376da134dd589266571d1b79e143b0f96b7e706 | |
parent | 7812b27139ea6df6c7bcc8b2ee92c7bbb0f28950 (diff) | |
download | openbsd-ffddd519694c7a8547145a7ce2b027e4a0ec21c5.tar.gz openbsd-ffddd519694c7a8547145a7ce2b027e4a0ec21c5.tar.bz2 openbsd-ffddd519694c7a8547145a7ce2b027e4a0ec21c5.zip |
Expose direct access API for Ed25519.
-rw-r--r-- | src/lib/libcrypto/curve25519/curve25519.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libcrypto/curve25519/curve25519.h b/src/lib/libcrypto/curve25519/curve25519.h index 69fff02d12..e42bc22c12 100644 --- a/src/lib/libcrypto/curve25519/curve25519.h +++ b/src/lib/libcrypto/curve25519/curve25519.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: curve25519.h,v 1.6 2022/11/11 01:44:26 tb Exp $ */ | 1 | /* $OpenBSD: curve25519.h,v 1.7 2022/11/13 14:05:04 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2015, Google Inc. | 3 | * Copyright (c) 2015, Google Inc. |
4 | * | 4 | * |
@@ -61,7 +61,6 @@ int X25519(uint8_t out_shared_key[X25519_KEY_LENGTH], | |||
61 | const uint8_t private_key[X25519_KEY_LENGTH], | 61 | const uint8_t private_key[X25519_KEY_LENGTH], |
62 | const uint8_t peers_public_value[X25519_KEY_LENGTH]); | 62 | const uint8_t peers_public_value[X25519_KEY_LENGTH]); |
63 | 63 | ||
64 | #if defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL) | ||
65 | /* | 64 | /* |
66 | * ED25519 | 65 | * ED25519 |
67 | * | 66 | * |
@@ -97,7 +96,6 @@ int ED25519_sign(uint8_t *out_sig, const uint8_t *message, size_t message_len, | |||
97 | int ED25519_verify(const uint8_t *message, size_t message_len, | 96 | int ED25519_verify(const uint8_t *message, size_t message_len, |
98 | const uint8_t signature[ED25519_SIGNATURE_LENGTH], | 97 | const uint8_t signature[ED25519_SIGNATURE_LENGTH], |
99 | const uint8_t public_key[ED25519_PUBLIC_KEY_LENGTH]); | 98 | const uint8_t public_key[ED25519_PUBLIC_KEY_LENGTH]); |
100 | #endif | ||
101 | 99 | ||
102 | #if defined(__cplusplus) | 100 | #if defined(__cplusplus) |
103 | } /* extern C */ | 101 | } /* extern C */ |