diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/crypto.php | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/include/crypto.php b/include/crypto.php index 66bd113bc..e2132337f 100644 --- a/include/crypto.php +++ b/include/crypto.php @@ -366,23 +366,6 @@ function pemtome($key,&$m,&$e) { } -/** - * @param string $m modulo - * @param string $e exponent - * @return string - */ -function metorsa($m,$e) { - - $rsa = new RSA(); - $rsa->loadKey([ - 'e' => new BigInteger($e, 256), - 'n' => new BigInteger($m, 256) - ]); - return $rsa->getPublicKey(RSA::PUBLIC_FORMAT_PKCS1); - -} - - function salmon_key($pubkey) { pemtome($pubkey,$m,$e); return 'RSA' . '.' . base64url_encode($m,true) . '.' . base64url_encode($e,true) ; |