sha

package
v0.0.0-...-4ddd2c0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasSHA

func HasSHA() bool

HasSHA returns true if SHA-NI is available

func SetSHASupport

func SetSHASupport(enabled bool)

For testing

Types

type SHAFFU

type SHAFFU struct {
	// contains filtered or unexported fields
}

SHAFFU implements the FFU interface for SHA operations

func NewSHAFFU

func NewSHAFFU() *SHAFFU

NewSHAFFU creates a new SHA FFU instance

func (*SHAFFU) CanHandle

func (s *SHAFFU) CanHandle(workload ffu.Workload) bool

CanHandle checks if this FFU can handle the workload

func (*SHAFFU) EstimateCost

func (s *SHAFFU) EstimateCost(workload ffu.Workload) ffu.Cost

EstimateCost estimates the cost of executing the workload

func (*SHAFFU) Execute

func (s *SHAFFU) Execute(workload ffu.Workload) error

Execute performs the SHA operation

func (*SHAFFU) IsAvailable

func (s *SHAFFU) IsAvailable() bool

IsAvailable returns true if SHA-NI is available

func (*SHAFFU) Metrics

func (s *SHAFFU) Metrics() ffu.Metrics

Metrics returns performance metrics

func (*SHAFFU) Name

func (s *SHAFFU) Name() string

Name returns the FFU name

func (*SHAFFU) Type

func (s *SHAFFU) Type() ffu.FFUType

Type returns the FFU type

Jump to

Keyboard shortcuts

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