From: Mark Wooding Date: Sun, 25 Dec 2011 23:32:48 +0000 (+0000) Subject: keyfunc.sh.in: Rename the nub computation properties. X-Git-Tag: 0.99.1~11 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/distorted-keys/commitdiff_plain/2a877b7f36d155683f4896c72779a62f20f4b1c3 keyfunc.sh.in: Rename the nub computation properties. These names are more consistent with the longer names used elsewhere. --- diff --git a/keyfunc.sh.in b/keyfunc.sh.in index 82ed9e5..bfcb26b 100644 --- a/keyfunc.sh.in +++ b/keyfunc.sh.in @@ -227,9 +227,9 @@ defprops g_props </dev/null \ - if=/dev/${kprop_random-random} bs=1 count=${kprop_nubsz-512} | - openssl dgst -${kprop_nubhash-sha384} -binary | + if=/dev/${kprop_random-random} bs=1 count=${kprop_nub_random_bytes-64} | + openssl dgst -${kprop_nub_hash-sha256} -binary | openssl base64 } nubid () { ## Compute a hash of the key nub in stdin, and write it to stdout in hex. - ## The property `nubidhash' is used. + ## The property `nubid_hash' is used. { echo "distorted-keys nubid"; cat -; } | - openssl dgst -${kprop_nubidhash-sha256} + openssl dgst -${kprop_nubid_hash-sha256} } subst () {