Checked in some junk. Sorry.
This commit is contained in:
parent
98d0b2e375
commit
4e3b0992da
@ -227,10 +227,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
for (v = 0; v < 3; v++)
|
for (v = 0; v < 3; v++)
|
||||||
{
|
{
|
||||||
#if 1
|
|
||||||
key = RSA_generate_key(512*(v+1),3,0,0);
|
|
||||||
clen=RSA_size(key);
|
|
||||||
#else
|
|
||||||
key = RSA_new();
|
key = RSA_new();
|
||||||
switch (v) {
|
switch (v) {
|
||||||
case 0:
|
case 0:
|
||||||
@ -243,7 +239,6 @@ int main(int argc, char *argv[])
|
|||||||
clen = key3(key, ctext_ex);
|
clen = key3(key, ctext_ex);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
num = RSA_public_encrypt(plen, ptext_ex, ctext, key,
|
num = RSA_public_encrypt(plen, ptext_ex, ctext, key,
|
||||||
RSA_PKCS1_PADDING);
|
RSA_PKCS1_PADDING);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user