diff options
| -rw-r--r-- | lib/libotputil/lrfc2289-otp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libotputil/lrfc2289-otp.c b/lib/libotputil/lrfc2289-otp.c index 82f344f..8257714 100644 --- a/lib/libotputil/lrfc2289-otp.c +++ b/lib/libotputil/lrfc2289-otp.c | |||
| @@ -129,6 +129,10 @@ otputil_otp_code( | |||
| 129 | break; | 129 | break; |
| 130 | 130 | ||
| 131 | case OTPUTIL_MD_MD5: | 131 | case OTPUTIL_MD_MD5: |
| 132 | for(u = 0; (u < 8); u++) | ||
| 133 | md[u] ^= md[u+8]; | ||
| 134 | memcpy(secret, md, 8); | ||
| 135 | secret_len = 8; | ||
| 132 | break; | 136 | break; |
| 133 | 137 | ||
| 134 | case OTPUTIL_MD_SHA1: | 138 | case OTPUTIL_MD_SHA1: |
