|
Packit Service |
e737ee |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
|
|
Packit Service |
e737ee |
/* lib/crypto/builtin/des/des_keys.c - Key functions used by Kerberos code */
|
|
Packit Service |
e737ee |
/*
|
|
Packit Service |
e737ee |
* Copyright (C) 2011 by the Massachusetts Institute of Technology.
|
|
Packit Service |
e737ee |
* All rights reserved.
|
|
Packit Service |
e737ee |
*
|
|
Packit Service |
e737ee |
* Export of this software from the United States of America may
|
|
Packit Service |
e737ee |
* require a specific license from the United States Government.
|
|
Packit Service |
e737ee |
* It is the responsibility of any person or organization contemplating
|
|
Packit Service |
e737ee |
* export to obtain such a license before exporting.
|
|
Packit Service |
e737ee |
*
|
|
Packit Service |
e737ee |
* WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
|
|
Packit Service |
e737ee |
* distribute this software and its documentation for any purpose and
|
|
Packit Service |
e737ee |
* without fee is hereby granted, provided that the above copyright
|
|
Packit Service |
e737ee |
* notice appear in all copies and that both that copyright notice and
|
|
Packit Service |
e737ee |
* this permission notice appear in supporting documentation, and that
|
|
Packit Service |
e737ee |
* the name of M.I.T. not be used in advertising or publicity pertaining
|
|
Packit Service |
e737ee |
* to distribution of the software without specific, written prior
|
|
Packit Service |
e737ee |
* permission. Furthermore if you modify this software you must label
|
|
Packit Service |
e737ee |
* your software as modified software and not distribute it in such a
|
|
Packit Service |
e737ee |
* fashion that it might be confused with the original M.I.T. software.
|
|
Packit Service |
e737ee |
* M.I.T. makes no representations about the suitability of
|
|
Packit Service |
e737ee |
* this software for any purpose. It is provided "as is" without express
|
|
Packit Service |
e737ee |
* or implied warranty.
|
|
Packit Service |
e737ee |
*/
|
|
Packit Service |
e737ee |
|
|
Packit Service |
e737ee |
#include "crypto_int.h"
|
|
Packit Service |
e737ee |
#include "des_int.h"
|
|
Packit Service |
e737ee |
|
|
Packit Service |
e737ee |
void
|
|
Packit Service |
e737ee |
k5_des_fixup_key_parity(unsigned char *keybits)
|
|
Packit Service |
e737ee |
{
|
|
Packit Service |
e737ee |
mit_des_fixup_key_parity(keybits);
|
|
Packit Service |
e737ee |
}
|
|
Packit Service |
e737ee |
|
|
Packit Service |
e737ee |
krb5_boolean
|
|
Packit Service |
e737ee |
k5_des_is_weak_key(unsigned char *keybits)
|
|
Packit Service |
e737ee |
{
|
|
Packit Service |
e737ee |
return mit_des_is_weak_key(keybits);
|
|
Packit Service |
e737ee |
}
|