diff options
author | jbj <devnull@localhost> | 2001-09-18 19:23:46 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-09-18 19:23:46 +0000 |
commit | 78de87f74cc1a9cfffb9a198509f2e6697b8bca8 (patch) | |
tree | c2be7e2aeda8290b9108dba15750ee5af72f9d4f /beecrypt/rsa.h | |
parent | 38edc494525ccdf25f11ed2288378ba640928900 (diff) | |
download | librpm-tizen-78de87f74cc1a9cfffb9a198509f2e6697b8bca8.tar.gz librpm-tizen-78de87f74cc1a9cfffb9a198509f2e6697b8bca8.tar.bz2 librpm-tizen-78de87f74cc1a9cfffb9a198509f2e6697b8bca8.zip |
Initial revision
CVS patchset: 5051
CVS date: 2001/09/18 19:23:46
Diffstat (limited to 'beecrypt/rsa.h')
-rw-r--r-- | beecrypt/rsa.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/beecrypt/rsa.h b/beecrypt/rsa.h new file mode 100644 index 000000000..2722620f4 --- /dev/null +++ b/beecrypt/rsa.h @@ -0,0 +1,47 @@ +/* + * rsa.h + * + * RSA encryption & signature scheme, header + * + * Copyright (c) 2000 Virtual Unlimited B.V. + * + * Author: Bob Deblier <bob@virtualunlimited.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +#ifndef _RSA_H +#define _RSA_H + +#include "rsakp.h" + +#ifdef __cplusplus +extern "C" { +#endif + +BEEDLLAPI +int rsapri (const rsakp* kp, const mp32number* m, mp32number* c); +BEEDLLAPI +int rsapricrt(const rsakp* kp, const mp32number* m, mp32number* c); + +BEEDLLAPI +int rsavrfy (const rsapk* pk, const mp32number* m, const mp32number* c); + +#ifdef __cplusplus +} +#endif + +#endif |