📄 skipjack.h
字号:
#ifndef CRYPTOPP_SKIPJACK_H
#define CRYPTOPP_SKIPJACK_H
/** \file
*/
#include "cryptlib.h"
#include "misc.h"
NAMESPACE_BEGIN(CryptoPP)
/// base class, do not use directly
class SKIPJACK : public FixedBlockSize<8>, public FixedKeyLength<10>
{
protected:
SKIPJACK(const byte *userKey);
static const byte fTable[256];
SecBlock<byte[256]> tab;
};
/// <a href="http://www.weidai.com/scan-mirror/cs.html#SKIPJACK">SKIPJACK</a>
class SKIPJACKEncryption : public SKIPJACK
{
public:
SKIPJACKEncryption(const byte *userKey, unsigned int = 0)
: SKIPJACK(userKey) {}
void ProcessBlock(const byte *inBlock, byte * outBlock) const;
void ProcessBlock(byte * inoutBlock) const
{SKIPJACKEncryption::ProcessBlock(inoutBlock, inoutBlock);}
};
/// <a href="http://www.weidai.com/scan-mirror/cs.html#SKIPJACK">SKIPJACK</a>
class SKIPJACKDecryption : public SKIPJACK
{
public:
SKIPJACKDecryption(const byte *userKey, unsigned int = 0)
: SKIPJACK(userKey) {}
void ProcessBlock(const byte *inBlock, byte * outBlock) const;
void ProcessBlock(byte * inoutBlock) const
{SKIPJACKDecryption::ProcessBlock(inoutBlock, inoutBlock);}
};
NAMESPACE_END
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -