Skip to content
Snippets Groups Projects
Commit 9c3dac44 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Added {cooked_,}get_{n,e}() to the API.

Rev: lib/modules/Crypto/_rsa.pike:1.2
parent 5b43d998
No related branches found
No related tags found
No related merge requests found
/* $Id: _rsa.pike,v 1.1 2000/05/04 11:22:56 grubba Exp $
/* $Id: _rsa.pike,v 1.2 2000/05/04 16:05:28 grubba Exp $
*
* Follow the PKCS#1 standard for padding and encryption.
*/
......@@ -18,7 +18,25 @@ int size;
bignum p;
bignum q;
int encrypt_mode; /* For block cipher compatible functions */
bignum get_n()
{
return n;
}
bignum get_e()
{
return e;
}
string cooked_get_n()
{
return n->digits(256);
}
string cooked_get_e()
{
return e->digits(256);
}
object set_public_key(bignum modulo, bignum pub)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment