Skip to content
This repository was archived by the owner on Feb 5, 2021. It is now read-only.
This repository was archived by the owner on Feb 5, 2021. It is now read-only.

Access to field `a' of StreamEncryptor for creating a Nonce #4

@stefanberger

Description

@stefanberger

I would like to be able to call GenerateNonce on a StreamEncryptor:

   func GenerateNonce(c cipher.AEAD) []byte

I believe what is missing is a method to access field a of the StreamEncryptor after having called NewStreamEncryptor():

type StreamEncryptor struct {
	// cipher.AEAD instance underlying this STREAM
	a cipher.AEAD

	// Nonce encoder instance which computes per-message nonces
	n *nonceEncoder32
}

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