<commit_before><?php

/**
 * Pure-PHP implementation of ChaCha20.
 *
 * PHP version 5
 *
 * @category  Crypt
 * @package   ChaCha20
 * @author    <NAME> <<EMAIL>>
 * @copyright 2019 <NAME>
 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
 * @link      http://phpseclib.sourceforge.net
 */

namespace phpseclib3\Crypt;

use phpseclib3\Crypt\Common\StreamCipher;
use phpseclib3\Exception\InsufficientSetupException;
use phpseclib3\Exception\BadDecryptionException;

/**
 * Pure-PHP implementation of ChaCha20.
 *
 * @package ChaCha20
 * @author  <NAME> <<EMAIL>>
 * @access  public
 */
class ChaCha20 extends Salsa20
{
    /**
     * The OpenSSL specific name of the cipher
     *
     * @var string
     */
    protected $cipher_name_openssl = 'chacha20';

    /**
     * Test for engine validity
     *
     * This is mainly just a wrapper to set things up for \phpseclib3\Crypt\Common\SymmetricKey::isValidEngine()
     *
     * @see \phpseclib3\Crypt\Common\SymmetricKey::__construct()
     * @param int $engine
     * @access protected<commit_msg>ChaCha20: rm unused 'use' statement<commit_after><?php

/**
 * Pure-PHP implementation of ChaCha20.
 *
 * PHP version 5
 *
 * @category  Crypt
 * @package   ChaCha20
 * @author    <NAME> <<EMAIL>>
 * @copyright 2019 <NAME>
 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
 * @link      http://phpseclib.sourceforge.net
 */

namespace phpseclib3\Crypt;

use phpseclib3\Exception\InsufficientSetupException;
use phpseclib3\Exception\BadDecryptionException;

/**
 * Pure-PHP implementation of ChaCha20.
 *
 * @package ChaCha20
 * @author  <NAME> <<EMAIL>>
 * @access  public
 */
class ChaCha20 extends Salsa20
{
    /**
     * The OpenSSL specific name of the cipher
     *
     * @var string
     */
    protected $cipher_name_openssl = 'chacha20';

    /**
     * Test for engine validity
     *
     * This is mainly just a wrapper to set things up for \phpseclib3\Crypt\Common\SymmetricKey::isValidEngine()
     *
     * @see \phpseclib3\Crypt\Common\SymmetricKey::__construct()
     * @param int $engine
     * @access protected
{'fraction_non_alphanumeric': 0.1191588785046729, 'fraction_numerical': 0.02383177570093458, 'mean_word_length': 3.1332046332046333, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6060138', 'n_tokens_mistral': 752, 'n_tokens_neox': 689, 'n_words': 165}