diff options
author | Ulf Möller <ulf@openssl.org> | 2000-12-02 07:28:43 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 2000-12-02 07:28:43 +0000 |
commit | 52a1bab2d9891810618569e6c744375b768fce8c (patch) | |
tree | 74d989ab4d71ed0fc1e4a891de56ed8d778954ba /crypto/bn/bn_mul.c | |
parent | 0826c85f4c453b5fd3af1ed08e52d0179d58029d (diff) | |
download | openssl-52a1bab2d9891810618569e6c744375b768fce8c.tar.gz |
Fix bn_cmp_part_words() and move it to bn_lib.c.
Diffstat (limited to 'crypto/bn/bn_mul.c')
-rw-r--r-- | crypto/bn/bn_mul.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/crypto/bn/bn_mul.c b/crypto/bn/bn_mul.c index ff351af10f..52e5ef2f1e 100644 --- a/crypto/bn/bn_mul.c +++ b/crypto/bn/bn_mul.c @@ -61,8 +61,8 @@ #include "cryptlib.h" #include "bn_lcl.h" -/* Here follows specialised variants of bn_cmp_words(), bn_add_words() and - bn_sub_words(). They all have the property performing operations on +/* Here follows specialised variants of bn_add_words() and + bn_sub_words(). They have the property performing operations on arrays of different sizes. The sizes of those arrays is expressed through cl, which is the common length ( basicall, min(len(a),len(b)) ), and dl, which is the delta between the two lengths, calculated as len(a)-len(b). @@ -71,17 +71,6 @@ These functions should probably end up in bn_asm.c as soon as there are assembler counterparts for the systems that use assembler files. */ -int bn_cmp_part_words(const BN_ULONG *a, const BN_ULONG *b, - int cl, int dl) - { - if (dl < 0) /* a < b */ - return -1; - if (dl > 0) /* a > b */ - return 1; - - return bn_cmp_words(a,b,cl); - } - BN_ULONG bn_sub_part_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b, int cl, int dl) |