Documentation ¶
Index ¶
- type AesCTR
- type AesGCM
- type ChaCha20Poly1305
- type Ed25519
- func (ed *Ed25519) BurnKey(signet tools.SignetInt) error
- func (ed *Ed25519) GenerateKey(signet tools.SignetInt) error
- func (ed *Ed25519) LoadKey(signet tools.SignetInt) error
- func (ed *Ed25519) Sign(data, associatedData []byte, signet tools.SignetInt) ([]byte, error)
- func (ed *Ed25519) StoreKey(signet tools.SignetInt) error
- func (ed *Ed25519) Verify(data, associatedData, signature []byte, signet tools.SignetInt) error
- type HKDF
- type HMAC
- type PBKDF2
- type Poly1305
- type RsaOAEP
- func (base *RsaOAEP) BurnKey(signet tools.SignetInt) error
- func (oaep *RsaOAEP) EncapsulateKey(key []byte, signet tools.SignetInt) ([]byte, error)
- func (base *RsaOAEP) GenerateKey(signet tools.SignetInt) error
- func (base *RsaOAEP) LoadKey(signet tools.SignetInt) error
- func (base *RsaOAEP) SecurityLevel(signet tools.SignetInt) (int, error)
- func (base *RsaOAEP) StoreKey(signet tools.SignetInt) error
- func (oaep *RsaOAEP) UnwrapKey(wrappedKey []byte, signet tools.SignetInt) ([]byte, error)
- type RsaPSS
- func (base *RsaPSS) BurnKey(signet tools.SignetInt) error
- func (base *RsaPSS) GenerateKey(signet tools.SignetInt) error
- func (base *RsaPSS) LoadKey(signet tools.SignetInt) error
- func (base *RsaPSS) SecurityLevel(signet tools.SignetInt) (int, error)
- func (pss *RsaPSS) Sign(data, associatedData []byte, signet tools.SignetInt) ([]byte, error)
- func (base *RsaPSS) StoreKey(signet tools.SignetInt) error
- func (pss *RsaPSS) Verify(data, associatedData, signature []byte, signet tools.SignetInt) error
- type SCRYPT
- type Salsa20
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AesCTR ¶
type AesCTR struct { tools.ToolLogicBase // contains filtered or unexported fields }
AesCTR implements the cryptographic interface for AES-CTR encryption.
type AesGCM ¶
type AesGCM struct { tools.ToolLogicBase // contains filtered or unexported fields }
AesGCM implements the cryptographic interface for AES-GCM encryption.
func (*AesGCM) AuthenticatedDecrypt ¶
AuthenticatedDecrypt implements the ToolLogic interface.
func (*AesGCM) AuthenticatedEncrypt ¶
AuthenticatedEncrypt implements the ToolLogic interface.
type ChaCha20Poly1305 ¶
type ChaCha20Poly1305 struct { tools.ToolLogicBase // contains filtered or unexported fields }
ChaCha20Poly1305 implements the cryptographic interface for ChaCha20-Poly1305 encryption.
func (*ChaCha20Poly1305) AuthenticatedDecrypt ¶
func (chapo *ChaCha20Poly1305) AuthenticatedDecrypt(data, associatedData []byte) ([]byte, error)
AuthenticatedDecrypt implements the ToolLogic interface.
func (*ChaCha20Poly1305) AuthenticatedEncrypt ¶
func (chapo *ChaCha20Poly1305) AuthenticatedEncrypt(data, associatedData []byte) ([]byte, error)
AuthenticatedEncrypt implements the ToolLogic interface.
func (*ChaCha20Poly1305) Reset ¶
func (chapo *ChaCha20Poly1305) Reset() error
Reset implements the ToolLogic interface.
func (*ChaCha20Poly1305) Setup ¶
func (chapo *ChaCha20Poly1305) Setup() (err error)
Setup implements the ToolLogic interface.
type Ed25519 ¶
type Ed25519 struct {
tools.ToolLogicBase
}
Ed25519 implements the cryptographic interface for Ed25519 signatures.
func (*Ed25519) BurnKey ¶
BurnKey implements the ToolLogic interface. This is currently ineffective, see known issues in the project's README.
func (*Ed25519) GenerateKey ¶
GenerateKey implements the ToolLogic interface.
type HKDF ¶
type HKDF struct { tools.ToolLogicBase // contains filtered or unexported fields }
HKDF implements the cryptographic interface for HKDF key derivation.
func (*HKDF) DeriveKeyWriteTo ¶
DeriveKeyWriteTo implements the ToolLogic interface.
type HMAC ¶
type HMAC struct { tools.ToolLogicBase // contains filtered or unexported fields }
HMAC implements the cryptographic interface for HMAC message authentication codes.
type PBKDF2 ¶
type PBKDF2 struct { tools.ToolLogicBase // contains filtered or unexported fields }
PBKDF2 implements the cryptographic interface for PBKDF2 password derivation.
type Poly1305 ¶
type Poly1305 struct { tools.ToolLogicBase // contains filtered or unexported fields }
Poly1305 implements the cryptographic interface for Poly1305 message authentication codes.
type RsaOAEP ¶
type RsaOAEP struct {
// contains filtered or unexported fields
}
RsaOAEP implements the cryptographic interface for RSA OAEP encryption.
func (*RsaOAEP) BurnKey ¶
BurnKey implements the ToolLogic interface. This is currently ineffective, see known issues in the project's README.
func (*RsaOAEP) EncapsulateKey ¶
EncapsulateKey implements the ToolLogic interface.
func (*RsaOAEP) GenerateKey ¶
GenerateKey implements the ToolLogic interface.
func (*RsaOAEP) SecurityLevel ¶
SecurityLevel implements the ToolLogic interface.
type RsaPSS ¶
type RsaPSS struct {
// contains filtered or unexported fields
}
RsaPSS implements the cryptographic interface for RSA PSS signatures.
func (*RsaPSS) BurnKey ¶
BurnKey implements the ToolLogic interface. This is currently ineffective, see known issues in the project's README.
func (*RsaPSS) GenerateKey ¶
GenerateKey implements the ToolLogic interface.
func (*RsaPSS) SecurityLevel ¶
SecurityLevel implements the ToolLogic interface.
type SCRYPT ¶
type SCRYPT struct { tools.ToolLogicBase // contains filtered or unexported fields }
SCRYPT implements the cryptographic interface for SCRYPT password derivation.
type Salsa20 ¶
type Salsa20 struct { tools.ToolLogicBase // contains filtered or unexported fields }
Salsa20 implements the cryptographic interface for Salsa20 encryption.