Skip to content

Commit 41d4e0f

Browse files
author
tb
committed
Make declaration and definition of BN_BLINDING_new() match.
Also, make mod const.
1 parent 95e0708 commit 41d4e0f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/lib/libcrypto/bn/bn_blind.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: bn_blind.c,v 1.42 2023/08/09 09:09:24 tb Exp $ */
1+
/* $OpenBSD: bn_blind.c,v 1.43 2023/08/09 09:20:00 tb Exp $ */
22
/* ====================================================================
33
* Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved.
44
*
@@ -132,7 +132,7 @@ struct bn_blinding_st {
132132
};
133133

134134
BN_BLINDING *
135-
BN_BLINDING_new(const BIGNUM *e, BIGNUM *mod, BN_CTX *ctx,
135+
BN_BLINDING_new(const BIGNUM *e, const BIGNUM *mod, BN_CTX *ctx,
136136
int (*bn_mod_exp)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
137137
const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx), BN_MONT_CTX *m_ctx)
138138
{

src/lib/libcrypto/bn/bn_local.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: bn_local.h,v 1.36 2023/08/09 09:09:24 tb Exp $ */
1+
/* $OpenBSD: bn_local.h,v 1.37 2023/08/09 09:20:00 tb Exp $ */
22
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
33
* All rights reserved.
44
*
@@ -292,7 +292,7 @@ int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
292292
int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m,
293293
BN_RECP_CTX *recp, BN_CTX *ctx);
294294

295-
BN_BLINDING *BN_BLINDING_new(const BIGNUM *e, BIGNUM *m, BN_CTX *ctx,
295+
BN_BLINDING *BN_BLINDING_new(const BIGNUM *e, const BIGNUM *mod, BN_CTX *ctx,
296296
int (*bn_mod_exp)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
297297
const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx), BN_MONT_CTX *m_ctx);
298298
void BN_BLINDING_free(BN_BLINDING *b);

0 commit comments

Comments
 (0)