Skip to content

Add SealWithRand method for custom RNG in encryption #18

@mtmk

Description

@mtmk

Summary

The Go KeyPair interface includes SealWithRand(input []byte, recipient string, rr io.Reader) which allows encryption with a custom random source. This is useful for deterministic testing.

The .NET Seal method only uses the default system RNG.

Approach

Add a Seal overload that accepts a RandomNumberGenerator parameter, consistent with the existing CreatePair overload pattern. Purely additive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions