diff options
author | tb <> | 2022-02-08 16:44:23 +0000 |
---|---|---|
committer | tb <> | 2022-02-08 16:44:23 +0000 |
commit | c77b931b347e04346ee4a2088a898fe085573548 (patch) | |
tree | 4dae1deb9c10353b450d641610fb24a5d66bc342 /src | |
parent | 85d4f87943d9be28ebbe3103b55c264e0570f547 (diff) | |
download | openbsd-c77b931b347e04346ee4a2088a898fe085573548.tar.gz openbsd-c77b931b347e04346ee4a2088a898fe085573548.tar.bz2 openbsd-c77b931b347e04346ee4a2088a898fe085573548.zip |
Change second argument of x25519_ge_scalarmult_base() from
a 'const uint8_t *a' to a 'const uint8_t a[32]' to match
the prototype in curve25519_internal.h and the other variant
inside OPENSSL_SMALL.
ok millert
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/curve25519/curve25519.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/curve25519/curve25519.c b/src/lib/libcrypto/curve25519/curve25519.c index 13b54c3d5d..6df03a3a6b 100644 --- a/src/lib/libcrypto/curve25519/curve25519.c +++ b/src/lib/libcrypto/curve25519/curve25519.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: curve25519.c,v 1.5 2019/05/11 15:55:52 tb Exp $ */ | 1 | /* $OpenBSD: curve25519.c,v 1.6 2022/02/08 16:44:23 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2015, Google Inc. | 3 | * Copyright (c) 2015, Google Inc. |
4 | * | 4 | * |
@@ -3513,7 +3513,7 @@ static void table_select(ge_precomp *t, int pos, signed char b) { | |||
3513 | * | 3513 | * |
3514 | * Preconditions: | 3514 | * Preconditions: |
3515 | * a[31] <= 127 */ | 3515 | * a[31] <= 127 */ |
3516 | void x25519_ge_scalarmult_base(ge_p3 *h, const uint8_t *a) { | 3516 | void x25519_ge_scalarmult_base(ge_p3 *h, const uint8_t a[32]) { |
3517 | signed char e[64]; | 3517 | signed char e[64]; |
3518 | signed char carry; | 3518 | signed char carry; |
3519 | ge_p1p1 r; | 3519 | ge_p1p1 r; |