boolValidateRC2(){std::cout<<"\nRC2 validation suite running...\n\n";FileSourcevaldata("TestData/rc2val.dat",true,newHexDecoder);HexEncoderoutput(newFileSink(std::cout));SecByteBlockplain(RC2Encryption::BLOCKSIZE),cipher(RC2Encryption::BLOCKSIZE),out(RC2Encryption::BLOCKSIZE),outplain(RC2E...
s20.encrypt12(ZERO_KEY,macKey,sizeof(macKey)); Poly1305::compute(mac,payload,payloadLen,macKey);if(!Utils::secureEq(mac,field(ZT_PACKET_IDX_MAC,8),8))returnfalse;if(cs == ZT_PROTO_CIPHER_SUITE__C25519_POLY1305_SALSA2012) s20.decrypt12(payload,payload,payloadLen);returntrue; }elseretur...