Documentation
¶
Index ¶
- type Cert
- type FileTpm
- func (tpm *FileTpm) DeleteKey(keyName enc.Name)
- func (tpm *FileTpm) GenerateKey(keyName enc.Name, keyType string, keySize uint64) enc.Buffer
- func (tpm *FileTpm) GetSigner(keyName enc.Name, keyLocatorName enc.Name) ndn.Signer
- func (tpm *FileTpm) KeyExist(keyName enc.Name) bool
- func (tpm *FileTpm) ToFileName(keyNameBytes []byte) string
- type Identity
- type Key
- type Pib
- type SqliteCert
- type SqliteIdent
- type SqliteKey
- type SqlitePib
- type Tpm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cert ¶
type Cert interface {
AsSigner() ndn.Signer
Name() enc.Name
Key() Key
Data() []byte
// KeyLocator is the name of the key/certificate which signs this certificate
KeyLocator() enc.Name
}
Cert represents a certificate one owns
type FileTpm ¶
type FileTpm struct {
// contains filtered or unexported fields
}
func (*FileTpm) GenerateKey ¶
func (*FileTpm) ToFileName ¶
type Key ¶
type Key interface {
Name() enc.Name
Identity() Identity
KeyBits() []byte
SelfSignedCert() Cert
GetCert(enc.Name) Cert
FindCert(func(Cert) bool) Cert
}
Key represents a key one owns (with both private and public keybits)
type SqliteCert ¶
type SqliteCert struct {
// contains filtered or unexported fields
}
func (*SqliteCert) AsSigner ¶
func (cert *SqliteCert) AsSigner() ndn.Signer
func (*SqliteCert) Data ¶
func (cert *SqliteCert) Data() []byte
func (*SqliteCert) Key ¶
func (cert *SqliteCert) Key() Key
func (*SqliteCert) KeyLocator ¶
func (cert *SqliteCert) KeyLocator() enc.Name
func (*SqliteCert) Name ¶
func (cert *SqliteCert) Name() enc.Name
type SqliteIdent ¶
type SqliteIdent struct {
// contains filtered or unexported fields
}
func (*SqliteIdent) Name ¶
func (iden *SqliteIdent) Name() enc.Name
type SqliteKey ¶
type SqliteKey struct {
// contains filtered or unexported fields
}
func (*SqliteKey) SelfSignedCert ¶
type SqlitePib ¶
type SqlitePib struct {
// contains filtered or unexported fields
}
func NewSqlitePib ¶
func (*SqlitePib) GetSignerForCert ¶
Click to show internal directories.
Click to hide internal directories.