/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/DSA/Formats/Keys/ |
H A D | OpenSSH.php | 12 * @license http://www.opensource.org/licenses/mit-license.html MIT License 34 protected static $types = ['ssh-dss']; 53 list($p, $q, $g, $y, $x, $comment) = Strings::unpackSSH2('i5s', $parsed['paddedKey']); 55 return compact('p', 'q', 'g', 'y', 'x', 'comment'); 58 list($p, $q, $g, $y) = Strings::unpackSSH2('iiii', $parsed['publicKey']); 62 return compact('p', 'q', 'g', 'y', 'comment'); 69 * @param BigInteger $q 75 …public static function savePublicKey(BigInteger $p, BigInteger $q, BigInteger $g, BigInteger $y, a… argument 77 if ($q->getLength() != 160) { 78 …new \InvalidArgumentException('SSH only supports keys with an N (length of Group Order q) of 160'); [all …]
|
H A D | XML.php | 16 * @license http://www.opensource.org/licenses/mit-license.html MIT License 43 throw new \UnexpectedValueException('Key should be a string - not a ' . gettype($key)); 56 if (!$dom->loadXML($key)) { 61 $keys = ['p', 'q', 'g', 'y', 'j', 'seed', 'pgencounter']; 63 // $dom->getElementsByTagName($key) is case-sensitive 64 …$temp = $xpath->query("//*[translate(local-name(), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopq… 65 if (!$temp->length) { 68 $value = new BigInteger(Strings::base64_decode($temp->item(0)->nodeValue), 256); 71 … // Parameters P, Q, and G can be public and common to a group of users. They might be known 72 … // from application context. As such, they are optional but P and Q must either both appear [all …]
|
H A D | PuTTY.php | 15 * @license http://www.opensource.org/licenses/mit-license.html MIT License 44 protected static $types = ['ssh-dss']; 62 list($p, $q, $g, $y) = Strings::unpackSSH2('iiii', $public); 65 return compact('p', 'q', 'g', 'y', 'x', 'comment'); 72 * @param BigInteger $q 80 …public static function savePrivateKey(BigInteger $p, BigInteger $q, BigInteger $g, BigInteger $y, … argument 82 if ($q->getLength() != 160) { 83 …new \InvalidArgumentException('SSH only supports keys with an N (length of Group Order q) of 160'); 86 $public = Strings::packSSH2('iiii', $p, $q, $g, $y); 89 return self::wrapPrivateKey($public, $private, 'ssh-dss', $password, $options); [all …]
|
H A D | PKCS1.php | 12 * -----BEGIN DSA PRIVATE KEY----- 13 * -----BEGIN DSA PUBLIC KEY----- 14 * -----BEGIN DSA PARAMETERS----- 16 * Analogous to ssh-keygen's pem format (as specified by -m) 20 * we're just re-using that as the name. 24 * @license http://www.opensource.org/licenses/mit-license.html MIT License 81 * @param BigInteger $q 85 public static function saveParameters(BigInteger $p, BigInteger $q, BigInteger $g) argument 89 'q' => $q, 95 return "-----BEGIN DSA PARAMETERS-----\r\n" . [all …]
|
H A D | Raw.php | 12 * @license http://www.opensource.org/licenses/mit-license.html MIT License 37 throw new \UnexpectedValueException('Key should be a array - not a ' . gettype($key)); 41 case !isset($key['p']) || !isset($key['q']) || !isset($key['g']): 43 case !$key['q'] instanceof BigInteger: 51 $options = ['p' => 1, 'q' => 1, 'g' => 1, 'x' => 1, 'y' => 1]; 60 * @param BigInteger $q 67 …public static function savePrivateKey(BigInteger $p, BigInteger $q, BigInteger $g, BigInteger $y, … argument 69 return compact('p', 'q', 'g', 'y', 'x'); 76 * @param BigInteger $q 81 public static function savePublicKey(BigInteger $p, BigInteger $q, BigInteger $g, BigInteger $y) argument [all …]
|
H A D | PKCS8.php | 10 * -----BEGIN ENCRYPTED PRIVATE KEY----- 11 * -----BEGIN PRIVATE KEY----- 12 * -----BEGIN PUBLIC KEY----- 14 * Analogous to ssh-keygen's pkcs8 format (as specified by -m). Although PKCS8 15 * is specific to private keys it's basically creating a DER-encoded wrapper 16 * for keys. This just extends that same concept to public keys (much like ssh-keygen) 20 * @license http://www.opensource.org/licenses/mit-license.html MIT License 43 const OID_NAME = 'id-dsa'; 72 $decoded = ASN1::decodeBER($key[$type . 'Algorithm']['parameters']->element); 103 * @param BigInteger $q [all …]
|
/dokuwiki/lib/images/smileys/ |
H A D | deleteme.svg | 2 …9 32.001A4 4 0 0 1 144 36H3.999A3.999 3.999 0 0 1 0 32.001V4a4 4 0 0 1 3.999-4H144a4 4 0 0 1 3.999… 3 …-1.821 1.742-1.841 0-1.841-1.739V9.128q0-1.724 1.84-1.724 1.822 0 1.822 1.724zm-1.821 7.668q-.98 0… 4 …-3.05l-1.414 3.606-1.417-3.606h-2.838l-1.414 3.606-1.417-3.606h-3.05l-1.312 3.338L8.168 7.71H6.425… 5 …-1.474-1.474H9.27a1.47 1.47 0 0 0 0 2.94h17.64a1.47 1.47 0 0 0 1.47-1.466zm2.94-23.52a1.47 1.47 0 …
|
H A D | fixme.svg | 3 …-1.822 1.739-1.84 0-1.84-1.739V8.633q0-1.724 1.84-1.724 1.822 0 1.822 1.727zm-1.822 7.665q-.979 0-… 4 …-.453 0-.899.057-1.326.159l-7.623-7.623a5.889 5.889 0 0 0-5.734-7.22c-.661 0-1.542.677-.809 1.41l2…
|
/dokuwiki/lib/plugins/extension/ |
H A D | Repository.php | 53 if ($this->hasAccess !== null) { 54 return $this->hasAccess; // we already checked 64 $httpclient->timeout = 5; 65 $data = $httpclient->get(self::EXTENSION_REPOSITORY_API . '?cmd=ping'); 67 $this->hasAccess = false; 70 $this->hasAccess = false; 73 $this->hasAccess = true; 75 return $this->hasAccess; 86 if (!$this->checkAccess()) return; 94 $response = $httpclient->post(self::EXTENSION_REPOSITORY_API, $data); [all …]
|
H A D | GuiAdmin.php | 13 $html .= $this->tabNavigation(); 15 switch ($this->currentTab()) { 17 $html .= $this->tabSearch(); 20 $html .= $this->tabTemplates(); 23 $html .= $this->tabInstall(); 27 $html .= $this->tabPlugins(); 41 foreach ($this->tabs as $tab) { 42 $url = $this->tabURL($tab); 43 if ($this->currentTab() == $tab) { 49 $this->getLang('tab_' . $tab) . '</a></li>'; [all …]
|
H A D | Gui.php | 14 $this->helper = plugin_load('helper', 'extension'); 20 return $this->helper->getLang($msg); 32 $tab = $INPUT->str('tab', 'plugins', true); 33 if (!in_array($tab, $this->tabs)) $tab = 'plugins'; 51 if (!$tab) $tab = $this->currentTab(); 57 if ($tab == 'search') $defaults['q'] = $INPUT->str('q');
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/DSA/ |
H A D | PrivateKey.php | 8 * @license http://www.opensource.org/licenses/mit-license.html MIT License 38 * If you do "openssl rsa -in private.rsa -pubout -outform PEM" you get a PKCS8 formatted key 41 * parameters field is NULL. With DSA PKCS8 public keys it is not - it contains the p, q and g 45 * "openssl dsa -in private.dsa -pubout -outform PEM" 60 if (!isset($this->y)) { 61 $this->y = $this->g->powMod($this->x, $this->p); 64 $key = $type::savePublicKey($this->p, $this->q, $this->g, $this->y); 67 ->withHash($this->hash->getHash()) 68 ->withSignatureFormat($this->shortFormat); 80 $format = $this->sigFormat; [all …]
|
H A D | PublicKey.php | 8 * @license http://www.opensource.org/licenses/mit-license.html MIT License 37 $format = $this->sigFormat; 45 … if (self::$engines['OpenSSL'] && in_array($this->hash->getHash(), openssl_get_md_methods())) { 48 … $result = openssl_verify($message, $sig, $this->toString('PKCS8'), $this->hash->getHash()); 50 if ($result != -1) { 55 $q_1 = $this->q->subtract(self::$one); 56 if (!$r->between(self::$one, $q_1) || !$s->between(self::$one, $q_1)) { 60 $w = $s->modInverse($this->q); 61 $h = $this->hash->hash($message); 62 $h = $this->bits2int($h); [all …]
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/ |
H A D | DSA.php | 4 * Pure-PHP FIPS 186-4 compliant implementation of DSA. 14 * $public = $private->getPublicKey(); 18 * $signature = $private->sign($plaintext); 20 * echo $public->verify($plaintext, $signature) ? 'verified' : 'unverified'; 26 * @license http://www.opensource.org/licenses/mit-license.html MIT License 40 * Pure-PHP FIPS 186-4 compliant implementation of DSA. 61 * DSA Group Order q 63 * Prime divisor of p-1 67 protected $q; variable in phpseclib3\\Crypt\\DSA 109 if ($class->isFinal()) { [all …]
|
/dokuwiki/vendor/simplepie/simplepie/src/ |
H A D | Locator.php | 6 * A PHP-Based RSS and Atom Feed Framework. 9 * Copyright (c) 2004-2022, Ryan Parman, Sam Sneddon, Ryan McCue, and contributors 37 * @copyright 2004-2016 Ryan Parman, Sam Sneddon, Ryan McCue 42 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 48 * Used for feed auto-discovery 75 $this->file = $file; 76 $this->useragent = $useragent; 77 $this->timeout = $timeout; 78 $this->max_checked_feeds = $max_checked_feeds; 79 $this->force_fsockopen = $force_fsockopen; [all …]
|
/dokuwiki/_test/tests/lib/exe/ |
H A D | ajax_requests.test.php | 17 [ 'linkwiz', ['q' => ''], '/^<div class="odd type_d/' ], 18 [ 'suggestions', ['q' => ''], null ], 27 [ 'linkwiz', ['q' => ''], null ], 40 $response = $request->post(['call'=> $call]+$post, '/lib/exe/ajax.php'); 41 $this->assertNotEquals("AJAX call '$call' unknown!\n", $response->getContent()); 44 $this->assertMatchesRegularExpression($regexp, $response->getContent()); 50 $response = $request->post([], '/lib/exe/ajax.php'); 51 $this->assertEquals('', $response->getContent()); 57 $response = $request->post(['call'=> $call], '/lib/exe/ajax.php'); 58 $this->assertEquals("AJAX call '$call' unknown!\n", $response->getContent()); [all …]
|
/dokuwiki/_test/tests/inc/ |
H A D | common_getGoogleQuery.test.php | 12 …$_SERVER['HTTP_REFERER'] = 'https://www.google.com/url?q=https://www.dokuwiki.org/&sa=D&ust=a&usg=… 14 $this->assertEquals('', getGoogleQuery()); 21 $this->assertEquals('', getGoogleQuery()); 26 $_SERVER['HTTP_REFERER'] = 'http://search.example.com/search?q=DokuWiki'; 28 $this->assertEquals('', getGoogleQuery()); 33 … $_SERVER['HTTP_REFERER'] = 'https://www.google.com/search?newwindow=1&q=what%27s+my+referer'; 35 $this->assertEquals(array('what', 's', 'my', 'referer'), getGoogleQuery());
|
H A D | sort_without_collator.test.php | 39 $this->assertTrue(true); // avoid being marked as risky for having no assertion 113 * reordered here, starting with A-Z and continuing with accented characters 132 // 'a ä b c d e f g h i j k l m n o ö p q r s ß t u ü v w x y z' 133 'de' => 'a b c d e f g h i j k l m n o p q r s t u v w x y z ß ä ö ü', 136 // 'a á à â ã b c ç d e é ê f g h i í j k l m n o ó ô õ p q r s t u ú ü v w x y z' 137 'pt' => 'a b c d e f g h i j k l m n o p q r s t u v w x y z à á â ã ç é ê í ó ô õ ú ü', 140 // 'a á b c d e é f g h i í j k l m n ñ o ó p q r s t u ú v w x y z' 141 'es' => 'a b c d e f g h i j k l m n o p q r s t u v w x y z á é í ñ ó ú',
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/File/ASN1/Maps/ |
H A D | RSAPrivateKey.php | 10 * @license http://www.opensource.org/licenses/mit-license.html MIT License 31 'mapping' => ['two-prime', 'multi'] 37 'prime2' => ['type' => ASN1::TYPE_INTEGER], // q 38 'exponent1' => ['type' => ASN1::TYPE_INTEGER], // d mod (p-1) 39 'exponent2' => ['type' => ASN1::TYPE_INTEGER], // d mod (q-1) 40 'coefficient' => ['type' => ASN1::TYPE_INTEGER], // (inverse of q) mod p
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/BaseCurves/ |
H A D | Prime.php | 6 * These are curves used in SEC 2 over prime fields: http://www.secg.org/SEC2-Ver-1.0.pdf 18 * @license http://www.opensource.org/licenses/mit-license.html MIT License 119 $this->modulo = $modulo; 120 $this->factory = new PrimeField($modulo); 121 $this->two = $this->factory->newInteger(new BigInteger(2)); 122 $this->three = $this->factory->newInteger(new BigInteger(3)); 124 $this->one = $this->factory->newInteger(new BigInteger(1)); 125 $this->four = $this->factory->newInteger(new BigInteger(4)); 126 $this->eight = $this->factory->newInteger(new BigInteger(8)); 134 if (!isset($this->factory)) { [all …]
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/ |
H A D | Ed448.php | 10 * @license http://www.opensource.org/licenses/mit-license.html MIT License 22 const HASH = 'shake256-912'; 27 // 2^448 - 2^224 - 1 28 $this->setModulo(new BigInteger( 33 $this->setCoefficients( 35 // -39081 39 $this->setBasePoint( 45 $this->setOrder(new BigInteger( 55 * Implements steps 2-4 at https://tools.ietf.org/html/rfc8032#section-5.2.3 65 $y = $this->factory->newInteger($y); [all …]
|
/dokuwiki/.github/workflows/ |
H A D | deletedFiles.yml | 2 # It compares the current master with the data/deleted.files file and cleans the file from any re-i… 4 # unless they are already listed there or are excluded from the release archives (export-ignore in … 6 # Finally, the list of newly removed entries receives a header "# removed on $(date -I)" with the c… 12 - master 17 runs-on: ubuntu-latest 19 - name: Checkout 22 fetch-depth: 0 24 - name: Cleaning list from re-introduced files 26 for E in $(git ls-tree -r master --name-only); do 27 if (git check-attr export-ignore "$E" | grep -q "export-ignore: set"); then [all …]
|
/dokuwiki/conf/ |
H A D | interwiki.conf | 30 amazon https://www.amazon.com/dp/{URL}?tag=splitbrain-20 31 amazon.de https://www.amazon.de/dp/{URL}?tag=splitbrain-21 33 paypal https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business= 36 google https://www.google.com/search?q= 37 google.de https://www.google.de/search?q= 38 go https://www.google.com/search?q={URL}&btnI=lucky
|
/dokuwiki/inc/ |
H A D | fulltext.php | 68 $q = ft_queryParser($Indexer, $data['query']); 69 $data['highlight'] = $q['highlight']; 71 if (empty($q['parsed_ary'])) return []; 74 $lookup = $Indexer->lookup($q['words']); 78 foreach ($Indexer->getPages() as $id) { 84 foreach ($q['parsed_ary'] as $token) { 87 case 'W-:': 95 case 'P-:': // phrase 109 if ($evt->advise_before() && $evt->result !== true) { 112 $evt->result = true; [all …]
|
H A D | Ajax.php | 28 $this->$callfn(); 31 if ($evt->advise_before()) { 34 $evt->advise_after(); 52 $query = $INPUT->post->str('q'); 53 if (empty($query)) $query = $INPUT->get->str('q'); 97 $query = cleanID($INPUT->post->str('q')); 98 if (empty($query)) $query = cleanID($INPUT->get->str('q')); 120 header('Content-Type: application/x-suggestions+json'); 135 $ID = cleanID($INPUT->post->str('id')); 157 if ($draft->saveDraft()) { [all …]
|