diff options
author | Mario Vavti <mario@mariovavti.com> | 2021-02-04 21:49:25 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2021-02-04 21:49:25 +0100 |
commit | 03e1f5f8a41c88e8feea19784d7521435e7e4b2e (patch) | |
tree | 6dc792e3bb71784d0a7b13bc1671f6c68a61cff1 /include/crypto.php | |
parent | 6bb73e14b6521ea7c2d4f77d2954e4f8744bb736 (diff) | |
download | volse-hubzilla-03e1f5f8a41c88e8feea19784d7521435e7e4b2e.tar.gz volse-hubzilla-03e1f5f8a41c88e8feea19784d7521435e7e4b2e.tar.bz2 volse-hubzilla-03e1f5f8a41c88e8feea19784d7521435e7e4b2e.zip |
remove unused function
Diffstat (limited to 'include/crypto.php')
-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) ; |