Branch: Tag:

2013-10-15

2013-10-15 15:48:46 by Martin Nilsson <nilsson@opera.com>

Look for Crypto.SHA512 instead of Nettle.SHA512_Info

174:    case "5": // SHA-256    return Crypto.SHA256.crypt_hash(password, salt, rounds) ==    [string(0..127)]hash; - #if constant(Nettle.SHA512_Info) + #if constant(Crypto.SHA512)    case "6": // SHA-512    return Crypto.SHA512.crypt_hash(password, salt, rounds) ==    [string(0..127)]hash;
296:    case "{crypt}":    case UNDEFINED:    // FALL_THROUGH - #if constant(Nettle.SHA512_Info) + #if constant(Crypto.SHA512)    case "6":    case "$6$":    crypt_hash = Crypto.SHA512.crypt_hash;