Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultEncryptionKeyTemplate = hybrid.ECIESHKDFAES128CTRHMACSHA256KeyTemplate()
View Source
var DefaultSigningKeyTemplate = signature.ECDSAP256KeyTemplate()
Functions ¶
This section is empty.
Types ¶
type Keys ¶
type Keys struct { Metadata Metadata SigningKey *Key EncryptionKey *Key Signer tink.Signer Decrypt tink.HybridDecrypt }
func (*Keys) Public ¶
func (k *Keys) Public() PublicKeyPacket
type PrivateKeyPacket ¶
type PublicKeyPacket ¶
type PublicKeyPacket struct { Metadata Metadata `json:"metadata"` PublicSigningKey string `json:"public_signing_key"` PublicEncryptionKey string `json:"public_encryption_key"` }
func (PublicKeyPacket) EncryptTo ¶
func (p PublicKeyPacket) EncryptTo() (tink.HybridEncrypt, error)
func (PublicKeyPacket) VerifyFrom ¶
func (p PublicKeyPacket) VerifyFrom() (tink.Verifier, error)
Click to show internal directories.
Click to hide internal directories.