|
Data Structures |
struct | AlpPrvSpfSuPKCS5 |
Functions |
void | alp_prv_spf_su_rfc1113_encode (char *input, unsigned int input_length, char *output, unsigned int output_max_length, unsigned int *output_bytes_written) |
| This function performs an rfc1113 encoding. That is, it takes binary data of a fixed length and converts it into ASCII printable data. Some people refer to this as "BASE64 encoding" thought the term RFC1113 encoding may be more accurate as RFC1113 specifies one particular BASE64 encoding that seems to be in near-universal use. The function takes a pointer to binary data you want to convert, along with an unsigned int indicating the length of the input. It also takes a pointer to where you want to put the converted data and an unsigned int indicating the size of the output buffer. The function will write at most output_length bytes to the output buffer. If the output_bytes_written parameter is non-null, the function will write the number of bytes it wrote to the unsigned int pointed to by this pointer.
|
void | alp_prv_spf_su_rfc1113_decode (char *input, unsigned int input_length, char *output, unsigned int output_max_length, unsigned int *output_bytes_written) |
| This function performs an rfc1113 decoding. That is, it takes RFC1113 encoded ASCII data and converts it back into binary data. The function takes a pointer to ASCII data you want to convert, along with an unsigned int indicating the length of the input. It also takes a pointer to where you want to put the binary output data and an unsigned int indicating the size of the output buffer. The function will write at most output_length bytes to the output buffer. If the output_bytes_written parameter is non-null, the function will write the number of bytes it wrote to the unsigned int pointed to by this pointer.
|
void | alp_prv_spf_su_sha1 (char *input, unsigned int input_length, char *output) |
| This is a simple convenience function that performs a SHA1 hash of a block of data. SHA1 hashes are 20 bytes long, so the function assumes that the output parameter points to (at least) a 20 byte buffer.
|
void | alp_prv_spf_su_pkcs5_init_default (AlpPrvSpfSuPKCS5 **context, char *id) |
| This function initializes a AlpPrvSpfSuPKCS5 context data structure with default parameters. The only parameter that we don't have a default for is the "id" parameter.
|
void | alp_prv_spf_su_pkcs5_init (AlpPrvSpfSuPKCS5 **context, char *salt, unsigned int iteration, char *id) |
void | alp_prv_spf_su_pkcs5_fput (AlpPrvSpfSuPKCS5 *context, FILE *fp) |
void | alp_prv_spf_su_pkcs5_phrase_set (AlpPrvSpfSuPKCS5 *context, char *phrase) |
void | alp_prv_spf_su_pkcs5_phrase_test (AlpPrvSpfSuPKCS5 *context, char *phrase, unsigned int *success) |