EGEE
Main Page | Directories | File List | Globals

ssss.h File Reference

Go to the source code of this file.

Functions

unsigned char ** glite_security_ssss_split_key (unsigned char *key, unsigned int nShares, unsigned int nNeeded)
 Function for spliting of a key.
unsigned char * glite_security_ssss_join_keys (unsigned char **keys, unsigned int nShares)
 Function for joining of split keys.
unsigned char ** glite_security_ssss_split_passwd (unsigned char *key, unsigned int nShares, unsigned int nNeeded)
 Function for spliting of a asci key for passwords.
unsigned char * glite_security_ssss_join_passwd (unsigned char **keys, unsigned int nShares)
 Function for joining of split ascii keys for passwords.


Function Documentation

unsigned char* glite_security_ssss_join_keys unsigned char **  keys,
unsigned int  nShares
 

Function for joining of split keys.

Parameters:
keys Array of key pieces in hexadecimal string format.
nShares The number of shares.
Returns:
The joined key in hexadecimal string format, if there was no error. If there was an error, NULL is returned.
The caller is responsible for freeing the allocated string in case of success. The order of the submitted keys (**keys) does matter. If a key is missing, e.g. due to a server being down, this key should be set to NULL for the corresponding index in **keys.

unsigned char* glite_security_ssss_join_passwd unsigned char **  keys,
unsigned int  nShares
 

Function for joining of split ascii keys for passwords.

Parameters:
keys Array of key pieces in hexadecimal string format.
nShares The number of shares.
Returns:
The joined key in hexadecimal string format, if there was no error. If there was an error, NULL is returned.
The caller is responsible for freeing the allocated string in case of success. The order of the submitted password parts (**keys) does matter. If a key is missing, e.g. due to a server being down, this part should be set to NULL for the corresponding index in **keys.

unsigned char** glite_security_ssss_split_key unsigned char *  key,
unsigned int  nShares,
unsigned int  nNeeded
 

Function for spliting of a key.

Parameters:
key The key in hexadecimal string format.
nShares The desired number of shares.
nNeeded The number of keys required to recover.
Returns:
The array of random split keys in hexadecimal string format, if there was no error. If there was an error, NULL is returned.
The caller is responsible for freeing the allocated strings in case of success.

unsigned char** glite_security_ssss_split_passwd unsigned char *  key,
unsigned int  nShares,
unsigned int  nNeeded
 

Function for spliting of a asci key for passwords.

Parameters:
key The key in hexadecimal string format.
nShares The desired number of shares.
nNeeded The number of keys required to recover.
Returns:
The array of split random password parts in hexadecimal string format, if there was no error. If there was an error, NULL is returned.
The caller is responsible for freeing the allocated strings in case of success.
The GLite Project. All rights reserved.