<<  >> (p.46)
    Author Topic: Nxt source code flaw reports  (Read 113428 times)
    ricot
    Newbie
    *
    Offline Offline

    Activity: 56
    Merit: 0


    View Profile
    January 13, 2014, 12:56:15 AM
     #901

    The result of the hash function has 32 bytes, so that's not the problem. And also there are no exceptions in that code.

    Instead of passing result of hash function, he's passing short words -> Crypto.getPublicKey -> Crypto.keygen -> clamp -> OOB exception
    exception is silently handled, getPublicKey returns null in result

    keygen gets the digested secretPhrase, which is exactly 32 bytes.
    The result is also not null, just in case you haven't checked yourself...
Page 45
Viewing Page: 46