MCPcopy Create free account
hub / github.com/Segs/Segs / DesDecode

Method DesDecode

Projects/CoX/Common/AuthProtocol/AuthPacketCodec.cpp:419–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417 XorDecodeBuf(buffer,size);
418}
419void AuthPacketCodec::DesDecode(unsigned char *in_block,size_t size) const
420{
421 size_t blocks = size>>3;
422 unsigned long work[2];
423 unsigned char *cp;
424 cp = in_block;
425 for(size_t i=0;i<blocks;i++)
426 {
427 scrunch(cp,work);
428 desfunc(work,m_tDesContext.dk);
429 unscrun(work,cp);
430 cp+=8;
431 }
432
433}
434
435//! @}

Callers 1

bytes_to_eventFunction · 0.80

Calls 3

scrunchFunction · 0.85
desfuncFunction · 0.85
unscrunFunction · 0.85

Tested by

no test coverage detected