RSA.H
上传用户:bjghjy
上传日期:2007-01-07
资源大小:379k
文件大小:1k
源码类别:

金融证券系统

开发平台:

Visual C++

  1. #define DATALENGTH 350
  2. signed char R[DATALENGTH],PK[DATALENGTH],RsaKey[DATALENGTH]; 
  3. signed char SK[DATALENGTH];
  4. unsigned char DesKey[9];
  5. int RsaPrepare(signed char *sk,signed char *pk,signed char *r);
  6. int ReadRsaFile(signed char *r,signed char *pk,signed char *sk);
  7. int WriteRsaFile(signed char *r,signed char *pk,signed char *sk);
  8. //int EncipherDesKey(char *deskey,signed char *r,signed char *pk,signed char *rsakey);
  9. int DecipherDesKey(signed char *rsakey,signed char *r,signed char *sk,char *deskey);
  10. int StrToByt(char *str,signed char *byt);
  11. void BytToStr(signed char *byt,char *str);