diff options
author | tb <> | 2023-04-07 23:03:32 +0000 |
---|---|---|
committer | tb <> | 2023-04-07 23:03:32 +0000 |
commit | 1526675217d3de95f7ffbc6681bc5e300277bcb8 (patch) | |
tree | f5a9f3b385dbfa9aaa23016b06c2df26ba188d84 | |
parent | 67c297f45dc8fd8dc06e6d6d8e6787ebb3622f96 (diff) | |
download | openbsd-1526675217d3de95f7ffbc6681bc5e300277bcb8.tar.gz openbsd-1526675217d3de95f7ffbc6681bc5e300277bcb8.tar.bz2 openbsd-1526675217d3de95f7ffbc6681bc5e300277bcb8.zip |
bn_mont: fix typo in comment divisable -> divisible
-rw-r--r-- | src/lib/libcrypto/bn/bn_mont.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bn/bn_mont.c b/src/lib/libcrypto/bn/bn_mont.c index 4b904c876a..b327b89792 100644 --- a/src/lib/libcrypto/bn/bn_mont.c +++ b/src/lib/libcrypto/bn/bn_mont.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn_mont.c,v 1.55 2023/03/27 10:25:02 tb Exp $ */ | 1 | /* $OpenBSD: bn_mont.c,v 1.56 2023/04/07 23:03:32 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 | * |
@@ -518,7 +518,7 @@ bn_montgomery_reduce(BIGNUM *r, BIGNUM *a, BN_MONT_CTX *mctx) | |||
518 | carry = 0; | 518 | carry = 0; |
519 | n0 = mctx->n0[0]; | 519 | n0 = mctx->n0[0]; |
520 | 520 | ||
521 | /* Add multiples of the modulus, so that it becomes divisable by R. */ | 521 | /* Add multiples of the modulus, so that it becomes divisible by R. */ |
522 | for (i = 0; i < n_len; i++) { | 522 | for (i = 0; i < n_len; i++) { |
523 | v = bn_mul_add_words(&a->d[i], n->d, n_len, a->d[i] * n0); | 523 | v = bn_mul_add_words(&a->d[i], n->d, n_len, a->d[i] * n0); |
524 | bn_addw_addw(v, a->d[i + n_len], carry, &carry, | 524 | bn_addw_addw(v, a->d[i + n_len], carry, &carry, |