turingapi.h
来自「au1200 linux2.6.11 硬件解码mae驱动和maiplayer播放」· C头文件 代码 · 共 31 行
H
31 行
#include "Turing.h"
class TuringCipher
{
public:
TuringCipher();
void TuringKey(const unsigned char key[], const int keylength);
void TuringIV(const unsigned char iv[], const int ivlength);
int TuringGen(unsigned char *buf);
unsigned long S(unsigned long w, int r);
unsigned long block_index;
unsigned long block_offset;
unsigned char stream_id;
private:
/* step the LFSR */
void step(void);
int keylen; /* adjusted to count WORDs */
unsigned long K[MAXKEY/4]; /* storage for mixed key */
unsigned long R[LFSRLEN]; /* the shift register */
/* precalculated S-boxes */
unsigned long S0[256];
unsigned long S1[256];
unsigned long S2[256];
unsigned long S3[256];
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?