crypto

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CryptoModule

type CryptoModule struct{}

CryptoModule provides cryptographic functions

func NewCryptoModule

func NewCryptoModule() *CryptoModule

NewCryptoModule creates a new crypto module

func (*CryptoModule) Cleanup

func (c *CryptoModule) Cleanup() error

Cleanup performs any necessary cleanup

func (*CryptoModule) CreateModuleObject

func (c *CryptoModule) CreateModuleObject(runtime *sobek.Runtime) sobek.Value

CreateModuleObject creates the crypto object when required

func (*CryptoModule) IsEnabled

func (c *CryptoModule) IsEnabled(enabledModules map[string]bool) bool

IsEnabled checks if the module should be enabled based on configuration

func (*CryptoModule) Name

func (c *CryptoModule) Name() string

Name returns the module name

func (*CryptoModule) Setup

func (c *CryptoModule) Setup(runtime *sobek.Runtime, manager *vm.VMManager) error

Setup initializes the crypto module in the VM

type Encoder

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

Encoder represents encoded data that can be output in different formats

Jump to

Keyboard shortcuts

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