aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-02-04 21:49:25 +0100
committerMario Vavti <mario@mariovavti.com>2021-02-04 21:49:25 +0100
commit03e1f5f8a41c88e8feea19784d7521435e7e4b2e (patch)
tree6dc792e3bb71784d0a7b13bc1671f6c68a61cff1
parent6bb73e14b6521ea7c2d4f77d2954e4f8744bb736 (diff)
downloadvolse-hubzilla-03e1f5f8a41c88e8feea19784d7521435e7e4b2e.tar.gz
volse-hubzilla-03e1f5f8a41c88e8feea19784d7521435e7e4b2e.tar.bz2
volse-hubzilla-03e1f5f8a41c88e8feea19784d7521435e7e4b2e.zip
remove unused function
-rw-r--r--include/crypto.php17
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) ;