UNPKG

@plugnet/util-crypto

Version:
16 lines (15 loc) 386 B
/** * @name sha512AsU8a * @summary Creates sha-512 hash of the input. * @description * Returns a sha-512 `Uint8Array` from the supplied data. * @example * <BR> * * ```javascript * import { sha512AsU8a } from '@plugnet/util-crypto'; * * sha512AsU8a(Uint8Array.from([...])); // => Uint8Array([...]) * ``` */ export default function sha512AsU8a(data: Uint8Array): Uint8Array;