Versions in this module Expand all Collapse all v1 v1.0.0 Jan 9, 2022 Changes in this version + var ErrAesSIVGeneric = errors.New("AES SIV Generic error: Something went wrong") + var ErrAesSIVinitGeneric = errors.New("AES SIV Init error: Initializing AES SIV block failed") + var ErrAesSIVinitKeySize = errors.New("Aes SIV Init error: Key size is unsupported") + var ErrAesSIVs2v = errors.New("AES SIV s2v error: s2v routine failed") + var ErrFailSivUnwrap = errors.New("Siv Unwrap: Unwrapping the ciphertext failed") + var ErrSiv = errors.New("NewSIV() error: error returning a new SIV implementation") + var ErrSivUnWrapShortCipherLength = errors.New("Siv Unwrap error: ciphertext is too short") + var ErrSivUnWrapSizeUnsupportedCiphertext = errors.New("Siv Unwrap error: ciphertext size is longer than supported") + var ErrSivUnWrapUnsupportedAdditionalData = errors.New("Siv Unwrap error: additionalData elements more than than supported") + var ErrSivUnwrapGeneric = errors.New("Siv Unwrap error: error unwrapping the ciphertext") + var ErrSivWrapGeneric = errors.New("Siv Wrap error: error wrapping the message") + var ErrSivWrapUnsupportedAdditionalData = errors.New("Siv Wrap error: additionalData elements more than than supported") + var ErrSivWrapUnsupportedPlaintext = errors.New("Siv Wrap error: plaintext size is longer than supported") + func NewAesSIVBlockPair(key []byte) (*aesSIVBlockPair, error) + type SIV interface + CMACBlockSize func() int + CTRBlockSize func() int + Unwrap func(ciphertext []byte, additionalData ...[]byte) ([]byte, error) + Wrap func(plaintext []byte, additionalData ...[]byte) ([]byte, error) + func NewSIV(sivpair sivBlockPair) (SIV, error)