diff options
Diffstat (limited to 'sys-auth')
-rw-r--r-- | sys-auth/otpcalc/files/otpcalc-0.97-sha1-byteorder.patch | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys-auth/otpcalc/files/otpcalc-0.97-sha1-byteorder.patch b/sys-auth/otpcalc/files/otpcalc-0.97-sha1-byteorder.patch index eb9fe8cf823a..99cb08e3b8a5 100644 --- a/sys-auth/otpcalc/files/otpcalc-0.97-sha1-byteorder.patch +++ b/sys-auth/otpcalc/files/otpcalc-0.97-sha1-byteorder.patch @@ -5,11 +5,23 @@ digest[i] ^= digest[i+16]; - memcpy(message, digest, 8); -+ /* Fix byte order */ ++ /* Fix byte order, as required by RFC 2289 Appendix A */ + for (i = 0; i < 8; i++) + message[i] = digest[(i&4)+3-(i&3)]; } +--- otpCalc-0.97-orig/otpCalc.man 2008-09-17 22:23:00.000000000 +0200 ++++ otpCalc-0.97/otpCalc.man 2008-09-17 22:23:47.000000000 +0200 +@@ -47,9 +47,6 @@ + RFC 2289, RFC 1740 + .SH "AUTHOR" + Anthony D. Urso <anthonyu@killa.net>. +-.SH "BUGS" +-SHA1 output differs from RFC2289; however, the output is consistant with +-other implementations. + .SH "COPYRIGHT" + Copyright \(co 2001 Anthony D. Urso. + .br --- otpCalc-0.97-orig/BUGS 2001-05-07 08:23:38.000000000 +0200 +++ otpCalc-0.97/BUGS 2008-09-17 21:02:36.000000000 +0200 @@ -16,3 +16,7 @@ |