forked from LedgerHQ/app-recovery-check
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganised and renamed some of the SSKR and Shamir code
- Loading branch information
Showing
20 changed files
with
175 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// sss-constants.h | ||
// | ||
// Copyright © 2020 by Blockchain Commons, LLC | ||
// Licensed under the "BSD-2-Clause Plus Patent License" | ||
// | ||
|
||
#ifndef SSS_CONSTANTS_H | ||
#define SSS_CONSTANTS_H | ||
|
||
#if defined(TARGET_NANOS) | ||
#define SSS_MAX_SHARE_COUNT 10 | ||
#else | ||
#define SSS_MAX_SHARE_COUNT 16 | ||
#endif | ||
#define SSS_MIN_SECRET_SIZE 16 | ||
#define SSS_MAX_SECRET_SIZE 32 | ||
|
||
#define SSS_ERROR_SECRET_TOO_LONG (-101) | ||
#define SSS_ERROR_TOO_MANY_SHARES (-102) | ||
#define SSS_ERROR_INTERPOLATION_FAILURE (-103) | ||
#define SSS_ERROR_CHECKSUM_FAILURE (-104) | ||
#define SSS_ERROR_SECRET_TOO_SHORT (-105) | ||
#define SSS_ERROR_SECRET_NOT_EVEN_LEN (-106) | ||
#define SSS_ERROR_INVALID_THRESHOLD (-107) | ||
|
||
#endif /* SSS_CONSTANTS_H */ |
Oops, something went wrong.