From 78de87f74cc1a9cfffb9a198509f2e6697b8bca8 Mon Sep 17 00:00:00 2001 From: jbj Date: Tue, 18 Sep 2001 19:23:46 +0000 Subject: Initial revision CVS patchset: 5051 CVS date: 2001/09/18 19:23:46 --- beecrypt/rsa.h | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 beecrypt/rsa.h (limited to 'beecrypt/rsa.h') 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 + * + * 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 -- cgit v1.2.3