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/micropython/extmod/modtrezorcrypto/ssss.c

22 lines
389 B

/*
* Copyright (c) Pavol Rusnak, SatoshiLabs
*
* Licensed under TREZOR License
* see LICENSE file for details
*/
#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;
}