- NAME
- SYNOPSIS
- DESCRIPTION
- RETURN VALUES
- CONFORMING TO
- SEE ALSO
- COPYRIGHT

# NAME

OTP_generate - One-Time Password Algorithm

# SYNOPSIS

     #include <openssl/otp.h>

     typedef struct OTP_PARAMS_st {
            int type;
            int te;
            void *option;
            size_t option_size;
            int otp_digits;
            /* adjust the clock in seconds */
            int offset;
     } OTP_PARAMS;

     int OTP_generate(const OTP_PARAMS *params,
                      const void *event, size_t eventlen,
                      unsigned int *otp,
                      const unsigned char *key, size_t keylen);

# DESCRIPTION

Applications should use the higher level functions RETURN VALUES

sm3_init(), sm3_update(), sm3_final(), sm3_compress() and sm3() return void.

# CONFORMING TO

GM/T 0004-2012 SM3 Cryptogrpahic Hash Algorithm.

# SEE ALSO

COPYRIGHT

Copyright 2014-2019 The GmSSL Project. All Rights Reserved.

Licensed under the GmSSL license (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at http://gmssl.org/license.html.