\r\n" .
- ' ' . base64_encode($n->toBytes()) . "\r\n" .
- ' ' . base64_encode($e->toBytes()) . "\r\n" .
- ' ' . base64_encode($primes[1]->toBytes()) . "
\r\n" .
- ' ' . base64_encode($primes[2]->toBytes()) . "
\r\n" .
- ' ' . base64_encode($exponents[1]->toBytes()) . "\r\n" .
- ' ' . base64_encode($exponents[2]->toBytes()) . "\r\n" .
- ' ' . base64_encode($coefficients[2]->toBytes()) . "\r\n" .
- ' ' . base64_encode($d->toBytes()) . "\r\n" .
+ ' ' . Base64::encode($n->toBytes()) . "\r\n" .
+ ' ' . Base64::encode($e->toBytes()) . "\r\n" .
+ ' ' . Base64::encode($primes[1]->toBytes()) . "
\r\n" .
+ ' ' . Base64::encode($primes[2]->toBytes()) . "
\r\n" .
+ ' ' . Base64::encode($exponents[1]->toBytes()) . "\r\n" .
+ ' ' . Base64::encode($exponents[2]->toBytes()) . "\r\n" .
+ ' ' . Base64::encode($coefficients[2]->toBytes()) . "\r\n" .
+ ' ' . Base64::encode($d->toBytes()) . "\r\n" .
'';
}
@@ -139,8 +140,8 @@ class XML
static function savePublicKey(BigInteger $n, BigInteger $e)
{
return "