summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/curve25519/curve25519_internal.h
diff options
context:
space:
mode:
authorjsing <>2022-11-08 17:07:17 +0000
committerjsing <>2022-11-08 17:07:17 +0000
commit825db04c6828a0069e92e417fe752efcc8be7c74 (patch)
treee91257a03a763d3d237930fddaae3bdf3b823f1d /src/lib/libcrypto/curve25519/curve25519_internal.h
parentf518a98c03d29e66d43b2787e571f85359f39671 (diff)
downloadopenbsd-825db04c6828a0069e92e417fe752efcc8be7c74.tar.gz
openbsd-825db04c6828a0069e92e417fe752efcc8be7c74.tar.bz2
openbsd-825db04c6828a0069e92e417fe752efcc8be7c74.zip
Refactor/split ED25519_keypair.
This brings in ED25519_keypair_from_seed() from BoringSSL commit c034e2d3ce16, which ED25519_keypair then wraps. This reduces differences between us and BoringSSL.
Diffstat (limited to 'src/lib/libcrypto/curve25519/curve25519_internal.h')
-rw-r--r--src/lib/libcrypto/curve25519/curve25519_internal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/curve25519/curve25519_internal.h b/src/lib/libcrypto/curve25519/curve25519_internal.h
index 09d20a4fec..9d2ee9b4d7 100644
--- a/src/lib/libcrypto/curve25519/curve25519_internal.h
+++ b/src/lib/libcrypto/curve25519/curve25519_internal.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: curve25519_internal.h,v 1.3 2019/05/11 15:55:52 tb Exp $ */ 1/* $OpenBSD: curve25519_internal.h,v 1.4 2022/11/08 17:07:17 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2015, Google Inc. 3 * Copyright (c) 2015, Google Inc.
4 * 4 *
@@ -94,6 +94,9 @@ void x25519_scalar_mult(uint8_t out[32], const uint8_t scalar[32],
94void x25519_scalar_mult_generic(uint8_t out[32], const uint8_t scalar[32], 94void x25519_scalar_mult_generic(uint8_t out[32], const uint8_t scalar[32],
95 const uint8_t point[32]); 95 const uint8_t point[32]);
96 96
97void ED25519_keypair_from_seed(uint8_t out_public_key[32],
98 uint8_t out_private_key[64], const uint8_t seed[32]);
99
97__END_HIDDEN_DECLS 100__END_HIDDEN_DECLS
98 101
99#endif /* HEADER_CURVE25519_INTERNAL_H */ 102#endif /* HEADER_CURVE25519_INTERNAL_H */