mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-27 00:58:25 +00:00
- CRYPT_RSA_PUBLIC_FORMAT_XML didn't work correctly
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@184 21d32557-59b3-4da0-833f-c5933fad653e
This commit is contained in:
parent
a1f3ee7b69
commit
bc1c12357d
@ -798,8 +798,8 @@ class Crypt_RSA {
|
||||
return array('e' => $e->copy(), 'n' => $n->copy());
|
||||
case CRYPT_RSA_PUBLIC_FORMAT_XML:
|
||||
return "<RSAKeyValue>\r\n" .
|
||||
' <Modulus>' . base64_encode($raw['modulus']) . "</Modulus>\r\n" .
|
||||
' <Exponent>' . base64_encode($raw['publicExponent']) . "</Exponent>\r\n" .
|
||||
' <Modulus>' . base64_encode($modulus) . "</Modulus>\r\n" .
|
||||
' <Exponent>' . base64_encode($publicExponent) . "</Exponent>\r\n" .
|
||||
'</RSAKeyValue>';
|
||||
break;
|
||||
case CRYPT_RSA_PUBLIC_FORMAT_OPENSSH:
|
||||
|
Loading…
x
Reference in New Issue
Block a user