1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-24 15:28:10 +00:00
trezor-firmware/extmod/modtrezorcrypto/ssss.c
2016-10-11 14:05:55 +02:00

22 lines
389 B
C

/*
* 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;
}