mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-18 14:01:59 +01:00
2155bb238f
Keep xform.c as a meta-file including the broken out bits existing code that includes xform.c continues to work as normal Individual algorithms can now be reused elsewhere, including outside of the kernel Reviewed by: bapt (previous version), gnn, delphij Approved by: secteam MFC after: 1 week Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D4674
25 lines
717 B
C
25 lines
717 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
|
|
*/
|
|
|
|
#ifndef _SKIPJACK_H_
|
|
#define _SKIPJACK_H_
|
|
|
|
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);
|
|
|
|
#endif
|