tinkio

package
Version: v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MasterPBKDF

func MasterPBKDF(masterPassword string) (tink.AEAD, error)

MasterPBKDF converts the master password into the master key.

Types

type ECDSAPEMKeyset

type ECDSAPEMKeyset struct {
	PEMs     []string
	Password string
}

ECDSAPEMKeyset converts a set of PEMs into a tink.Keyset. Implements tink.KeysetReader.

func (*ECDSAPEMKeyset) Read

func (p *ECDSAPEMKeyset) Read() (*tinkpb.Keyset, error)

Read returns a (cleartext) Keyset object from a set of PEMs.

func (*ECDSAPEMKeyset) ReadEncrypted

func (p *ECDSAPEMKeyset) ReadEncrypted() (*tinkpb.EncryptedKeyset, error)

ReadEncrypted returns an EncryptedKeyset object from disk.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL