ex1
This commit is contained in:
21
tp2/spn.h
Normal file
21
tp2/spn.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef _SPN_H
|
||||
#define _SPN_H
|
||||
|
||||
unsigned char do_perm(unsigned char w, unsigned char perm[16]);
|
||||
unsigned char do_subst(unsigned char w, unsigned char subst[16]);
|
||||
|
||||
unsigned short encrypt(
|
||||
unsigned short w,
|
||||
unsigned int key,
|
||||
unsigned char perm[16],
|
||||
unsigned char subst[16]
|
||||
);
|
||||
|
||||
unsigned short decrypt(
|
||||
unsigned short w,
|
||||
unsigned int key,
|
||||
unsigned char perm[16],
|
||||
unsigned char subst[16]
|
||||
);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user