ParagonIE_Sodium_Compat::crypto_generichash_final

SummerySummery

Get the final BLAKE2b hash output for a given context.

Syntax

ParagonIE_Sodium_Compat::crypto_generichash_final( string $ctx, int $length = self::CRYPTO_GENERICHASH_BYTES )

ParametersParameters

$ctx

(string) (Required) BLAKE2 hashing context. Generated by crypto_generichash_init().

$length

(int) (Optional) Hash output size.

Default value: self::CRYPTO_GENERICHASH_BYTES

ReturnReturn

(string) Final BLAKE2b hash.

SourceSource

File: wp-includes/sodium_compat/src/Compat.php


			
Scroll to Top