ParagonIE_Sodium_Core_HSalsa20::hsalsa20

SummerySummery

Calculate an hsalsa20 hash of a single block

Syntax

ParagonIE_Sodium_Core_HSalsa20::hsalsa20( string $in, string $k, string|null $c = null )

DescriptionDescription

HSalsa20 doesn’t have a counter and will never be used for more than one block (used to derive a subkey for xsalsa20).

ParametersParameters

$in

(string) (Required)

$k

(string) (Required)

$c

(string|null) (Optional)

Default value: null

ReturnReturn

(string)

SourceSource

File: wp-includes/sodium_compat/src/Core/HSalsa20.php


			
Scroll to Top