|
Packit Service |
99d1c0 |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
|
|
Packit Service |
99d1c0 |
/*
|
|
Packit Service |
99d1c0 |
* Copyright (C) 1998 by the FundsXpress, INC.
|
|
Packit Service |
99d1c0 |
*
|
|
Packit Service |
99d1c0 |
* All rights reserved.
|
|
Packit Service |
99d1c0 |
*
|
|
Packit Service |
99d1c0 |
* Export of this software from the United States of America may require
|
|
Packit Service |
99d1c0 |
* a specific license from the United States Government. It is the
|
|
Packit Service |
99d1c0 |
* responsibility of any person or organization contemplating export to
|
|
Packit Service |
99d1c0 |
* obtain such a license before exporting.
|
|
Packit Service |
99d1c0 |
*
|
|
Packit Service |
99d1c0 |
* WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
|
|
Packit Service |
99d1c0 |
* distribute this software and its documentation for any purpose and
|
|
Packit Service |
99d1c0 |
* without fee is hereby granted, provided that the above copyright
|
|
Packit Service |
99d1c0 |
* notice appear in all copies and that both that copyright notice and
|
|
Packit Service |
99d1c0 |
* this permission notice appear in supporting documentation, and that
|
|
Packit Service |
99d1c0 |
* the name of FundsXpress. not be used in advertising or publicity pertaining
|
|
Packit Service |
99d1c0 |
* to distribution of the software without specific, written prior
|
|
Packit Service |
99d1c0 |
* permission. FundsXpress makes no representations about the suitability of
|
|
Packit Service |
99d1c0 |
* this software for any purpose. It is provided "as is" without express
|
|
Packit Service |
99d1c0 |
* or implied warranty.
|
|
Packit Service |
99d1c0 |
*
|
|
Packit Service |
99d1c0 |
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
|
|
Packit Service |
99d1c0 |
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
|
Packit Service |
99d1c0 |
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
|
Packit Service |
99d1c0 |
*/
|
|
Packit Service |
99d1c0 |
|
|
Packit Service |
99d1c0 |
#include "crypto_int.h"
|
|
Packit Service |
99d1c0 |
|
|
Packit Service |
99d1c0 |
krb5_error_code KRB5_CALLCONV
|
|
Packit Service |
99d1c0 |
krb5_c_block_size(krb5_context context, krb5_enctype enctype,
|
|
Packit Service |
99d1c0 |
size_t *blocksize)
|
|
Packit Service |
99d1c0 |
{
|
|
Packit Service |
99d1c0 |
const struct krb5_keytypes *ktp;
|
|
Packit Service |
99d1c0 |
|
|
Packit Service |
99d1c0 |
ktp = find_enctype(enctype);
|
|
Packit Service |
99d1c0 |
if (ktp == NULL)
|
|
Packit Service |
99d1c0 |
return KRB5_BAD_ENCTYPE;
|
|
Packit Service |
99d1c0 |
*blocksize = ktp->enc->block_size;
|
|
Packit Service |
99d1c0 |
|
|
Packit Service |
99d1c0 |
return 0;
|
|
Packit Service |
99d1c0 |
}
|