Versions in this module Expand all Collapse all v0 v0.1.1 Mar 22, 2020 v0.1.0 Jun 16, 2019 Changes in this version + func DecryptPinBlock(pinBlock []byte, key []byte) (result []byte, err error) + func EncryptPinBlock(pinBlock []byte, key []byte) (result []byte, err error) + type PinBlock_Iso0 struct + func (pin_block *PinBlock_Iso0) Encrypt(pan_12digits string, clear_pin string, key []byte) ([]byte, error) + func (pin_block *PinBlock_Iso0) GetPin(pan_12digits string, pin_block_data []byte, key []byte) (res string, err error) + type PinBlocker interface + Encrypt func(pan string, clearPin string, key []byte) ([]byte, error) + GetPin func(pan string, pinBlockData []byte, key []byte) (string, error) + type PinblockIbm3264 struct + func (pinBlock *PinblockIbm3264) Encrypt(pan string, clearPin string, key []byte) ([]byte, error) + func (pinBlock *PinblockIbm3264) GetPin(pan string, pinBlockData []byte, key []byte) (res string, err error) + type PinblockIso1 struct + func (pinBlock *PinblockIso1) Encrypt(pan string, clearPin string, key []byte) (res []byte, err error) + func (pinBlock *PinblockIso1) GetPin(pan string, pinBlockData []byte, key []byte) (res string, err error) + type PinblockIso3 struct + func (pinBlock *PinblockIso3) Encrypt(pan12digits string, clearPin string, key []byte) (res []byte, err error) + func (pinBlock *PinblockIso3) GetPin(pan12digits string, pinBlockData []byte, key []byte) (res string, err error)