00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #ifndef _H_ALP_PRV_SECURITYUTILITY_
00039 #define _H_ALP_PRV_SECURITYUTILITY_
00040
00041
00042 #include <stdio.h>
00043
00044
00045
00046 typedef struct {
00047 char *salt;
00048 unsigned int salt_length;
00049 unsigned int iteration;
00050 unsigned int active;
00051 char *id;
00052 char *phrase;
00053 } AlpPrvSpfSuPKCS5;
00054
00055
00056
00057 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 );
00058 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 );
00059 void alp_prv_spf_su_sha1( char *input, unsigned int input_length, char *output );
00060 void alp_prv_spf_su_pkcs5_init_default( AlpPrvSpfSuPKCS5 **context, char *id );
00061 void alp_prv_spf_su_pkcs5_init( AlpPrvSpfSuPKCS5 **context, char *salt, unsigned int iteration, char *id );
00062 void alp_prv_spf_su_pkcs5_fput( AlpPrvSpfSuPKCS5 *context, FILE *fp );
00063 void alp_prv_spf_su_pkcs5_phrase_set( AlpPrvSpfSuPKCS5 *context, char *phrase );
00064 void alp_prv_spf_su_pkcs5_phrase_test( AlpPrvSpfSuPKCS5 *context, char *phrase, unsigned int *success );
00065
00066
00067
00068 #endif