ParagonIE\Halite\File::splitKeys PHP Method

splitKeys() protected static method

Split a key using HKDF-BLAKE2b
protected static splitKeys ( Key $master, string $salt = '', Config $config = null ) : array
$master Key
$salt string
$config Config
return array
    protected static function splitKeys(Key $master, string $salt = '', Config $config = null) : array
    {
        $binary = $master->getRawKeyMaterial();
        return [Util::hkdfBlake2b($binary, \Sodium\CRYPTO_SECRETBOX_KEYBYTES, $config->HKDF_SBOX, $salt), Util::hkdfBlake2b($binary, \Sodium\CRYPTO_AUTH_KEYBYTES, $config->HKDF_AUTH, $salt)];
    }