jcs's openbsd hax
openbsd

Revert r1.9 and reinstate r1.6

The argument change to x5519_ge_scalarmult_base() was made to match the
prototype in the header. More recent compilers warn about such ptr vs
array mismatches.

tb 64ed187e 62b2531c

+2 -2
+2 -2
lib/libcrypto/curve25519/curve25519.c
··· 1 - /* $OpenBSD: curve25519.c,v 1.14 2022/11/17 19:01:59 tb Exp $ */ 1 + /* $OpenBSD: curve25519.c,v 1.15 2023/04/02 15:36:53 tb Exp $ */ 2 2 /* 3 3 * Copyright (c) 2015, Google Inc. 4 4 * ··· 3495 3495 * 3496 3496 * Preconditions: 3497 3497 * a[31] <= 127 */ 3498 - void x25519_ge_scalarmult_base(ge_p3 *h, const uint8_t *a) { 3498 + void x25519_ge_scalarmult_base(ge_p3 *h, const uint8_t a[32]) { 3499 3499 signed char e[64]; 3500 3500 signed char carry; 3501 3501 ge_p1p1 r;