/* * Copyright 1989 by the Massachusetts Institute of Technology. * * For copying and distribution information, please see the file * . * * These routines check and fix parity of encryption keys for the DES * algorithm. * * Under U.S. law, this software may not be exported outside the US * without license from the U.S. Commerce department. * * These routines form the library interface to the DES facilities. * */ #include #include RCSID("$Header$"); #include #include #include "des_internal.h" #include "odd.h" /* Load compile-time generated odd_parity table */ /* * des_fixup_key_parity: Forces odd parity per byte; parity is bits * 8,16,...64 in des order, implies 0, 8, 16, ... * vax order. */ void des_fixup_key_parity(key) register des_cblock key; { int i; for (i=0; i