search for: inkeylen

Displaying 1 result from an estimated 1 matches for "inkeylen".

2008 Sep 11
3
ZFS Crypto [Prelim] Codereview
...sphrase.")); Also here: 217 dgettext(TEXT_DOMAIN, "Failed generate " 218 "key from passphrase.")) DEA-9: I prefer character constants to magic numbers (in use_key_material()): Change: 567 if ((keylen * 2) + 1 == inkeylen && inkey[keylen*2] == 10) 585 if (inkey[inkeylen - 1] == 10) To: 567 if ((keylen * 2) + 1 == inkeylen && inkey[keylen*2] == ''\n'') 585 if (inkey[inkeylen - 1] == ''\n'') DEA-10: In zfs_change_key()...