Documentation ¶
Index ¶
- Variables
- func DefaultPath(domain string) string
- type CertOpts
- type FileVault
- func (self *FileVault) Domain(domain string) VaultI
- func (self *FileVault) ExportRSASecret() (*RSASecret, error)
- func (self *FileVault) ExportSecret() (*Secret, error)
- func (self *FileVault) Identity() (*Identity, error)
- func (self *FileVault) Init(interactive bool) error
- func (self *FileVault) RSAPublic() (*RSAPublic, error)
- func (self *FileVault) RSASecret() (*RSASecret, error)
- func (self *FileVault) Secret() (*Secret, error)
- func (self *FileVault) Sign(subject string, message []byte) (*Signature, error)
- func (self *FileVault) SignCertificate(template *x509.Certificate, pub *Identity) ([]byte, error)
- func (self *FileVault) SignContext(subject string, message []byte) (*Signature, error)
- func (self *FileVault) SignPrehashed(subject string, sha512 []byte) (*Signature, error)
- func (self *FileVault) SignRSACertificate(template *x509.Certificate, pub *RSAPublic) ([]byte, error)
- func (self *FileVault) XPublic() (*XPublic, error)
- type Identity
- func (self *Identity) Equal(other *Identity) bool
- func (b *Identity) MarshalJSON() ([]byte, error)
- func (self *Identity) String() string
- func (self *Identity) String58() string
- func (self *Identity) ToCertificate(opts ...CertOpts) (*x509.Certificate, error)
- func (self *Identity) ToGo() crypto.PublicKey
- func (b *Identity) UnmarshalJSON(data []byte) (err error)
- func (self *Identity) XPublic() (*XPublic, error)
- type Message
- type RSAPublic
- type RSASecret
- type Secret
- func (self *Secret) Clear()
- func (self *Secret) Domain(domain string) VaultI
- func (self *Secret) ExportRSASecret() (*RSASecret, error)
- func (self *Secret) ExportSecret() (*Secret, error)
- func (self *Secret) Identity() (*Identity, error)
- func (self *Secret) Init(interactive bool) error
- func (self *Secret) RSAPublic() (*RSAPublic, error)
- func (self *Secret) Sign(subject string, message []byte) (*Signature, error)
- func (self *Secret) SignCertificate(template *x509.Certificate, pub *Identity) ([]byte, error)
- func (self *Secret) SignContext(subject string, message []byte) (*Signature, error)
- func (self *Secret) SignPrehashed(subject string, sha512 []byte) (*Signature, error)
- func (self *Secret) SignRSACertificate(template *x509.Certificate, pub *RSAPublic) ([]byte, error)
- func (self *Secret) String() string
- func (self *Secret) ToGo() crypto.Signer
- func (self *Secret) ToPem() ([]byte, error)
- func (self *Secret) ToString() string
- func (self *Secret) XPublic() (*XPublic, error)
- func (self *Secret) XSecret() *XSecret
- func (self *Secret) Xor(otp *Secret) Secret
- type SecretKit
- type Serial
- type Signature
- func (b *Signature) MarshalJSON() ([]byte, error)
- func (self *Signature) String() string
- func (b *Signature) UnmarshalJSON(data []byte) (err error)
- func (self *Signature) Verify(subject string, message []byte, signer *Identity) bool
- func (self *Signature) VerifyContext(context string, message []byte, signer *Identity) error
- func (self *Signature) VerifyPrehashed(context string, sha512 []byte, signer *Identity) error
- type Signer
- type VaultI
- type XPublic
- type XSecret
Constants ¶
This section is empty.
Variables ¶
View Source
var RSAError = errors.New("IDENTITYKIT_SECRET environment variable is incompatible with rsa secrets")
Functions ¶
func DefaultPath ¶
Types ¶
type FileVault ¶
type FileVault struct {
// contains filtered or unexported fields
}
func (*FileVault) ExportRSASecret ¶
func (*FileVault) ExportSecret ¶
func (*FileVault) SignCertificate ¶
func (*FileVault) SignContext ¶
func (*FileVault) SignPrehashed ¶
func (*FileVault) SignRSACertificate ¶
type Identity ¶
type Identity [32]byte // type 9
func IdentityFromSecret ¶
func IdentityFromString ¶
func (*Identity) MarshalJSON ¶
func (*Identity) ToCertificate ¶
func (self *Identity) ToCertificate(opts ...CertOpts) (*x509.Certificate, error)
func (*Identity) UnmarshalJSON ¶
type Message ¶
func MessageFromString ¶
type RSAPublic ¶
func (*RSAPublic) ToCertificate ¶
func (self *RSAPublic) ToCertificate(opts ...CertOpts) (*x509.Certificate, error)
type RSASecret ¶
type RSASecret rsa.PrivateKey // type 5
func CreateRSASecret ¶
func RSASecretFromString ¶
type Secret ¶
type Secret [32]byte // type 3
func CreateSecret ¶
func SecretFromString ¶
func (*Secret) ExportRSASecret ¶
func (*Secret) ExportSecret ¶
func (*Secret) SignCertificate ¶
func (*Secret) SignContext ¶
func (*Secret) SignPrehashed ¶
func (*Secret) SignRSACertificate ¶
type Signature ¶
type Signature [64]byte // type 10
func SignatureFromString ¶
func (*Signature) MarshalJSON ¶
func (*Signature) UnmarshalJSON ¶
func (*Signature) VerifyContext ¶
type VaultI ¶
type VaultI interface { Init(interactive bool) error Domain(string) VaultI Identity() (*Identity, error) XPublic() (*XPublic, error) RSAPublic() (*RSAPublic, error) // Deprecated: use SignContext instead, which is the standardized Ed25519ctx variant Sign(context string, message []byte) (*Signature, error) SignContext(context string, message []byte) (*Signature, error) SignPrehashed(context string, sha512 []byte) (*Signature, error) SignCertificate(template *x509.Certificate, pub *Identity) ([]byte, error) SignRSACertificate(template *x509.Certificate, pub *RSAPublic) ([]byte, error) // will error for HSM, so use the other methods ExportSecret() (*Secret, error) ExportRSASecret() (*RSASecret, error) }
type XPublic ¶
type XPublic [32]byte // type 6
func XPublicFromSecret ¶
func XPublicFromString ¶
func (*XPublic) MarshalJSON ¶
func (*XPublic) UnmarshalJSON ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.