-/* $OpenBSD: curve25519.c,v 1.12 2022/11/09 17:40:51 jsing Exp $ */
+/* $OpenBSD: curve25519.c,v 1.13 2022/11/09 17:45:55 jsing Exp $ */
/*
* Copyright (c) 2015, Google Inc.
*
#endif
void
-x25519_public_from_private(uint8_t out_public_key[32],
- const uint8_t private_key[32])
+X25519_public_from_private(uint8_t out_public_key[X25519_KEY_LENGTH],
+ const uint8_t private_key[X25519_KEY_LENGTH])
{
static const uint8_t kMongomeryBasePoint[32] = {9};
out_private_key[31] &= 63;
out_private_key[31] |= 128;
- x25519_public_from_private(out_public_key, out_private_key);
+ X25519_public_from_private(out_public_key, out_private_key);
}
int
-/* $OpenBSD: curve25519_internal.h,v 1.5 2022/11/09 17:39:29 jsing Exp $ */
+/* $OpenBSD: curve25519_internal.h,v 1.6 2022/11/09 17:45:55 jsing Exp $ */
/*
* Copyright (c) 2015, Google Inc.
*
void ED25519_public_from_private(uint8_t out_public_key[32],
const uint8_t private_key[32]);
+void X25519_public_from_private(uint8_t out_public_key[32],
+ const uint8_t private_key[32]);
+
__END_HIDDEN_DECLS
#endif /* HEADER_CURVE25519_INTERNAL_H */