base
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
|
||||
typedef struct rijndael_instance {
|
||||
int Nk,Nb,Nr;
|
||||
byte fi[24],ri[24];
|
||||
word32 fkey[120];
|
||||
word32 rkey[120];
|
||||
} RI;
|
||||
|
||||
/* void _mcrypt_rijndael_128_set_key(RI* rinst, int nb,int nk,byte *key); */
|
||||
/* blocksize=32*nb bits. Key=32*nk bits */
|
||||
/* currently nb,bk = 4, 6 or 8 */
|
||||
/* key comes as 4*Nk bytes */
|
||||
/* Key Scheduler. Create expanded encryption key */
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
#ifndef USE_MODULES
|
||||
int _ctr_init_mcrypt( int td, void* buf, void *key, int lenofkey, void *IV);
|
||||
int _mcrypt_ctr(int td, void* buf,void *plaintext, int len);
|
||||
int _mdecrypt_ctr(int td, void* buf, void *plaintext, int len);
|
||||
int _ctr_is_block_mode();
|
||||
int _ctr_has_iv();
|
||||
int _ctr_is_block_algorithm_mode();
|
||||
char *_mcrypt_ctr_get_modes_name();
|
||||
int _mcrypt_ctr_mode_get_size ();
|
||||
int _mcrypt_ctr_get_iv_size(int td);
|
||||
word32 _mcrypt_ctr_mode_version();
|
||||
#endif
|
||||
Reference in New Issue
Block a user