| 417 | XorDecodeBuf(buffer,size); |
| 418 | } |
| 419 | void 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 | //! @} |
no test coverage detected