Struct botan::HOTP[][src]

pub struct HOTP { /* fields omitted */ }

Generate or check HOTP tokens

Methods

impl HOTP
[src]

Instantiate a new HOTP instance with the given parameters

Examples

let hotp = botan::HOTP::new(&[1,2,3,4], "SHA-1", 6);

Generate an HOTP code

Check an HOTP code

Check an HOTP code, allowing counter resync

Trait Implementations

impl Debug for HOTP
[src]

Formats the value using the given formatter. Read more

impl Drop for HOTP
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Send for HOTP

impl !Sync for HOTP