summaryrefslogtreecommitdiffstats
path: root/doc/man3/BN_mod_inverse.pod
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2023-10-18 15:50:30 +0200
committerHugo Landau <hlandau@openssl.org>2023-10-26 16:25:47 +0200
commitaf0025fc40779cc98c06db7e29936f9d5de8cc9e (patch)
tree8a6f620ac9b7148ce970ddee39416adcffebe28e /doc/man3/BN_mod_inverse.pod
parentdoc: change "certifictes" to "certificates" (diff)
downloadopenssl-af0025fc40779cc98c06db7e29936f9d5de8cc9e.tar.xz
openssl-af0025fc40779cc98c06db7e29936f9d5de8cc9e.zip
bn: Properly error out if aliasing return value with modulus
Test case amended from code initially written by Bernd Edlinger. Fixes #21110 Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Hugo Landau <hlandau@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22421)
Diffstat (limited to 'doc/man3/BN_mod_inverse.pod')
-rw-r--r--doc/man3/BN_mod_inverse.pod6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/man3/BN_mod_inverse.pod b/doc/man3/BN_mod_inverse.pod
index 5dbb5c3cc2..f88e0e63fa 100644
--- a/doc/man3/BN_mod_inverse.pod
+++ b/doc/man3/BN_mod_inverse.pod
@@ -18,7 +18,11 @@ places the result in B<r> (C<(a*r)%n==1>). If B<r> is NULL,
a new B<BIGNUM> is created.
B<ctx> is a previously allocated B<BN_CTX> used for temporary
-variables. B<r> may be the same B<BIGNUM> as B<a> or B<n>.
+variables. B<r> may be the same B<BIGNUM> as B<a>.
+
+=head1 NOTES
+
+It is an error to use the same B<BIGNUM> as B<n>.
=head1 RETURN VALUES