libCrypto

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package libCrypto provides cryptographic utility wrappers.

Index

Constants

View Source
const (
	// Cvv1 is the constant identifying CVV1 card verification value generation.
	Cvv1 = "Cvv1"
	// Cvv2 is the constant identifying CVV2 card verification value generation.
	Cvv2 = "Cvv2"
	// Encrypt is the mode constant for encryption operations.
	Encrypt = "E"
	// Decrypt is the mode constant for decryption operations.
	Decrypt = "D"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Sm

type Sm interface {
	SetKey(id, value string)
	GetKey(id string) string
	Cvv(pan, exp, cvvType string) (string, error)
	Cvv2Padding(cvv2 string) (string, error)
	Pvv(pan, pinBlock string) (string, error)
	Offset(pan, pinBlock string) (string, error)
	Mac(data string) (string, error)
	Translate(pan, pinBlock, tpk2nd string) (string, error)
	Crypt(data, mode string) (string, error)
}

Sm is the interface for security module cryptographic operations (CVV, PVV, MAC, encryption).

Directories

Path Synopsis
Package ssm provides cryptographic utilities for banking SSM operations.
Package ssm provides cryptographic utilities for banking SSM operations.

Jump to

Keyboard shortcuts

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