Versions in this module Expand all Collapse all v1 v1.0.48 May 8, 2018 v1.0.44 Feb 21, 2018 Changes in this version + const AuthTokenMinRefreshSeconds + const EnvTestRootCertPEM + const SigED25519 + const SigED25519ForKBFS + const TestRootCert + const TestRootKey + var PublicTLFCryptKey = MakeTLFCryptKey([32]byte{ ... }) + func DecryptBlock(encryptedBlock EncryptedBlock, key BlockCryptKey) ([]byte, error) + func DecryptPrivateMetadata(encryptedPrivateMetadata EncryptedPrivateMetadata, key TLFCryptKey) ([]byte, error) + func GetRootCerts(serverAddr string, certGetter func(host string) (certsBundle []byte, ok bool)) []byte + func MakeRandomTLFEphemeralKeys() (TLFEphemeralPublicKey, TLFEphemeralPrivateKey, error) + func RandRead(buf []byte) error + func Verify(msg []byte, sigInfo SignatureInfo) error + func VerifyTLFCryptKeyServerHalfID(serverHalfID TLFCryptKeyServerHalfID, user keybase1.UID, ...) error + type AuthToken struct + func NewAuthToken(signer Signer, tokenType string, expireIn int, submoduleName, version string, ...) *AuthToken + func (a *AuthToken) Shutdown() + func (a *AuthToken) Sign(ctx context.Context, currentUsername libkb.NormalizedUsername, ...) (string, error) + func (a *AuthToken) SignUserless(ctx context.Context, key VerifyingKey) (string, error) + type AuthTokenRefreshHandler interface + RefreshAuthToken func(context.Context) + type BlockCryptKey struct + func MakeBlockCryptKey(data [32]byte) BlockCryptKey + func UnmaskBlockCryptKey(serverHalf BlockCryptKeyServerHalf, tlfCryptKey TLFCryptKey) BlockCryptKey + func (c *BlockCryptKey) UnmarshalBinary(data []byte) error + func (c *BlockCryptKey) UnmarshalText(data []byte) error + func (c BlockCryptKey) Data() [32]byte + func (c BlockCryptKey) MarshalBinary() (data []byte, err error) + func (c BlockCryptKey) MarshalText() ([]byte, error) + func (c BlockCryptKey) String() string + type BlockCryptKeyServerHalf struct + func MakeBlockCryptKeyServerHalf(data [32]byte) BlockCryptKeyServerHalf + func MakeRandomBlockCryptKeyServerHalf() (serverHalf BlockCryptKeyServerHalf, err error) + func ParseBlockCryptKeyServerHalf(s string) (BlockCryptKeyServerHalf, error) + func (c *BlockCryptKeyServerHalf) UnmarshalBinary(data []byte) error + func (c *BlockCryptKeyServerHalf) UnmarshalText(data []byte) error + func (c BlockCryptKeyServerHalf) Bytes() []byte + func (c BlockCryptKeyServerHalf) Data() [32]byte + func (c BlockCryptKeyServerHalf) MarshalBinary() (data []byte, err error) + func (c BlockCryptKeyServerHalf) MarshalText() ([]byte, error) + func (c BlockCryptKeyServerHalf) String() string + type CryptPrivateKey struct + func MakeFakeCryptPrivateKeyOrBust(seed string) CryptPrivateKey + func NewCryptPrivateKey(kp libkb.NaclDHKeyPair) CryptPrivateKey + func (k CryptPrivateKey) Data() [32]byte + func (k CryptPrivateKey) GetPublicKey() CryptPublicKey + type CryptPublicKey struct + func MakeCryptPublicKey(kid keybase1.KID) CryptPublicKey + func MakeFakeCryptPublicKeyOrBust(seed string) CryptPublicKey + func (k *CryptPublicKey) UnmarshalBinary(data []byte) error + func (k *CryptPublicKey) UnmarshalJSON(s []byte) error + func (k CryptPublicKey) KID() keybase1.KID + func (k CryptPublicKey) MarshalBinary() (data []byte, err error) + func (k CryptPublicKey) MarshalJSON() ([]byte, error) + func (k CryptPublicKey) String() string + type EncryptedBlock struct + func EncryptPaddedEncodedBlock(paddedEncodedBlock []byte, key BlockCryptKey) (encryptedBlock EncryptedBlock, err error) + func (ed EncryptedBlock) Size() int + func (ed EncryptedBlock) String() string + type EncryptedPrivateMetadata struct + func EncryptEncodedPrivateMetadata(encodedPrivateMetadata []byte, key TLFCryptKey) (encryptedPrivateMetadata EncryptedPrivateMetadata, err error) + func (ed EncryptedPrivateMetadata) Size() int + func (ed EncryptedPrivateMetadata) String() string + type EncryptedTLFCryptKeyClientHalf struct + func EncryptTLFCryptKeyClientHalf(privateKey TLFEphemeralPrivateKey, publicKey CryptPublicKey, ...) (encryptedClientHalf EncryptedTLFCryptKeyClientHalf, err error) + func MakeEncryptedTLFCryptKeyClientHalfForTest(version EncryptionVer, encodedClientHalf, nonce []byte) EncryptedTLFCryptKeyClientHalf + func (ed EncryptedTLFCryptKeyClientHalf) Size() int + func (ed EncryptedTLFCryptKeyClientHalf) String() string + type EncryptedTLFCryptKeys struct + func EncryptTLFCryptKeys(codec kbfscodec.Codec, oldKeys []TLFCryptKey, key TLFCryptKey) (encryptedTLFCryptKeys EncryptedTLFCryptKeys, err error) + func (ed EncryptedTLFCryptKeys) Size() int + func (ed EncryptedTLFCryptKeys) String() string + type EncryptionVer int + const EncryptionSecretbox + func (v EncryptionVer) String() string + type InvalidByte32DataError struct + func (e InvalidByte32DataError) Error() string + type InvalidKIDError struct + func (e InvalidKIDError) Error() string + type InvalidNonceError struct + Nonce []byte + func (e InvalidNonceError) Error() string + type SigVer int + func (v SigVer) IsNil() bool + type SignatureInfo struct + Signature []byte + VerifyingKey VerifyingKey + Version SigVer + func (s SignatureInfo) DeepCopy() SignatureInfo + func (s SignatureInfo) Equals(other SignatureInfo) bool + func (s SignatureInfo) IsNil() bool + func (s SignatureInfo) String() string + type Signer interface + Sign func(ctx context.Context, msg []byte) (sigInfo SignatureInfo, err error) + SignForKBFS func(ctx context.Context, msg []byte) (sigInfo SignatureInfo, err error) + SignToString func(ctx context.Context, msg []byte) (signature string, err error) + type SigningKey struct + func MakeFakeSigningKeyOrBust(seed string) SigningKey + func NewSigningKey(kp libkb.NaclSigningKeyPair) SigningKey + func (k SigningKey) GetVerifyingKey() VerifyingKey + func (k SigningKey) Sign(data []byte) SignatureInfo + func (k SigningKey) SignForKBFS(data []byte) (SignatureInfo, error) + func (k SigningKey) SignToString(data []byte) (sig string, err error) + type SigningKeySigner struct + Key SigningKey + func (s SigningKeySigner) Sign(ctx context.Context, data []byte) (SignatureInfo, error) + func (s SigningKeySigner) SignForKBFS(ctx context.Context, data []byte) (SignatureInfo, error) + func (s SigningKeySigner) SignToString(ctx context.Context, data []byte) (sig string, err error) + type TLFCryptKey struct + func DecryptTLFCryptKeys(codec kbfscodec.Codec, encryptedTLFCryptKeys EncryptedTLFCryptKeys, ...) ([]TLFCryptKey, error) + func MakeFakeTLFCryptKeyOrBust(seed string) TLFCryptKey + func MakeRandomTLFCryptKey() (TLFCryptKey, error) + func MakeTLFCryptKey(data [32]byte) TLFCryptKey + func UnmaskTLFCryptKey(serverHalf TLFCryptKeyServerHalf, clientHalf TLFCryptKeyClientHalf) TLFCryptKey + func (c *TLFCryptKey) UnmarshalBinary(data []byte) error + func (c *TLFCryptKey) UnmarshalText(data []byte) error + func (c TLFCryptKey) Data() [32]byte + func (c TLFCryptKey) MarshalBinary() (data []byte, err error) + func (c TLFCryptKey) MarshalText() ([]byte, error) + func (c TLFCryptKey) String() string + type TLFCryptKeyClientHalf struct + func DecryptTLFCryptKeyClientHalf(privateKey CryptPrivateKey, publicKey TLFEphemeralPublicKey, ...) (TLFCryptKeyClientHalf, error) + func MakeTLFCryptKeyClientHalf(data [32]byte) TLFCryptKeyClientHalf + func MaskTLFCryptKey(serverHalf TLFCryptKeyServerHalf, key TLFCryptKey) TLFCryptKeyClientHalf + func (c *TLFCryptKeyClientHalf) UnmarshalBinary(data []byte) error + func (c *TLFCryptKeyClientHalf) UnmarshalText(data []byte) error + func (c TLFCryptKeyClientHalf) Bytes() []byte + func (c TLFCryptKeyClientHalf) Data() [32]byte + func (c TLFCryptKeyClientHalf) MarshalBinary() (data []byte, err error) + func (c TLFCryptKeyClientHalf) MarshalText() ([]byte, error) + func (c TLFCryptKeyClientHalf) String() string + type TLFCryptKeyServerHalf struct + func MakeRandomTLFCryptKeyServerHalf() (serverHalf TLFCryptKeyServerHalf, err error) + func MakeTLFCryptKeyServerHalf(data [32]byte) TLFCryptKeyServerHalf + func (c *TLFCryptKeyServerHalf) UnmarshalBinary(data []byte) error + func (c *TLFCryptKeyServerHalf) UnmarshalText(data []byte) error + func (c TLFCryptKeyServerHalf) Bytes() []byte + func (c TLFCryptKeyServerHalf) Data() [32]byte + func (c TLFCryptKeyServerHalf) MarshalBinary() (data []byte, err error) + func (c TLFCryptKeyServerHalf) MarshalText() ([]byte, error) + func (c TLFCryptKeyServerHalf) String() string + type TLFCryptKeyServerHalfID struct + ID kbfshash.HMAC + func MakeTLFCryptKeyServerHalfID(user keybase1.UID, devicePubKey CryptPublicKey, ...) (TLFCryptKeyServerHalfID, error) + func (id TLFCryptKeyServerHalfID) String() string + type TLFEphemeralPrivateKey struct + func MakeTLFEphemeralPrivateKey(data [32]byte) TLFEphemeralPrivateKey + func (c *TLFEphemeralPrivateKey) UnmarshalBinary(data []byte) error + func (c *TLFEphemeralPrivateKey) UnmarshalText(data []byte) error + func (c TLFEphemeralPrivateKey) Data() [32]byte + func (c TLFEphemeralPrivateKey) MarshalBinary() (data []byte, err error) + func (c TLFEphemeralPrivateKey) MarshalText() ([]byte, error) + func (c TLFEphemeralPrivateKey) String() string + type TLFEphemeralPublicKey struct + func MakeTLFEphemeralPublicKey(data [32]byte) TLFEphemeralPublicKey + func (c *TLFEphemeralPublicKey) UnmarshalBinary(data []byte) error + func (c *TLFEphemeralPublicKey) UnmarshalText(data []byte) error + func (c TLFEphemeralPublicKey) Bytes() []byte + func (c TLFEphemeralPublicKey) Data() [32]byte + func (c TLFEphemeralPublicKey) MarshalBinary() (data []byte, err error) + func (c TLFEphemeralPublicKey) MarshalText() ([]byte, error) + func (c TLFEphemeralPublicKey) String() string + type TLFEphemeralPublicKeys []TLFEphemeralPublicKey + func (k TLFEphemeralPublicKeys) Size() int + type TLFPrivateKey struct + func MakeTLFPrivateKey(data [32]byte) TLFPrivateKey + func (c *TLFPrivateKey) UnmarshalBinary(data []byte) error + func (c *TLFPrivateKey) UnmarshalText(data []byte) error + func (c TLFPrivateKey) Data() [32]byte + func (c TLFPrivateKey) MarshalBinary() (data []byte, err error) + func (c TLFPrivateKey) MarshalText() ([]byte, error) + func (c TLFPrivateKey) String() string + type TLFPublicKey struct + func MakeTLFPublicKey(data [32]byte) TLFPublicKey + func (TLFPublicKey) Size() int + func (c *TLFPublicKey) UnmarshalBinary(data []byte) error + func (c *TLFPublicKey) UnmarshalText(data []byte) error + func (c TLFPublicKey) Bytes() []byte + func (c TLFPublicKey) Data() [32]byte + func (c TLFPublicKey) MarshalBinary() (data []byte, err error) + func (c TLFPublicKey) MarshalText() ([]byte, error) + func (c TLFPublicKey) String() string + type UnexpectedShortCryptoRandRead struct + func (e UnexpectedShortCryptoRandRead) Error() string + type UnknownEncryptionVer struct + Ver EncryptionVer + func (e UnknownEncryptionVer) Error() string + type UnknownSigVer struct + Ver SigVer + func (e UnknownSigVer) Error() string + type VerifyingKey struct + func MakeFakeVerifyingKeyOrBust(seed string) VerifyingKey + func MakeVerifyingKey(kid keybase1.KID) VerifyingKey + func (k *VerifyingKey) UnmarshalBinary(data []byte) error + func (k *VerifyingKey) UnmarshalJSON(s []byte) error + func (k VerifyingKey) IsNil() bool + func (k VerifyingKey) KID() keybase1.KID + func (k VerifyingKey) MarshalBinary() (data []byte, err error) + func (k VerifyingKey) MarshalJSON() ([]byte, error) + func (k VerifyingKey) String() string Incompatible versions in this module v2.11.0+incompatible Nov 30, 2018