void des(unsigned char *inblock, unsigned char *outblock) { unsigned long work[2]; scrunch(inblock, work); desfunc(work, KnL); unscrun(work, outblock); return; }
void D3DES::des(const uint8_t * inblock, uint8_t * outblock) { unsigned long work[2]; scrunch(inblock, work); desfunc(work, KnL); unscrun(work, outblock); return; }
// ----------------------------------------------------------------------- // des_block // Encrpts/Decrypts(according to the key currently loaded int the // internal key register) one block of eight bytes at address 'in' // into the block at address 'out'. They can be the same. // // "in" // "out" // ----------------------------------------------------------------------- void DES::des_block(unsigned char *in, unsigned char *out) { unsigned long work[2]; scrunch(in, work); desfunc(work, KnL); unscrun(work, out); }
void des (DESContext * ctx, unsigned char *inblock, unsigned char *outblock) { unsigned long work[2]; scrunch (inblock, work); desfunc (work, ctx->KnL); unscrun (work, outblock); return; }