lib/classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php
protected function createSecurityBuffer($value, $offset, $is16 = false)
    {
        $length = strlen(bin2hex($value));
        $length = $is16 ? $length / 2 : $length;
        $length = $this->createByte(str_pad(dechex($length), 2, '0', STR_PAD_LEFT), 2);

        return $length.$length.$this->createByte(dechex($offset), 4);
    }
protected function createSecurityBuffer($value, $offset, $is16 = false)
    {
        $length = strlen(bin2hex($value));
        $length = $is16 ? $length / 2 : $length;
        $length = $this->createByte(str_pad(dechex($length), 2, '0', STR_PAD_LEFT), 2);

        return $length.$length.$this->createByte(dechex($offset), 4);
    }
protected function createSecurityBuffer ( $ value , $ offset , $ is16 = false ) { $ length = strlen ( bin2hex ( $ value ) ) ; $ length = $ is16 ? $ length / 2 : $ length ; $ length = $ this -> createByte ( str_pad ( dechex ( $ length ) , 2 , '0' , STR_PAD_LEFT ) , 2 ) ; return $ length . $ length . $ this -> createByte ( dechex ( $ offset ) , 4 ) ; }
Create our security buffer depending on length and offset.

@param string $value  Value we want to put in
@param int    $offset start of value
@param bool   $is16   Do we 16bit string or not?

@return string
Create our security buffer depending on length and offset .