From 348399df50e7baa4f60da1dcfcf3d052c680ae04 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Wed, 11 Mar 2009 01:25:19 +0000 Subject: [PATCH] Accidentally reversed high/low. Rename fields slightly. --- ykksm-decrypt.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ykksm-decrypt.php b/ykksm-decrypt.php index 0b0f620..4e5e5aa 100644 --- a/ykksm-decrypt.php +++ b/ykksm-decrypt.php @@ -103,11 +103,11 @@ if (!$result) { # Mask out interesting fields $counter = substr($plaintext, 14, 2) . substr($plaintext, 12, 2); -$tstamphi = substr($plaintext, 18, 2) . substr($plaintext, 16, 2); -$tstamplo = substr($plaintext, 20, 2); -$sessionuse = substr($plaintext, 22, 2); +$low = substr($plaintext, 18, 2) . substr($plaintext, 16, 2); +$high = substr($plaintext, 20, 2); +$use = substr($plaintext, 22, 2); -print "OK counter=$counter tstamphi=$tstamphi tstamplo=$tstamplo sessionuse=$sessionuse\n"; +print "OK counter=$counter high=$high low=$low use=$use\n"; mysql_close() or syslog(LOG_ERR, "Database close error (otp $otp): " . mysql_error());