Home
last modified time | relevance | path

Searched refs:nonce (Results 1 – 8 of 8) sorted by relevance

/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/
H A DSalsa20.php119 * @param string $nonce
121 public function setNonce($nonce) argument
123 if (strlen($nonce) != 8) {
127 $this->nonce = $nonce;
150 if ($this->nonce === false) {
197 if ($this->nonce === false) {
221 $this->nonce .
H A DHash.php111 private $nonce = false; variable in phpseclib3\\Crypt\\Hash
226 * @param string $nonce
228 public function setNonce($nonce = false) argument
231 case !is_string($nonce):
232 case strlen($nonce) > 0 && strlen($nonce) <= 16:
234 $this->nonce = $nonce;
474 $nonce = $this->nonce;
481 $last = strlen($nonce) - 1;
483 $index = $nonce[$last] & $mask;
484 $nonce[$last] = $nonce[$last] ^ $index;
[all …]
H A DRijndael.php277 $this->nonce && strlen($this->nonce) == 12 &&
971 …s->newtag = sodium_crypto_aead_aes256gcm_encrypt($plaintext, $this->aad, $this->nonce, $this->key);
979 $this->nonce,
1008 …m_crypto_aead_aes256gcm_decrypt($ciphertext . $this->oldtag, $this->aad, $this->nonce, $this->key);
1023 $this->nonce,
H A DChaCha20.php123 $params = [$plaintext, $this->aad, $this->nonce, $this->key];
124 $ciphertext = strlen($this->nonce) == 8 ?
133 $this->newtag = $this->usingGeneratedPoly1305Key && strlen($this->nonce) == 12 ?
149 $params = [$ciphertext, $this->aad, $this->nonce, $this->key];
155 if ($this->usingGeneratedPoly1305Key && strlen($this->nonce) == 12) {
171 $plaintext = strlen($this->nonce) == 8 ?
181 * @param string $nonce
183 public function setNonce($nonce) argument
185 if (!is_string($nonce)) {
196 switch (strlen($nonce)) {
[all …]
/dokuwiki/inc/
H A Dtemplate.php424 $nonce = getenv('NONCE');
430 if ($nonce && $tag == 'script' && !empty($attr['_data'])) {
431 $attr['nonce'] = $nonce; // add nonce to inline script tags
457 $nonce = getenv('NONCE');
458 if ($nonce) {
459 $script = '<script nonce="' . $nonce . '">' . $script . '</script>';
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/
H A DSymmetricKey.php593 protected $nonce = false; variable in phpseclib3\\Crypt\\Common\\SymmetricKey
782 * @param string $nonce
785 public function setNonce($nonce) argument
791 $this->nonce = $nonce;
2471 if ($this->nonce === false) {
3268 if (strlen($this->nonce) == 12) {
3269 $this->iv = $this->nonce . "\0\0\0\1";
3272 self::nullPad128($this->nonce) . str_repeat("\0", 8) . self::len64($this->nonce)
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Net/
H A DSSH2.php1978 … $nonce = $kexHash->hash($keyBytes . $this->exchange_hash . 'A' . $this->session_id);
1979 $this->encryptFixedPart = substr($nonce, 0, 4);
1980 $this->encryptInvocationCounter = substr($nonce, 4, 8);
2024 … $nonce = $kexHash->hash($keyBytes . $this->exchange_hash . 'B' . $this->session_id);
2025 $this->decryptFixedPart = substr($nonce, 0, 4);
2026 $this->decryptInvocationCounter = substr($nonce, 4, 8);
4398 $nonce = pack('N2', 0, $this->send_seq_no);
4400 $this->encrypt->setNonce($nonce);
4401 $this->lengthEncrypt->setNonce($nonce);
/dokuwiki/lib/scripts/jquery/
H A Djquery.min.js2nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)f… property