Skip to content

Commit bf86557

Browse files
committed
x25519: Fix function signature
b has variable length and should not be declared with fixed length 8.
1 parent 4d0534a commit bf86557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto/refc/x25519.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ swapout(uint8_t *out, limb_t *x) {
129129
memcpy(out,x,sizeof(fe));
130130
}
131131

132-
static void mul(fe out, const fe a, const fe b, unsigned nb) {
132+
static void mul(fe out, const fe a, const limb_t *b, unsigned nb) {
133133
/* GCC at least produces pretty decent asm for this, so don't need to have dedicated asm. */
134134
limb_t accum[2*NLIMBS] = {0};
135135
unsigned i,j;

0 commit comments

Comments
 (0)