From 03e1f5f8a41c88e8feea19784d7521435e7e4b2e Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 4 Feb 2021 21:49:25 +0100 Subject: remove unused function --- include/crypto.php | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'include') 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) ; -- cgit v1.2.3