mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-12 09:09:39 +01:00
RSA: loading XML private keys didn't always work
This commit is contained in:
parent
30408ff8fb
commit
4de71168d8
@ -1311,9 +1311,6 @@ class Crypt_RSA {
|
|||||||
break;
|
break;
|
||||||
case 'D':
|
case 'D':
|
||||||
$this->current = &$this->components['privateExponent'];
|
$this->current = &$this->components['privateExponent'];
|
||||||
break;
|
|
||||||
default:
|
|
||||||
unset($this->current);
|
|
||||||
}
|
}
|
||||||
$this->current = '';
|
$this->current = '';
|
||||||
}
|
}
|
||||||
@ -1334,6 +1331,7 @@ class Crypt_RSA {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$this->current = new Math_BigInteger(base64_decode($this->current), 256);
|
$this->current = new Math_BigInteger(base64_decode($this->current), 256);
|
||||||
|
unset($this->current);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user