summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/dsa/dsa_key.c
diff options
context:
space:
mode:
authorjsing <>2023-02-03 04:55:13 +0000
committerjsing <>2023-02-03 04:55:13 +0000
commit83f58ecbf919acef70e84da8fd2f8f71544141fc (patch)
tree16374159804c437315f781b31128d7dbfd94d84a /src/lib/libcrypto/dsa/dsa_key.c
parentfa83c00adb1d2355e75f4c8cf2e4349292789cc5 (diff)
downloadopenbsd-83f58ecbf919acef70e84da8fd2f8f71544141fc.tar.gz
openbsd-83f58ecbf919acef70e84da8fd2f8f71544141fc.tar.bz2
openbsd-83f58ecbf919acef70e84da8fd2f8f71544141fc.zip
Simplify BN_nnmod().
In the case that the result is negative (i.e. one of a or m is negative), the positive result can be achieved via a single BN_usub(). This simplifies BN_nnmod() and avoids indirection via BN_add()/BN_sub(), which do BN_cmp() and then call into BN_uadd()/BN_usub(). ok tb@
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_key.c')
0 files changed, 0 insertions, 0 deletions