Documentation
¶
Index ¶
- Constants
- Variables
- func AesDecrypt(kaeyB64, ivB64, textB64 string) (string, error)
- func AesEncrypt(kaeyB64, ivB64, text string) (string, error)
- func Decimalize(notDecimaliz string, length int, immediate bool) string
- func DecryptDes(cipherB64, keyB64 string) (string, error)
- func DecryptDesBothHex(cipherHex, keyHex string) (string, error)
- func DecryptDesHex(cipherHex, keyB64 string) (string, error)
- func DecryptRsa(ks1 keystore.KeyStore, keyId, pass, data string) (string, error)
- func EncryptCvv(tspB64, cvkB64 string) (string, error)
- func EncryptDes(textB64, keyB64 string) (string, error)
- func EncryptDesHex(textHex, keyB64 string) (string, error)
- func EncryptRsa(ks1 keystore.KeyStore, keyId, data string) (string, error)
- func ExtractPanFromCard(card string) (string, error)
- func GenCvv(pan, exp, service, cvkB64 string) (string, error)
- func GenerateOffset(card, pvkB64, pin string, pinlen int) (string, error)
- func GeneratePinBlock(pan, tpkB64, pin string) (string, error)
- func GeneratePvv(card, pvkB64, pvki, pin string) (string, error)
- func GenerateRandomPin(len int) string
- func Initialize()
- func IsPinEasy(pin int) bool
- func PKCS7Padding(ciphertext []byte) []byte
- func PKCS7UnPadding(plantText []byte) []byte
- func PinBlock(pan, pin, tpk string) (string, error)
- func RandomData(len int) string
- func ReadKeyStore(filename string, password []byte) keystore.KeyStore
- func SubTen(pin, decimalized string, length int) (string, error)
- func WriteKeyStore(ks keystore.KeyStore, filename string, password []byte)
- func Zeroing(buf []byte)
- type DesMode
- type Ssm
- func (s *Ssm) Crypt(data, mode string) (string, error)
- func (s *Ssm) Cvv(pan, exp, cvvType string) (string, error)
- func (s *Ssm) Cvv2Padding(cvv2 string) (string, error)
- func (s *Ssm) GetKey(id string) string
- func (s *Ssm) Mac(data string) (string, error)
- func (s *Ssm) Offset(pan, pinBlock string) (string, error)
- func (s *Ssm) PinBlock(pan, pin string) (string, error)
- func (s *Ssm) PinBlockDecode(pan, pinBlock string) (string, error)
- func (s *Ssm) Pvv(pan, pinBlock string) (string, error)
- func (s *Ssm) SetKey(id, value string)
- func (s *Ssm) Translate(pan, pinBlock, tpk2nd string) (string, error)
Constants ¶
View Source
const DECIMALIZATION_TABLE string = "0123456789012345"
Variables ¶
View Source
var BadPins []int
View Source
var ZeroIv []byte = []byte{0, 0, 0, 0, 0, 0, 0, 0}
Functions ¶
func AesDecrypt ¶
func AesEncrypt ¶
func DecryptDes ¶
func DecryptDesBothHex ¶
func DecryptDesHex ¶
func EncryptCvv ¶
func EncryptDes ¶
func EncryptDesHex ¶
func ExtractPanFromCard ¶
func GeneratePinBlock ¶
func GeneratePvv ¶
func GenerateRandomPin ¶
func Initialize ¶
func Initialize()
func PKCS7Padding ¶
func PKCS7UnPadding ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.