Documentation ¶
Index ¶
- func NewAesGcmKey(id types.KeyID, operation types.KeyOperation, data *AesGcmKeyData) types.Key
- func NewXChaCha20Poly1305Key(id types.KeyID, operation types.KeyOperation, data *XChaCha20Poly1305KeyData) types.Key
- type AesGcmKey
- type AesGcmKeyData
- type XChaCha20Poly1305Key
- type XChaCha20Poly1305KeyData
- func (data *XChaCha20Poly1305KeyData) FromValue([]byte) error
- func (data *XChaCha20Poly1305KeyData) GetKeyMaterialType() types.KeyMaterialType
- func (data *XChaCha20Poly1305KeyData) GetTypeURL() string
- func (data *XChaCha20Poly1305KeyData) GetValue() ([]byte, error)
- func (data *XChaCha20Poly1305KeyData) GetVersion() uint32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAesGcmKey ¶
func NewAesGcmKey(id types.KeyID, operation types.KeyOperation, data *AesGcmKeyData) types.Key
func NewXChaCha20Poly1305Key ¶
func NewXChaCha20Poly1305Key(id types.KeyID, operation types.KeyOperation, data *XChaCha20Poly1305KeyData) types.Key
Types ¶
type AesGcmKey ¶
type AesGcmKey struct {
// contains filtered or unexported fields
}
func (*AesGcmKey) Operation ¶
func (k *AesGcmKey) Operation() types.KeyOperation
type AesGcmKeyData ¶
type AesGcmKeyData struct { TypeURL string Value []byte KeyMaterialType types.KeyMaterialType Version uint32 }
func (*AesGcmKeyData) FromValue ¶
func (data *AesGcmKeyData) FromValue([]byte) error
func (*AesGcmKeyData) GetKeyMaterialType ¶
func (data *AesGcmKeyData) GetKeyMaterialType() types.KeyMaterialType
func (*AesGcmKeyData) GetTypeURL ¶
func (data *AesGcmKeyData) GetTypeURL() string
func (*AesGcmKeyData) GetValue ¶
func (data *AesGcmKeyData) GetValue() ([]byte, error)
func (*AesGcmKeyData) GetVersion ¶
func (data *AesGcmKeyData) GetVersion() uint32
type XChaCha20Poly1305Key ¶
type XChaCha20Poly1305Key struct {
// contains filtered or unexported fields
}
func (*XChaCha20Poly1305Key) Data ¶
func (k *XChaCha20Poly1305Key) Data() types.KeyData
func (*XChaCha20Poly1305Key) KeyID ¶
func (k *XChaCha20Poly1305Key) KeyID() types.KeyID
func (*XChaCha20Poly1305Key) Operation ¶
func (k *XChaCha20Poly1305Key) Operation() types.KeyOperation
type XChaCha20Poly1305KeyData ¶
type XChaCha20Poly1305KeyData struct { TypeURL string Value []byte KeyMaterialType types.KeyMaterialType Version uint32 }
func (*XChaCha20Poly1305KeyData) FromValue ¶
func (data *XChaCha20Poly1305KeyData) FromValue([]byte) error
func (*XChaCha20Poly1305KeyData) GetKeyMaterialType ¶
func (data *XChaCha20Poly1305KeyData) GetKeyMaterialType() types.KeyMaterialType
func (*XChaCha20Poly1305KeyData) GetTypeURL ¶
func (data *XChaCha20Poly1305KeyData) GetTypeURL() string
func (*XChaCha20Poly1305KeyData) GetValue ¶
func (data *XChaCha20Poly1305KeyData) GetValue() ([]byte, error)
func (*XChaCha20Poly1305KeyData) GetVersion ¶
func (data *XChaCha20Poly1305KeyData) GetVersion() uint32
Click to show internal directories.
Click to hide internal directories.