2
* Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2008 Free Software Foundation
2
* Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2010 Free
3
* Software Foundation, Inc.
4
5
* Author: Nikos Mavrogiannopoulos
6
* This file is part of GNUTLS.
7
* This file is part of GnuTLS.
8
* The GNUTLS library is free software; you can redistribute it and/or
9
* The GnuTLS is free software; you can redistribute it and/or
9
10
* modify it under the terms of the GNU Lesser General Public License
10
11
* as published by the Free Software Foundation; either version 2.1 of
11
12
* the License, or (at your option) any later version.
30
31
extern int crypto_cipher_prio;
31
32
extern gnutls_crypto_cipher_st _gnutls_cipher_ops;
34
gnutls_crypto_single_cipher_st* cc;
36
const gnutls_crypto_single_cipher_st *cc;
39
int registered; /* true or false(0) */
41
void* gc; /* when not registered */
42
reg_hd rh; /* when registered */
42
int registered; /* true or false(0) */
45
void *gc; /* when not registered */
46
reg_hd rh; /* when registered */
46
int _gnutls_cipher_init (cipher_hd_st*, gnutls_cipher_algorithm_t cipher,
47
const gnutls_datum_t * key,
48
const gnutls_datum_t * iv);
49
int _gnutls_cipher_encrypt (const cipher_hd_st *handle, void *text, int textlen);
50
int _gnutls_cipher_decrypt (const cipher_hd_st *handle, void *ciphertext,
50
int _gnutls_cipher_init (cipher_hd_st *, gnutls_cipher_algorithm_t cipher,
51
const gnutls_datum_t * key,
52
const gnutls_datum_t * iv);
53
int _gnutls_cipher_encrypt (const cipher_hd_st * handle, void *text,
55
int _gnutls_cipher_decrypt (const cipher_hd_st * handle, void *ciphertext,
51
56
int ciphertextlen);
52
void _gnutls_cipher_deinit (cipher_hd_st* handle);
57
void _gnutls_cipher_deinit (cipher_hd_st * handle);
54
59
#endif /* GNUTLS_CIPHER_INT */