public class HOTPGenerator extends AbstractOTPGenerator
Constructor and Description |
---|
HOTPGenerator() |
Modifier and Type | Method and Description |
---|---|
int |
generate(byte[] key,
long count)
Generates the OTP given a per-user key and invocation count.
|
protected org.bouncycastle.crypto.Digest |
getDigest() |
generateInternal, getNumberOfDigits, setNumberOfDigits
public int generate(byte[] key, long count)
key
- Per-user key.count
- Counter moving factor.protected org.bouncycastle.crypto.Digest getDigest()
getDigest
in class AbstractOTPGenerator
Copyright © 2003-2024 Virginia Tech. All Rights Reserved.