2 * Copyright (C) 1997,1998 by Werner Koch (dd9jn)
3 * Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
5 * This file is part of Libgcrypt.
7 * Libgcrypt is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
12 * Libgcrypt 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 Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License 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 _gcry_rsa_generate( int algo
, unsigned int nbits
, unsigned long use_e
,
25 MPI
*skey
, MPI
**retfactors
);
26 int _gcry_rsa_check_secret_key( int algo
, MPI
*skey
);
27 int _gcry_rsa_encrypt( int algo
, MPI
*resarr
, MPI data
, MPI
*pkey
, int flags
);
28 int _gcry_rsa_decrypt( int algo
, MPI
*result
, MPI
*data
, MPI
*skey
, int flags
);
29 int _gcry_rsa_sign( int algo
, MPI
*resarr
, MPI data
, MPI
*skey
);
30 int _gcry_rsa_verify( int algo
, MPI hash
, MPI
*data
, MPI
*pkey
,
31 int (*cmp
)(void *, MPI
), void *opaquev
);
32 unsigned _gcry_rsa_get_nbits( int algo
, MPI
*pkey
);
33 const char *_gcry_rsa_get_info( int algo
, int *npkey
, int *nskey
,
34 int *nenc
, int *nsig
, int *use
);