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

Avoid "Type error: 99"...

Rev: lib/modules/Crypto/rsa.pike:1.25
parent 098f8e73
Branches
Tags
No related merge requests found
/* $Id: rsa.pike,v 1.24 2000/06/20 13:03:05 grubba Exp $ /* $Id: rsa.pike,v 1.25 2000/06/20 15:13:10 grubba Exp $
* *
* Follow the PKCS#1 standard for padding and encryption. * Follow the PKCS#1 standard for padding and encryption.
*/ */
...@@ -285,7 +285,8 @@ string cooked_get_q() ...@@ -285,7 +285,8 @@ string cooked_get_q()
object set_private_key(bignum priv, array(bignum)|void extra) object set_private_key(bignum priv, array(bignum)|void extra)
{ {
if (extra) { if (extra) {
[p, q] = extra[..1]; p = extra[0];
q = extra[1];
} }
return ::set_private_key(priv); return ::set_private_key(priv);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment