Welcome to little lamb

Code » ssp » master » tree

[master] / src / include / hotp.h

/* This file is part of ssp                             https://lila.oss/ssp
 * Copyright (C) 2023 Olivier Brunel                          jjk@jjacky.com */
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef SSP_HOTP_H
#define SSP_HOTP_H

#include <limb/hasher.h>
#include <limb/u64.h>

int hotp(hasher *hr, const char *secret, size_t slen, u64 c, int digits);

#endif /* SSP_HOTP_H */