diff options
author | tb <> | 2023-08-09 09:20:00 +0000 |
---|---|---|
committer | tb <> | 2023-08-09 09:20:00 +0000 |
commit | 41d4e0ff7ca56d4526056b45876cfa80a4d37e4a (patch) | |
tree | 640a8096df0e078b6449f20bc062ffb46898765a /src | |
parent | 95e0708389805cb1b16c1ce58b7f070258d316cd (diff) | |
download | openbsd-41d4e0ff7ca56d4526056b45876cfa80a4d37e4a.tar.gz openbsd-41d4e0ff7ca56d4526056b45876cfa80a4d37e4a.tar.bz2 openbsd-41d4e0ff7ca56d4526056b45876cfa80a4d37e4a.zip |
Make declaration and definition of BN_BLINDING_new() match.
Also, make mod const.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/bn/bn_blind.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/bn/bn_local.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/bn/bn_blind.c b/src/lib/libcrypto/bn/bn_blind.c index e126865754..1d0835b27f 100644 --- a/src/lib/libcrypto/bn/bn_blind.c +++ b/src/lib/libcrypto/bn/bn_blind.c | |||
@@ -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 $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -132,7 +132,7 @@ struct bn_blinding_st { | |||
132 | }; | 132 | }; |
133 | 133 | ||
134 | BN_BLINDING * | 134 | 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, |
136 | int (*bn_mod_exp)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, | 136 | int (*bn_mod_exp)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, |
137 | const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx), BN_MONT_CTX *m_ctx) | 137 | const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx), BN_MONT_CTX *m_ctx) |
138 | { | 138 | { |
diff --git a/src/lib/libcrypto/bn/bn_local.h b/src/lib/libcrypto/bn/bn_local.h index 66df40ada0..4269f80156 100644 --- a/src/lib/libcrypto/bn/bn_local.h +++ b/src/lib/libcrypto/bn/bn_local.h | |||
@@ -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 $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -292,7 +292,7 @@ int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, | |||
292 | int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, | 292 | int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, |
293 | BN_RECP_CTX *recp, BN_CTX *ctx); | 293 | BN_RECP_CTX *recp, BN_CTX *ctx); |
294 | 294 | ||
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, |
296 | int (*bn_mod_exp)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, | 296 | int (*bn_mod_exp)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, |
297 | const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx), BN_MONT_CTX *m_ctx); | 297 | const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx), BN_MONT_CTX *m_ctx); |
298 | void BN_BLINDING_free(BN_BLINDING *b); | 298 | void BN_BLINDING_free(BN_BLINDING *b); |