Skip to content
Snippets Groups Projects
Forked from Nettle / nettle
4703 commits behind the upstream repository.
  • Niels Möller's avatar
    2ed0c4b5
    Hacked configure scripts, makefiles and crypto_types.h. · 2ed0c4b5
    Niels Möller authored
    Rev: src/symmetric/Makefile.in:1.2
    Rev: src/symmetric/cast.c:1.2
    Rev: src/symmetric/configure.in:1.2
    Rev: src/symmetric/desCode.h:1.2
    Rev: src/symmetric/desKerb.c:1.2
    Rev: src/symmetric/desQuick.c:1.2
    Rev: src/symmetric/desUtil.c:1.2
    Rev: src/symmetric/desdata.c:1.2
    Rev: src/symmetric/idea.c:1.2
    Rev: src/symmetric/include/cast.h:1.2
    Rev: src/symmetric/include/crypto_types.h:1.2
    Rev: src/symmetric/include/des.h:1.2
    Rev: src/symmetric/include/idea.h:1.2
    Rev: src/symmetric/include/md5.h:1.2
    Rev: src/symmetric/include/rc4.h:1.2
    Rev: src/symmetric/include/sha.h:1.2
    Rev: src/symmetric/md5.c:1.2
    Rev: src/symmetric/rc4.c:1.2
    Rev: src/symmetric/sha.c:1.2
    2ed0c4b5
    History
    Hacked configure scripts, makefiles and crypto_types.h.
    Niels Möller authored
    Rev: src/symmetric/Makefile.in:1.2
    Rev: src/symmetric/cast.c:1.2
    Rev: src/symmetric/configure.in:1.2
    Rev: src/symmetric/desCode.h:1.2
    Rev: src/symmetric/desKerb.c:1.2
    Rev: src/symmetric/desQuick.c:1.2
    Rev: src/symmetric/desUtil.c:1.2
    Rev: src/symmetric/desdata.c:1.2
    Rev: src/symmetric/idea.c:1.2
    Rev: src/symmetric/include/cast.h:1.2
    Rev: src/symmetric/include/crypto_types.h:1.2
    Rev: src/symmetric/include/des.h:1.2
    Rev: src/symmetric/include/idea.h:1.2
    Rev: src/symmetric/include/md5.h:1.2
    Rev: src/symmetric/include/rc4.h:1.2
    Rev: src/symmetric/include/sha.h:1.2
    Rev: src/symmetric/md5.c:1.2
    Rev: src/symmetric/rc4.c:1.2
    Rev: src/symmetric/sha.c:1.2
desKerb.c 639 B
/*
 *	des - fast & portable DES encryption & decryption.
 *	Copyright (C) 1992  Dana L. How
 *	Please see the file `README' for the complete copyright notice.
 */

#include "des.h"

#include "RCSID.h"
RCSID2(desKerb_cRcs, "$Id$");

/* permit the default style of des functions to be changed */

DesFunc *DesCryptFuncs[2] = { DesSmallFipsDecrypt, DesSmallFipsEncrypt };

/* kerberos-compatible key schedule function */

int
des_key_sched(UINT8 *k, UINT32 *s)
{
	return DesMethod(s, k);
}

/* kerberos-compatible des coding function */

int
des_ecb_encrypt(UINT8 *s, UINT8 *d, UINT32 *r, int e)
{
	(*DesCryptFuncs[e])(d, r, s);
	return 0;
}