summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ecdsa/ecs_lib.c
diff options
context:
space:
mode:
authorjsing <>2023-03-07 06:15:09 +0000
committerjsing <>2023-03-07 06:15:09 +0000
commit9d27b98c03802e34828891a1a14e03f9ff09e110 (patch)
treee1fe56c393402f69d791b86fcf97fcab51606198 /src/lib/libcrypto/ecdsa/ecs_lib.c
parent2612bbf043e1552170829a7f53031e831174a992 (diff)
downloadopenbsd-9d27b98c03802e34828891a1a14e03f9ff09e110.tar.gz
openbsd-9d27b98c03802e34828891a1a14e03f9ff09e110.tar.bz2
openbsd-9d27b98c03802e34828891a1a14e03f9ff09e110.zip
Refactor BN_mod_mul_montgomery().
Pull out the simplistic implementation (using BN_mul() or BN_sqr()) into a bn_mod_mul_montgomery_simple() function. Provide bn_mod_mul_montgomery() with an implementation that changes depending on if the assembly bn_mul_mont() is available or not. Turn BN_mod_mul_montgomery() and BN_to_montgomery() into callers of bn_mod_mul_montgomery(). ok beck@ tb@
Diffstat (limited to 'src/lib/libcrypto/ecdsa/ecs_lib.c')
0 files changed, 0 insertions, 0 deletions