chain.cpp

来自「含有多种公开密钥算法、多种块加密、多种数据流加密、多种HASH函数、多种Chec」· C++ 代码 · 共 35 行

CPP
35 行
字号
/************************************************** Chain Source File                              ** (C) 1999-2002 The Botan Project                **************************************************/#include <botan/chain.h>namespace Botan {/************************************************** Chain Constructor                              **************************************************/Chain::Chain(Filter* f1, Filter* f2, Filter* f3, Filter* f4)   {   if(f1) { attach(f1); set_owns(owns() + 1); }   if(f2) { attach(f2); set_owns(owns() + 1); }   if(f3) { attach(f3); set_owns(owns() + 1); }   if(f4) { attach(f4); set_owns(owns() + 1); }   }/************************************************** Chain Constructor                              **************************************************/Chain::Chain(Filter* filters[], u32bit count)   {   for(u32bit j = 0; j != count; j++)      if(filters[j])         {         attach(filters[j]);         set_owns(owns() + 1);         }   }}

⌨️ 快捷键说明

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