Skip to main content

VerifySeed

func VerifySeed(ctx context.Context, seed io.Reader, expected Digest) (SeedInfo, error)

VerifySeed strictly inspects a seed and compares its raw-byte hash with the caller's expected digest using a constant-time comparison.

Parameters

NameTypeDescription
ctxcontext.ContextParameter ctx of VerifySeed.
seedio.ReaderParameter seed of VerifySeed.
expectedDigestParameter expected of VerifySeed.

Returns

(SeedInfo, error)

Source

This page is generated from SDK source metadata and the translation catalog.