Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncryptionType ¶
type EncryptionType int
const ( AesCbc256_B64 EncryptionType = 0 AesCbc128_HmacSha256_B64 EncryptionType = 1 AesCbc256_HmacSha256_B64 EncryptionType = 2 Rsa2048_OaepSha256_B64 EncryptionType = 3 Rsa2048_OaepSha1_B64 EncryptionType = 4 )
type Key ¶
type Key struct { Key []byte EncryptionKey []byte EncryptionType EncryptionType MacKey []byte }
func NewFromRawBytes ¶
func NewFromRawBytesWithEncryptionType ¶
func NewFromRawBytesWithEncryptionType(rawKey []byte, encType EncryptionType) (*Key, error)
func (*Key) StretchKey ¶
Click to show internal directories.
Click to hide internal directories.