Skip to main content

VerifySeedForSourceSize

func VerifySeedForSourceSize(ctx context.Context, seed io.Reader, expectedSeedHash Digest, sourceSize uint64) (SeedInfo, error)

VerifySeedForSourceSize verifies seed structure, hash, and its digest count against a caller-provided source size in a single streaming pass.

Parameters

NameTypeDescription
ctxcontext.ContextParameter ctx of VerifySeedForSourceSize.
seedio.ReaderParameter seed of VerifySeedForSourceSize.
expectedSeedHashDigestParameter expectedSeedHash of VerifySeedForSourceSize.
sourceSizeuint64Parameter sourceSize of VerifySeedForSourceSize.

Returns

(SeedInfo, error)

Source

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