diff options
author | John Kohl <jtkohl@mit.edu> | 1991-03-14 10:00:20 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1991-03-14 10:00:20 +0000 |
commit | 0d617fc8545f08c44c2a6aef482097fc7287a65f (patch) | |
tree | e5f5b5a0875c186a864258d21adcd462a3cfb8c0 /src/lib/des425/weak_key.c | |
parent | b79fbdc3e1d570e26053285530894ecf6935685b (diff) | |
download | krb5-0d617fc8545f08c44c2a6aef482097fc7287a65f.tar.gz krb5-0d617fc8545f08c44c2a6aef482097fc7287a65f.tar.xz krb5-0d617fc8545f08c44c2a6aef482097fc7287a65f.zip |
*** empty log message ***
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1890 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/des425/weak_key.c')
-rw-r--r-- | src/lib/des425/weak_key.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/lib/des425/weak_key.c b/src/lib/des425/weak_key.c new file mode 100644 index 000000000..74b0fc883 --- /dev/null +++ b/src/lib/des425/weak_key.c @@ -0,0 +1,37 @@ +/* + * $Source$ + * $Author$ + * + * Copyright 1989,1990 by the Massachusetts Institute of Technology. + * All Rights Reserved. + * + * For copying and distribution information, please see the file + * <krb5/copyright.h>. + * + * 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. + * + * Originally written 8/85 by Steve Miller, MIT Project Athena. + */ + +#if !defined(lint) && !defined(SABER) +static char rcsid_weak_key_c[] = +"$Id$"; +#endif /* !lint & !SABER */ + +#include "des.h" +#include <krb5/ext-proto.h> + +/* + * mit_des_is_weak_key: returns true iff key is a [semi-]weak des key. + * + * Requires: key has correct odd parity. + */ +int +des_is_weak_key(key) + mit_des_cblock key; +{ + return (mit_des_is_weak_key(key)); +} |