diff --git a/src/mozilla_des.c b/src/mozilla_des.c index 6d679af..eb51f9a 100644 --- a/src/mozilla_des.c +++ b/src/mozilla_des.c @@ -718,7 +718,7 @@ void DES_Do1Block(HALF * ks, const BYTE * inbuf, BYTE * outbuf) #define COPY8BTOHALF(to, from) COPY8B(to, from, from) #define COPY8BFROMHALF(to, from) COPY8B(to, from, to) - +#if 0 void DES_ECB(struct DESContext *cx, BYTE *out, const BYTE *in, unsigned int len) { while (len) { @@ -775,7 +775,7 @@ void DES_CBCDe(struct DESContext *cx, BYTE *out, const BYTE *in, unsigned int le out += 8; } } - +#endif void DES_EDE3CBCEn(struct DESContext *cx, BYTE *out, const BYTE *in, unsigned int len) { const BYTE * bufend = in + len; @@ -820,7 +820,7 @@ struct DESContext *DES_CreateContext(struct DESContext *cx, const BYTE * key, co DES_MakeSchedule(cx->ks0, key + 16, DES_DECRYPT); return cx; } - +#if 0 void DES_DestroyContext(struct DESContext *cx, PRBool freeit) { if (cx) @@ -843,5 +843,5 @@ int DES_Decrypt(struct DESContext *cx, BYTE *out, unsigned int *outLen,unsigned { return DES_EDE3CBCDe(cx, in); } - +#endif #endif diff --git a/src/mozilla_des.h b/src/mozilla_des.h index b71ab19..1218954 100644 --- a/src/mozilla_des.h +++ b/src/mozilla_des.h @@ -78,19 +78,19 @@ struct DESContext typedef void DESFunc(struct DESContext *cx, BYTE *out, const BYTE *in, unsigned int len); -void DES_MakeSchedule( HALF * ks, const BYTE * key, DESDirection direction); -void DES_Do1Block( HALF * ks, const BYTE * inbuf, BYTE * outbuf); +//void DES_MakeSchedule( HALF * ks, const BYTE * key, DESDirection direction); +//void DES_Do1Block( HALF * ks, const BYTE * inbuf, BYTE * outbuf); struct DESContext *DES_CreateContext(struct DESContext *cx, const BYTE * key, const BYTE *iv); //, int mode); -void DES_DestroyContext(struct DESContext *cx, PRBool freeit); -SECStatus DES_Encrypt(struct DESContext *cx, BYTE *out, unsigned int *outLen, unsigned int maxOutLen, const BYTE *in, unsigned int inLen); -int DES_Decrypt(struct DESContext *cx, BYTE *out, unsigned int *outLen,unsigned int maxOutLen, const BYTE *in, unsigned int inLen); +//void DES_DestroyContext(struct DESContext *cx, PRBool freeit); +//SECStatus DES_Encrypt(struct DESContext *cx, BYTE *out, unsigned int *outLen, unsigned int maxOutLen, const BYTE *in, unsigned int inLen); +//int DES_Decrypt(struct DESContext *cx, BYTE *out, unsigned int *outLen,unsigned int maxOutLen, const BYTE *in, unsigned int inLen); int DES_EDE3CBCDe(struct DESContext *cx, const BYTE *in); //not used... -void DES_EDE3CBCEn(struct DESContext *cx, BYTE *out, const BYTE *in, unsigned int len); -void DES_CBCEn(struct DESContext *cx, BYTE *out, const BYTE *in, unsigned int len); -void DES_EDE3_ECB(struct DESContext *cx, BYTE *out, const BYTE *in, unsigned int len); -void DES_ECB(struct DESContext *cx, BYTE *out, const BYTE *in, unsigned int len); +//void DES_EDE3CBCEn(struct DESContext *cx, BYTE *out, const BYTE *in, unsigned int len); +//void DES_CBCEn(struct DESContext *cx, BYTE *out, const BYTE *in, unsigned int len); +//void DES_EDE3_ECB(struct DESContext *cx, BYTE *out, const BYTE *in, unsigned int len); +//void DES_ECB(struct DESContext *cx, BYTE *out, const BYTE *in, unsigned int len);