Help us shape the future of Go! Take the 2026 Go Developer Survey

apc

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PaymentCryptoData

type PaymentCryptoData struct {
	// define the AWS region that PaymentCryptography is located at
	AwsRegion awsregion.AWSRegion

	// custom http2 client options
	HttpOptions *awshttp2.HttpClientSettings

	// define PaymentCryptography Data key or key alias
	KeyArn string
	// contains filtered or unexported fields
}

PaymentCryptoData struct encapsulates the AWS PaymentCryptography Data access functionality

func (*PaymentCryptoData) Connect

func (k *PaymentCryptoData) Connect(parentSegment ...*xray.XRayParentSegment) (err error)

Connect will establish a connection to the PaymentCryptography Data service

func (*PaymentCryptoData) DecryptViaAesCBC

func (k *PaymentCryptoData) DecryptViaAesCBC(cipherText, iv string) (plainText string, err error)

func (*PaymentCryptoData) DecryptViaAesCFB

func (k *PaymentCryptoData) DecryptViaAesCFB(cipherText, iv string) (plainText string, err error)

func (*PaymentCryptoData) DecryptViaAesECB

func (k *PaymentCryptoData) DecryptViaAesECB(cipherText string) (plainText string, err error)

func (*PaymentCryptoData) DecryptViaAesOFB

func (k *PaymentCryptoData) DecryptViaAesOFB(cipherText, iv string) (plainText string, err error)

func (*PaymentCryptoData) DecryptViaDUKPT

func (k *PaymentCryptoData) DecryptViaDUKPT(cipherText, ksn string) (plainText string, err error)

func (*PaymentCryptoData) DecryptViaRSANone

func (k *PaymentCryptoData) DecryptViaRSANone(cipherText string) (plainText string, err error)

DecryptViaRSANone the padding scheme is None, the plainText & cipherText is both hex encoded string

func (*PaymentCryptoData) DecryptViaRSAOEAPSHA128

func (k *PaymentCryptoData) DecryptViaRSAOEAPSHA128(cipherText string) (plainText string, err error)

DecryptViaRSAOEAPSHA128 the padding scheme is OEAP SHA1, the plainText & cipherText is both hex encoded string

func (*PaymentCryptoData) DecryptViaRSAOEAPSHA256

func (k *PaymentCryptoData) DecryptViaRSAOEAPSHA256(cipherText string) (plainText string, err error)

DecryptViaRSAOEAPSHA256 the padding scheme is OEAP SHA256, the plainText & cipherText is both hex encoded string

func (*PaymentCryptoData) DecryptViaRSAOEAPSHA512

func (k *PaymentCryptoData) DecryptViaRSAOEAPSHA512(cipherText string) (plainText string, err error)

DecryptViaRSAOEAPSHA512 the padding scheme is OEAP SHA512, the plainText & cipherText is both hex encoded string

func (*PaymentCryptoData) DecryptViaRSAPKCS1

func (k *PaymentCryptoData) DecryptViaRSAPKCS1(cipherText string) (plainText string, err error)

DecryptViaRSAPKCS1 the padding scheme is PKCS1, the plainText & cipherText is both hex encoded string

func (*PaymentCryptoData) Disconnect

func (k *PaymentCryptoData) Disconnect()

Disconnect will disjoin from aws session by clearing it

func (*PaymentCryptoData) EncryptViaAesCBC

func (k *PaymentCryptoData) EncryptViaAesCBC(plainText, iv string) (cipherText string, err error)

func (*PaymentCryptoData) EncryptViaAesCFB

func (k *PaymentCryptoData) EncryptViaAesCFB(plainText, iv string) (cipherText string, err error)

func (*PaymentCryptoData) EncryptViaAesECB

func (k *PaymentCryptoData) EncryptViaAesECB(plainText string) (cipherText string, err error)

func (*PaymentCryptoData) EncryptViaAesOFB

func (k *PaymentCryptoData) EncryptViaAesOFB(plainText, iv string) (cipherText string, err error)

func (*PaymentCryptoData) EncryptViaDUKPT

func (k *PaymentCryptoData) EncryptViaDUKPT(plainText, ksn string) (cipherText string, err error)

func (*PaymentCryptoData) EncryptViaRSANone

func (k *PaymentCryptoData) EncryptViaRSANone(plainText string) (cipherText string, err error)

EncryptViaRSANone the padding scheme is None, the plainText & cipherText is both hex encoded string

func (*PaymentCryptoData) EncryptViaRSAOEAPSHA128

func (k *PaymentCryptoData) EncryptViaRSAOEAPSHA128(plainText string) (cipherText string, err error)

EncryptViaRSAOEAPSHA128 the padding scheme is OEAP SHA1, the plainText & cipherText is both hex encoded string

func (*PaymentCryptoData) EncryptViaRSAOEAPSHA256

func (k *PaymentCryptoData) EncryptViaRSAOEAPSHA256(plainText string) (cipherText string, err error)

EncryptViaRSAOEAPSHA256 the padding scheme is OEAP SHA256, the plainText & cipherText is both hex encoded string

func (*PaymentCryptoData) EncryptViaRSAOEAPSHA512

func (k *PaymentCryptoData) EncryptViaRSAOEAPSHA512(plainText string) (cipherText string, err error)

EncryptViaRSAOEAPSHA512 the padding scheme is OEAP SHA512, the plainText & cipherText is both hex encoded string

func (*PaymentCryptoData) EncryptViaRSAPKCS1

func (k *PaymentCryptoData) EncryptViaRSAPKCS1(plainText string) (cipherText string, err error)

EncryptViaRSAPKCS1 the padding scheme is PKCS1, the plainText & cipherText is both hex encoded string

func (*PaymentCryptoData) UpdateParentSegment

func (k *PaymentCryptoData) UpdateParentSegment(parentSegment *xray.XRayParentSegment)

UpdateParentSegment updates this struct's xray parent segment, if no parent segment, set nil

type PaymentCryptography

type PaymentCryptography struct {
	// define the AWS region that PaymentCryptography is located at
	AwsRegion awsregion.AWSRegion

	// custom http2 client options
	HttpOptions *awshttp2.HttpClientSettings
	// contains filtered or unexported fields
}

PaymentCryptography struct encapsulates the AWS PaymentCryptography access functionality

func (*PaymentCryptography) Connect

func (k *PaymentCryptography) Connect(parentSegment ...*xray.XRayParentSegment) (err error)

Connect will establish a connection to the PaymentCryptography service

func (*PaymentCryptography) DeleteAlias added in v1.4.1

func (k *PaymentCryptography) DeleteAlias(aliasName string) (err error)

func (*PaymentCryptography) DeleteKey added in v1.4.1

func (k *PaymentCryptography) DeleteKey(keyArn string) (err error)

func (*PaymentCryptography) Disconnect

func (k *PaymentCryptography) Disconnect()

Disconnect will disjoin from aws session by clearing it

func (*PaymentCryptography) GenerateAES256Key

func (k *PaymentCryptography) GenerateAES256Key() (keyArn string, err error)

GenerateAES256Key generates an AES key of 256 bits

func (*PaymentCryptography) GenerateRSA2048

func (k *PaymentCryptography) GenerateRSA2048() (keyArn string, err error)

GenerateRSA2048 generates an RSA key of 2048 bits

func (*PaymentCryptography) GenerateRSA4096

func (k *PaymentCryptography) GenerateRSA4096() (keyArn string, err error)

GenerateRSA4096 generates an RSA key of 4096 bits

func (*PaymentCryptography) GetParamsForImportKEKey

func (k *PaymentCryptography) GetParamsForImportKEKey() (cert, certChain, token string, err error)

func (*PaymentCryptography) GetRSAPublicKey

func (k *PaymentCryptography) GetRSAPublicKey(keyArn string) (cert, certChain string, err error)

GetRSAPublicKey retrieves the RSA public key by using the keyArn, cert & certChain is a base64 string

func (*PaymentCryptography) ImportKEKey

func (k *PaymentCryptography) ImportKEKey(capkArn, imToken, signCA, keyBlock, nonce string) (keyArn string, err error)

func (*PaymentCryptography) ImportRootCAPublicKey

func (k *PaymentCryptography) ImportRootCAPublicKey(publicKey string) (keyArn string, err error)

func (*PaymentCryptography) ImportTR31Key

func (k *PaymentCryptography) ImportTR31Key(keyBlock, warpKeyArn string) (keyArn string, err error)

func (*PaymentCryptography) ListAlias added in v1.4.1

func (k *PaymentCryptography) ListAlias() (output *pycrypto.ListAliasesOutput, err error)

func (*PaymentCryptography) ListKeys added in v1.4.1

func (k *PaymentCryptography) ListKeys() (output *pycrypto.ListKeysOutput, err error)

func (*PaymentCryptography) SetKeyAlias

func (k *PaymentCryptography) SetKeyAlias(keyArn, KeyAliasName string) (respAliasName string, err error)

SetKeyAlias KeyAliasName is used as an alias for keyArn

func (*PaymentCryptography) StartKeyUsage added in v1.4.1

func (k *PaymentCryptography) StartKeyUsage(keyArn string) (err error)

func (*PaymentCryptography) StopKeyUsage added in v1.4.1

func (k *PaymentCryptography) StopKeyUsage(keyArn string) (err error)

func (*PaymentCryptography) UpdateParentSegment

func (k *PaymentCryptography) UpdateParentSegment(parentSegment *xray.XRayParentSegment)

UpdateParentSegment updates this struct's xray parent segment, if no parent segment, set nil

Jump to

Keyboard shortcuts

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