keepassphp/util/salsa20stream.php
public static function create($key, $iv)
	{
		if (strlen($key) != self::KEY_LEN || strlen($iv) != self::IV_LEN)
			return null;
		return new Salsa20Stream($key, $iv);
	}
public static function create($key, $iv)
	{
		if (strlen($key) != self::KEY_LEN || strlen($iv) != self::IV_LEN)
			return null;
		return new Salsa20Stream($key, $iv);
	}
public static function create ( $ key , $ iv ) { if ( strlen ( $ key ) != self :: KEY_LEN || strlen ( $ iv ) != self :: IV_LEN ) return null ; return new Salsa20Stream ( $ key , $ iv ) ; }
Creates a new Salsa20Stream instance.
@param $key The 32-byte-long string to use as key.
@param $iv The 8-byte-long string to use as initialization vector.
@return A new Salsa20Stream instance, of null if $key or $iv do not have
a suitable length.
Creates a new Salsa20Stream instance .