Tools to make secret sharing easier.
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.
 
 
 
 

31 lines
1.6 KiB

/*
* gfsecret - Secret sharing tools
* Copyright (C) 2016 Damien Goutte-Gattat
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
GFSEC_ERROR(SUCCESS, 0, "Success")
GFSEC_ERROR(SYSTEM_ERROR, -1, strerror(errno))
GFSEC_ERROR(INVALID_CALL, -2, "A function was improperly called")
GFSEC_ERROR(NOT_ENOUGH_SHARES, -3, "Not enough shares available")
GFSEC_ERROR(TOO_MANY_SHARES, -4, "Too many shares")
GFSEC_ERROR(SHARE_NOT_AVAILABLE, -5, "A share is not available")
GFSEC_ERROR(INVALID_LENGTH, -6, "Shares have inconsistent lengths")
GFSEC_ERROR(INVALID_SHARE, -7, "Checksum failed for share data")
GFSEC_ERROR(CONFIG_LINE_TOO_LONG, -9, "Line too long")
GFSEC_ERROR(CONFIG_INVALID_URI, -10, "Invalid share URI")
GFSEC_ERROR(CONFIG_INVALID_HASH, -11, "Invalid hash value")
GFSEC_ERROR(CONFIG_UNKNOWN_SCHEME, -12, "Unknown URI scheme")
GFSEC_ERROR(CONFIG_INVALID_THRESHOLD, -13, "Invalid threshold")