RSA.H
上传用户:kelungde
上传日期:2007-01-06
资源大小:3k
文件大小:1k
- #define DATALENGTH 350
- signed char R[DATALENGTH],PK[DATALENGTH],RsaKey[DATALENGTH];
- signed char SK[DATALENGTH];
- unsigned char DesKey[9];
- int RsaPrepare(signed char *sk,signed char *pk,signed char *r);
- int ReadRsaFile(signed char *r,signed char *pk,signed char *sk);
- int WriteRsaFile(signed char *r,signed char *pk,signed char *sk);
- //int EncipherDesKey(char *deskey,signed char *r,signed char *pk,signed char *rsakey);
- int DecipherDesKey(signed char *rsakey,signed char *r,signed char *sk,char *deskey);
- int StrToByt(char *str,signed char *byt);
- void BytToStr(signed char *byt,char *str);