2
* Copyright (C) 1997,1998 by Werner Koch (dd9jn)
3
* Copyright (C) 2000, 2001 Free Software Foundation, Inc.
5
* This file is part of GnuPG.
7
* GnuPG is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
12
* GnuPG is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
24
int rsa_generate( int algo, unsigned nbits, MPI *skey, MPI **retfactors );
25
int rsa_check_secret_key( int algo, MPI *skey );
26
int rsa_encrypt( int algo, MPI *resarr, MPI data, MPI *pkey );
27
int rsa_decrypt( int algo, MPI *result, MPI *data, MPI *skey );
28
int rsa_sign( int algo, MPI *resarr, MPI data, MPI *skey );
29
int rsa_verify( int algo, MPI hash, MPI *data, MPI *pkey,
30
int (*cmp)(void *, MPI), void *opaquev );
31
unsigned rsa_get_nbits( int algo, MPI *pkey );
32
const char *rsa_get_info( int algo, int *npkey, int *nskey,
33
int *nenc, int *nsig, int *use );