1997-12-12 12:03:58 +00:00
|
|
|
/* cast5.h
|
1998-02-24 18:50:46 +00:00
|
|
|
* Copyright (C) 1998 Free Software Foundation, Inc.
|
1997-12-12 12:03:58 +00:00
|
|
|
*
|
1998-02-24 18:50:46 +00:00
|
|
|
* This file is part of GNUPG.
|
1997-12-12 12:03:58 +00:00
|
|
|
*
|
1998-02-24 18:50:46 +00:00
|
|
|
* GNUPG is free software; you can redistribute it and/or modify
|
1997-12-12 12:03:58 +00:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
1998-02-24 18:50:46 +00:00
|
|
|
* GNUPG is distributed in the hope that it will be useful,
|
1997-12-12 12:03:58 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
|
|
|
*/
|
|
|
|
#ifndef G10_CAST5_H
|
|
|
|
#define G10_CAST5_H
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
#define CAST5_BLOCKSIZE 8
|
|
|
|
|
|
|
|
typedef struct {
|
1998-04-04 20:16:55 +00:00
|
|
|
u32 Km[16];
|
|
|
|
byte Kr[16];
|
1997-12-12 12:03:58 +00:00
|
|
|
} CAST5_context;
|
|
|
|
|
|
|
|
void cast5_setkey( CAST5_context *c, byte *key, unsigned keylen );
|
1998-04-07 18:16:10 +00:00
|
|
|
void cast5_encrypt_block( CAST5_context *bc, byte *outbuf, byte *inbuf );
|
|
|
|
void cast5_decrypt_block( CAST5_context *bc, byte *outbuf, byte *inbuf );
|
1997-12-12 12:03:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif /*G10_CAST5_H*/
|