Skip to content

otplib API Documentation / @otplib/core / getDigestSize

Function: getDigestSize()

getDigestSize(algorithm): number

Defined in: packages/core/src/utils.ts:532

Get HMAC digest size in bytes for a given algorithm

Parameters

algorithm

HashAlgorithm

The hash algorithm

Returns

number

Digest size in bytes

Released under the MIT License.