#ifndef _DES_H_9a159a67_ #define _DES_H_9a159a67_ typedef struct rsadestable RSADESTable; typedef struct rsades3table RSADES3Table; struct rsadestable { unsigned char v[128]; } ; struct rsades3table { unsigned char v[384]; } ; #define DES_BLOCKLEN 8 #define DES_KEYSIZE 8 #define DES3_BLOCKLEN 8 #define DES3_KEYSIZE 24 /* * Keys are always 8- or 24-byte data blobs, * in which the low(!) bit of each byte is ignored. * * op arguments to des and des3 are ENCRYPT or DECRYPT. */ #define DECRYPT 0 #define ENCRYPT 1 /* rsadestable(table,key) this computes a data blob identical to librsa32's deskey() */ extern void rsadestable(void *, const void *); /* rsades3table(table,key) this computes a data blob identical to librsa32's tripledes3key() */ extern void rsades3table(void *, const void *); /* des(out,in,key,op) */ extern void des(void *, const void *, const void *, int); /* des3(out,in,key,op) */ extern void des3(void *, const void *, const void *, int); #endif