trezor-core/embed/extmod/modtrezorcrypto/ssss.h

18 lines
367 B
C
Raw Normal View History

2016-10-11 05:05:55 -07:00
/*
* Copyright (c) Pavol Rusnak, SatoshiLabs
*
* Licensed under TREZOR License
* see LICENSE file for details
*/
2016-05-31 07:24:43 -07:00
#ifndef __SSSS_H__
#define __SSSS_H__
#include <stdbool.h>
2016-06-06 00:51:28 -07:00
#include "trezor-crypto/bignum.h"
2016-05-31 07:24:43 -07:00
bool ssss_split(const bignum256 *secret, int m, int n, bignum256 *shares);
bool ssss_combine(const bignum256 *shares, int n, bignum256 *secret);
#endif