Beispiel #1
0
void des(unsigned char *inblock, unsigned char *outblock)
{
    unsigned long work[2];
    scrunch(inblock, work);
    desfunc(work, KnL);
    unscrun(work, outblock);
    return;
}
Beispiel #2
0
void D3DES::des(const uint8_t * inblock, uint8_t * outblock) {
	unsigned long work[2];

	scrunch(inblock, work);
	desfunc(work, KnL);
	unscrun(work, outblock);
	return;
}
Beispiel #3
0
	// -----------------------------------------------------------------------
	// 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);
	}
Beispiel #4
0
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;
}