WordPress at a glance
function is not described

ParagonIE_Sodium_Crypto32::generichash_final() public WP 1.0

Finalize a BLAKE2b hashing context, returning the hash.

{} It's a method of the class: ParagonIE_Sodium_Crypto32{}

No Hooks.

Return

String. Null. Nothing.

Usage

$result = ParagonIE_Sodium_Crypto32::generichash_final( $ctx, $outlen );
$ctx(string) (required)
-
$outlen(int)
-

Code of ParagonIE_Sodium_Crypto32::generichash_final() WP 5.7

<?php
public static function generichash_final($ctx, $outlen = 32)
{
    if (!is_string($ctx)) {
        throw new TypeError('Context must be a string');
    }
    $out = new SplFixedArray($outlen);

    /** @var SplFixedArray $context */
    $context = ParagonIE_Sodium_Core32_BLAKE2b::stringToContext($ctx);

    /** @var SplFixedArray $out */
    $out = ParagonIE_Sodium_Core32_BLAKE2b::finish($context, $out);

    /** @var array<int, int> */
    $outArray = $out->toArray();
    return ParagonIE_Sodium_Core32_Util::intArrayToString($outArray);
}