/** * Constructor * * @param EncodingConverterInterface $encoding_converter Used to convert * encodings of strings before adding them to the message. * @param HasherInterface $lm_hasher Used to create the "LM hash". * @param HasherInterface $nt_hasher Used to create the "NT hash". * @param RandomByteGeneratorInterface $random_byte_generator Used to create * encryption initialization vectors and to generate random client * challenges for extended security support. * @param DesEncrypterInterface $des_encrypter Used to compute challenge * responses for the different message hashes. * @param HasherFactoryInterface $crypt_hasher_factory Used to build a * cryptographic hashing engine for generating different hashes for * various parts of the resulting message. */ public function __construct(EncodingConverterInterface $encoding_converter, HasherInterface $lm_hasher, HasherInterface $nt_hasher, RandomByteGeneratorInterface $random_byte_generator, DesEncrypterInterface $des_encrypter, HasherFactoryInterface $crypt_hasher_factory) { parent::__construct($encoding_converter); $this->lm_hasher = $lm_hasher; $this->nt_hasher = $nt_hasher; $this->random_byte_generator = $random_byte_generator; $this->des_encrypter = $des_encrypter; $this->crypt_hasher_factory = $crypt_hasher_factory; }
/** * Constructor * * @param EncodingConverterInterface $encoding_converter Used to convert * encodings of strings before adding them to the message. * @param IdentityMetaHasherInterface $nt_hasher Used to create the * "NT hash" from a plain-text credential. * @param RandomByteGeneratorInterface $random_byte_generator Used to create * encryption initialization vectors and to generate random client * challenges for extended security support. * @param KeyedHasherFactoryInterface $crypt_hasher_factory Used to build a * cryptographic hashing engine for generating different keyed hashes for * various parts of the resulting message. */ public function __construct(EncodingConverterInterface $encoding_converter, IdentityMetaHasherInterface $nt_hasher, RandomByteGeneratorInterface $random_byte_generator, KeyedHasherFactoryInterface $crypt_hasher_factory) { parent::__construct($encoding_converter); $this->nt_hasher = $nt_hasher; $this->random_byte_generator = $random_byte_generator; $this->crypt_hasher_factory = $crypt_hasher_factory; }