Time-based one-time password algorithm: Difference between revisions
Content added Content deleted
Line 144: | Line 144: | ||
/* Keys SHOULD be of the length of the HMAC output to facilitate |
/* Keys SHOULD be of the length of the HMAC output to facilitate |
||
interoperability.*/ |
interoperability.*/ |
||
K = new byte[HMACSHA1.Create().HashSize]; |
K = new byte[HMACSHA1.Create().HashSize / 8]; |
||
rng.GetBytes(K); |
rng.GetBytes(K); |
||
} |
} |