APL/DEV 4.4/TP02/Ex1/spn.h

21 lines
403 B
C
Raw Permalink Normal View History

2023-03-24 16:04:40 +01:00
#ifndef _SPN_H
#define _SPN_H
unsigned char do_perm(unsigned char w,unsigned char perm[8]);
unsigned char do_subst(unsigned char w,unsigned char subst[16]);
unsigned char encrypt(
unsigned char w,
unsigned short key,
unsigned char perm[8],
unsigned char subst[16]
);
unsigned char decrypt(
unsigned char w,
unsigned short key,
unsigned char perm[8],
unsigned char subst[16]
);
#endif