mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-29 09:38:08 +00:00
15 lines
270 B
C
15 lines
270 B
C
#include "ssss.h"
|
|
|
|
bool ssss_split(const bignum256 *secret, int m, int n, bignum256 *shares)
|
|
{
|
|
if (m < 1 || n < 1 || m > 15 || n > 15 || m > n) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
bool ssss_combine(const bignum256 *shares, int n, bignum256 *secret)
|
|
{
|
|
return true;
|
|
}
|