IntegrityTag.make

Build and returns an IntegrityTag

This is a convenience function to build an IntegrityTag from the archive data. Use sha512 by default.

struct IntegrityTag
static @safe pure
make
(
in ubyte[] data
,
string algorithm = "sha512"
)

Parameters

data ubyte[]

The content of the archive to check hash into a digest

algorithm string

One of sha256, sha384, sha512. Default to the latter.

Return Value

A populated IntegrityTag.

Meta