Replace library/asn1.php with phpseclib

This commit is contained in:
Philipp
2020-09-12 11:57:37 +02:00
parent 0af08ac1d4
commit 11ef3895f5
9 changed files with 197 additions and 455 deletions

View File

@@ -229,7 +229,7 @@ class Salmon
*/
public static function salmonKey($pubkey)
{
Crypto::pemToMe($pubkey, $m, $e);
return 'RSA' . '.' . Strings::base64UrlEncode($m, true) . '.' . Strings::base64UrlEncode($e, true);
Crypto::pemToMe($pubkey, $modulus, $exponent);
return 'RSA' . '.' . Strings::base64UrlEncode($modulus, true) . '.' . Strings::base64UrlEncode($exponent, true);
}
}