secsplit.h

来自「通訊保密編碼library project code.完整library pro」· C头文件 代码 · 共 32 行

H
32
字号
#ifndef SECSPLIT_H
#define SECSPLIT_H

#include "forkjoin.h"

class SplitFork : public Fork
{
public:
    SplitFork(RandomNumberGenerator &inRng, int n)
        : Fork(n), rng(inRng) {}
    SplitFork(RandomNumberGenerator &inRng, int n, BufferedTransformation *const *outports)
        : Fork(n, outports), rng(inRng) {}

    void Put(byte inByte);
    void Put(const byte *inString, unsigned int length);

private:
    RandomNumberGenerator &rng;
};

class SplitJoin : public Join
{
public:
    SplitJoin(int n, BufferedTransformation *outQ=new ByteQueue)
        : Join(n, outQ) {}

    void NotifyInput(int interfaceId, unsigned int length);
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?