Merge from vendor branch LUKEMFTP:
[dragonfly.git] / sys / opencrypto / skipjack.h
1 /*      $FreeBSD: src/sys/opencrypto/skipjack.h,v 1.1.2.1 2002/11/21 23:34:23 sam Exp $ */
2 /*      $DragonFly: src/sys/opencrypto/skipjack.h,v 1.2 2003/06/17 04:28:54 dillon Exp $        */
3 /*      $OpenBSD: skipjack.h,v 1.3 2002/03/14 01:26:51 millert Exp $    */
4
5 /* 
6  * Further optimized test implementation of SKIPJACK algorithm 
7  * Mark Tillotson <markt@chaos.org.uk>, 25 June 98
8  * Optimizations suit RISC (lots of registers) machine best.
9  *
10  * based on unoptimized implementation of
11  * Panu Rissanen <bande@lut.fi> 960624
12  *
13  * SKIPJACK and KEA Algorithm Specifications 
14  * Version 2.0 
15  * 29 May 1998
16 */
17
18 extern void skipjack_forwards(u_int8_t *plain, u_int8_t *cipher, u_int8_t **key);
19 extern void skipjack_backwards(u_int8_t *cipher, u_int8_t *plain, u_int8_t **key);
20 extern void subkey_table_gen(u_int8_t *key, u_int8_t **key_tables);