Struct botan::TOTP[][src]

pub struct TOTP { /* fields omitted */ }

Generate or check TOTP tokens

Methods

impl TOTP
[src]

Instantiate a new TOTP instance with the given parameters

Examples

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

Generate an TOTP code

Check an TOTP code

Trait Implementations

impl Debug for TOTP
[src]

Formats the value using the given formatter. Read more

impl Drop for TOTP
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Send for TOTP

impl !Sync for TOTP