Documentation ¶
Index ¶
- func Base64Decode(base64PublicKey string) ([]byte, error)
- func CheckTime(exp string) bool
- func ConstructSignature(params ...string) []byte
- func Decode(encryptionKey []byte, encryptedData string) ([]byte, error)
- func DeriveKeys(token types.Token, privateKeyEncoded string) ([]byte, []byte, error)
- func GenerateMacKeyAndEncryptionKey(sharedSecret []byte) ([]byte, []byte, error)
- func Init(rootKeys []byte, recipientId string, privateKey string)
- func VerifyMessageHmac(macKey []byte, tag string, encryptedMessage string) error
- func VerifySignature(token types.Token, keyValues []string, receipientId string) error
- type GooglePayDecryptor
- type PrivateKey
- type PublicKey
- type RootSigningKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
func ConstructSignature ¶
func DeriveKeys ¶
func VerifyMessageHmac ¶
Types ¶
type GooglePayDecryptor ¶
type GooglePayDecryptor struct {
// contains filtered or unexported fields
}
func NewGooglePayDecryptor ¶
func NewGooglePayDecryptor() (*GooglePayDecryptor, error)
type PrivateKey ¶
type PrivateKey struct{}
func (*PrivateKey) LoadKey ¶
func (p *PrivateKey) LoadKey(privateKey string) (*subtle.ECPrivateKey, error)
type RootSigningKey ¶
type RootSigningKey struct{}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.