Global

Location

Constants


KeySize

 

const KeySize: Int64 = 32;

 

const Int64 KeySize = 32

 

static let KeySize: Int64 = 32

 

const KeySize Int64 = 32

 

Dim KeySize As Int64 = 32

NonceSize

 

const NonceSize: Int64 = 12;

 

const Int64 NonceSize = 12

 

static let NonceSize: Int64 = 12

 

const NonceSize Int64 = 12

 

Dim NonceSize As Int64 = 12

Methods


New

 

class method New(key: Slice<Byte>): tuple of (AEAD, error)

 

static (AEAD, error) New(Slice<Byte> key)

 

static func New(_ key: Slice<Byte>) -> (AEAD, error)

 

func New(key Slice<Byte>) tuple of (AEAD, error)

 

Shared Function New(key As Slice<Byte>) As Tuple (Of AEAD, error)

Parameters:

  • key: