diff options
author | Azul <azul@leap.se> | 2012-07-26 10:59:32 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-07-26 10:59:32 +0200 |
commit | a88fa3560940f46ec1ff77f3e79d10d9bf34149a (patch) | |
tree | 05d8058a769cecc5b3e06dd426b357e6156b86d3 /lib/srp | |
parent | 26580be7f9b557ed8136aa11c7b4e7b96f9c86eb (diff) |
removing the remaining zerofills
Diffstat (limited to 'lib/srp')
-rw-r--r-- | lib/srp/util.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/srp/util.rb b/lib/srp/util.rb index 577977e..bf4c248 100644 --- a/lib/srp/util.rb +++ b/lib/srp/util.rb @@ -61,7 +61,6 @@ d15dc7d7b46154d6b6ce8ef4ad69b15d4982559b297bcf1885c529f566660e5 end def calculate_m(aa, bb, s) - # todo: we might want to 0fill this like for u hashin = '%x%x%x' % [aa, bb, s] sha256_str(hashin).hex end @@ -71,9 +70,6 @@ d15dc7d7b46154d6b6ce8ef4ad69b15d4982559b297bcf1885c529f566660e5 aahex = '%x' % [aa] bbhex = '%x' % [bb] return sha256_str("%x%x" % [aa, bb]).hex - hashin = '0' * (nlen - aahex.length) + aahex \ - + '0' * (nlen - bbhex.length) + bbhex - sha256_str(hashin).hex end end |