2 * Copyright (C) 1998, 2001 Free Software Foundation, Inc.
4 * This file is part of Libgcrypt.
6 * Libgcrypt is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * Libgcrypt is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
20 #ifndef G10_CIPHER_DYNLOAD_H
21 #define G10_CIPHER_DYNLOAD_H
26 void _gcry_register_internal_cipher_extension( const char *module_id,
27 void * (*enumfunc)(int, int*, int*, int*) );
30 _gcry_enum_gnupgext_digests( void **enum_context,
32 const char *(**r_get_info)( int, size_t*,byte**, int*, int*,
34 void (**)(void*,byte*,size_t),
35 void (**)(void*),byte *(**)(void*)) );
38 _gcry_enum_gnupgext_ciphers( void **enum_context, int *algo,
39 size_t *keylen, size_t *blocksize, size_t *contextsize,
40 int (**setkeyf)( void *c, byte *key, unsigned keylen ),
41 void (**encryptf)( void *c, byte *outbuf, byte *inbuf ),
42 void (**decryptf)( void *c, byte *outbuf, byte *inbuf )
47 _gcry_enum_gnupgext_pubkeys( void **enum_context, int *algo,
48 int *npkey, int *nskey, int *nenc, int *nsig, int *use,
49 int (**generate)( int algo, unsigned nbits, MPI *skey, MPI **retfactors ),
50 int (**check_secret_key)( int algo, MPI *skey ),
51 int (**encryptf)( int algo, MPI *resarr, MPI data, MPI *pkey ),
52 int (**decryptf)( int algo, MPI *result, MPI *data, MPI *skey ),
53 int (**sign)( int algo, MPI *resarr, MPI data, MPI *skey ),
54 int (**verify)( int algo, MPI hash, MPI *data, MPI *pkey,
55 int (*cmp)(void *, MPI), void *opaquev ),
56 unsigned (**get_nbits)( int algo, MPI *pkey ) );
59 int (*_gcry_dynload_getfnc_gather_random(void))( void (*)(const void*, size_t, int),
61 void (*_gcry_dynload_getfnc_fast_random_poll(void)
62 )( void (*)(const void*, size_t, int), int );
65 /** This function is in construct.c **/
66 void _gcry_cipher_modules_constructor(void);
68 #endif /*G10_CIPHER_DYNLOAD_H*/