You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/extmod/modtrezorcrypto/ssss.h

11 lines
248 B

#ifndef __SSSS_H__
#define __SSSS_H__
#include <stdbool.h>
#include "trezor-crypto/bignum.h"
bool ssss_split(const bignum256 *secret, int m, int n, bignum256 *shares);
bool ssss_combine(const bignum256 *shares, int n, bignum256 *secret);
#endif