2019-06-22 17:17:07 +01:00
|
|
|
#ifndef _RAINBOW_H_
|
|
|
|
#define _RAINBOW_H_
|
|
|
|
/// @file rainbow.h
|
|
|
|
/// @brief APIs for rainbow.
|
|
|
|
///
|
|
|
|
|
|
|
|
#include "rainbow_config.h"
|
|
|
|
#include "rainbow_keypair.h"
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
///
|
|
|
|
/// @brief Signing function for classical secret key.
|
|
|
|
///
|
|
|
|
/// @param[out] signature - the signature.
|
|
|
|
/// @param[in] sk - the secret key.
|
|
|
|
/// @param[in] digest - the digest.
|
|
|
|
///
|
2019-07-24 09:15:48 +01:00
|
|
|
int PQCLEAN_RAINBOWVCCLASSIC_CLEAN_rainbow_sign(uint8_t *signature, const sk_t *sk, const uint8_t *digest);
|
2019-06-22 17:17:07 +01:00
|
|
|
|
|
|
|
///
|
|
|
|
/// @brief Verifying function.
|
|
|
|
///
|
|
|
|
/// @param[in] digest - the digest.
|
|
|
|
/// @param[in] signature - the signature.
|
|
|
|
/// @param[in] pk - the public key.
|
|
|
|
/// @return 0 for successful verified. -1 for failed verification.
|
|
|
|
///
|
2019-07-24 09:15:48 +01:00
|
|
|
int PQCLEAN_RAINBOWVCCLASSIC_CLEAN_rainbow_verify(const uint8_t *digest, const uint8_t *signature, const pk_t *pk);
|
2019-06-22 17:17:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _RAINBOW_H_
|