91416784e4
a consistent interface to h/w and s/w crypto algorithms for use by the kernel and (for h/w at least) by user-mode apps. Access for user-level code is through a /dev/crypto device that'll eventually be used by openssl to (potentially) accelerate many applications. Coming soon is an IPsec that makes use of this service to accelerate ESP, AH, and IPCOMP protocols. Included here is the "core" crypto support, /dev/crypto driver, various crypto algorithms that are not already present in the KAME crypto area, and support routines used by crypto device drivers. Obtained from: openbsd
20 lines
666 B
C
20 lines
666 B
C
/* $FreeBSD$ */
|
|
/* $OpenBSD: skipjack.h,v 1.3 2002/03/14 01:26:51 millert Exp $ */
|
|
|
|
/*
|
|
* Further optimized test implementation of SKIPJACK algorithm
|
|
* Mark Tillotson <markt@chaos.org.uk>, 25 June 98
|
|
* Optimizations suit RISC (lots of registers) machine best.
|
|
*
|
|
* based on unoptimized implementation of
|
|
* Panu Rissanen <bande@lut.fi> 960624
|
|
*
|
|
* SKIPJACK and KEA Algorithm Specifications
|
|
* Version 2.0
|
|
* 29 May 1998
|
|
*/
|
|
|
|
extern void skipjack_forwards(u_int8_t *plain, u_int8_t *cipher, u_int8_t **key);
|
|
extern void skipjack_backwards(u_int8_t *cipher, u_int8_t *plain, u_int8_t **key);
|
|
extern void subkey_table_gen(u_int8_t *key, u_int8_t **key_tables);
|