mactest

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package mactest has testing utilities for the MAC primitive

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlwaysFailingMAC

type AlwaysFailingMAC struct {
	Error error
}

AlwaysFailingMAC fails compute and verify operations.

func (*AlwaysFailingMAC) ComputeMAC

func (m *AlwaysFailingMAC) ComputeMAC(data []byte) ([]byte, error)

ComputeMAC returns an error on compute.

func (*AlwaysFailingMAC) VerifyMAC

func (m *AlwaysFailingMAC) VerifyMAC(mac []byte, data []byte) error

VerifyMAC returns an error on verify.

Jump to

Keyboard shortcuts

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