body

package
v0.0.0-...-e675987 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package body contains structure and related methods for representing Crypt4GH data segments.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Segment

type Segment struct {
	DataEncryptionParametersHeaderPackets []headers.DataEncryptionParametersHeaderPacket
	Nonce                                 *[chacha20poly1305.NonceSize]byte
	UnencryptedData                       []byte
}

Segment structure represents Crypt4GH data segment.

func (Segment) MarshalBinary

func (s Segment) MarshalBinary() (data []byte, err error)

MarshalBinary implements encoding.BinaryMarshaler.MarshalBinary() method.

func (*Segment) UnmarshalBinary

func (s *Segment) UnmarshalBinary(encryptedSegment []byte) error

UnmarshalBinary implements encoding.BinaryMarshaler.UnmarshalBinary() method.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL