RSA.H
上传用户:bjghjy
上传日期:2007-01-07
资源大小:379k
文件大小:1k
- #define DATALENGTH 350
- signed char R[DATALENGTH],PK[DATALENGTH],RsaKey[DATALENGTH];
- signed char SK[DATALENGTH];
- unsigned char DesKey[9];
- int RsaOk;
- int RsaPrePare(signed char *sk,signed char *pk,signed char *r);
- int ReadRsaPk(int no,signed char *r,signed char *pk);
- int WriteRsaPk(int no,signed char *r,signed char *pk);
- int ReadRsaCiper(int no,signed char *ciper,char *deskey);
- int WriteRsaCiper(int no,signed char *ciper,char *deskey);
- 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);