Documentation ¶
Index ¶
- func DecipherAes(key, iv, cipherBytes []byte) ([]byte, error)
- func DecryptReceiptContent(content, receiptContentKey []byte) ([]byte, error)
- func DecryptToken(encryptedConnectToken string, key *rsa.PrivateKey) (result string, err error)
- func ParseRSAKey(keyBytes []byte) (*rsa.PrivateKey, error)
- func UnwrapKey(wrappedKey string, key *rsa.PrivateKey) (result []byte, err error)
- func UnwrapReceiptKey(wrappedReceiptKey []byte, encryptedItemKey []byte, itemKeyIv []byte, ...) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecipherAes ¶
DecipherAes deciphers AES-encrypted bytes
func DecryptReceiptContent ¶ added in v3.12.0
func DecryptToken ¶
func DecryptToken(encryptedConnectToken string, key *rsa.PrivateKey) (result string, err error)
DecryptToken decrypts an RSA-encrypted token, using the specified RSA private key
func ParseRSAKey ¶
func ParseRSAKey(keyBytes []byte) (*rsa.PrivateKey, error)
ParseRSAKey parses a PKCS1 private key from bytes
func UnwrapKey ¶
func UnwrapKey(wrappedKey string, key *rsa.PrivateKey) (result []byte, err error)
UnwrapKey unwraps an RSA private key
func UnwrapReceiptKey ¶ added in v3.12.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.