mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-30 11:28:21 +00:00
18 lines
367 B
C
18 lines
367 B
C
/*
|
|
* Copyright (c) Pavol Rusnak, SatoshiLabs
|
|
*
|
|
* Licensed under TREZOR License
|
|
* see LICENSE file for details
|
|
*/
|
|
|
|
#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
|