package aescbc
import "github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache/internal/aescbc"
Index ¶
- type AESCBCHMACSHA2
- func NewAES128CBCHMACSHA256(key []byte) (*AESCBCHMACSHA2, error)
- func (a *AESCBCHMACSHA2) Decrypt(iv, ciphertext, additionalData, tag []byte) ([]byte, error)
- func (a *AESCBCHMACSHA2) Encrypt(iv, plaintext, additionalData []byte) (EncryptResult, error)
- type EncryptResult
Types ¶
type AESCBCHMACSHA2 ¶
type AESCBCHMACSHA2 struct { Alg string // contains filtered or unexported fields }
AESCBCHMACSHA2 implements AES_CBC_HMAC_SHA2 as defined in https://tools.ietf.org/html/rfc7518#section-5.2.2
func NewAES128CBCHMACSHA256 ¶
func NewAES128CBCHMACSHA256(key []byte) (*AESCBCHMACSHA2, error)
NewAES128CBCHMACSHA256 returns an implementation of AES_128_CBC_HMAC_SHA_256 (https://tools.ietf.org/html/rfc7518#section-5.2.3)
func (*AESCBCHMACSHA2) Decrypt ¶
func (a *AESCBCHMACSHA2) Decrypt(iv, ciphertext, additionalData, tag []byte) ([]byte, error)
func (*AESCBCHMACSHA2) Encrypt ¶
func (a *AESCBCHMACSHA2) Encrypt(iv, plaintext, additionalData []byte) (EncryptResult, error)
type EncryptResult ¶
type EncryptResult struct { Ciphertext, Tag []byte }
Source Files ¶
- Version
- v0.3.2 (latest)
- Published
- Jan 15, 2025
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 2 months ago –
Tools for package owners.