Documentation ¶
Index ¶
- Variables
- type KeyGeneratorImpl
- type KeyImportImpl
- type PrivateKey
- func (e *PrivateKey[T]) Algorithm() types.Algorithm
- func (e *PrivateKey[T]) Decrypt(_ T) (plaintext T, err error)
- func (e *PrivateKey[T]) Encrypt(_ T) (ciphertext T, err error)
- func (e *PrivateKey[T]) Export() (key T, err error)
- func (e *PrivateKey[T]) PublicKey() (key.Key[T], error)
- func (e *PrivateKey[T]) SKI() T
- func (e *PrivateKey[T]) Sign(msg T) (signature T, err error)
- func (e *PrivateKey[T]) Verify(_, _ T) (bool, error)
- type PublicKey
- func (e *PublicKey[T]) Algorithm() types.Algorithm
- func (e *PublicKey[T]) Decrypt(_ T) (T, error)
- func (e *PublicKey[T]) Encrypt(_ T) (T, error)
- func (e *PublicKey[T]) Export() (key T, err error)
- func (e *PublicKey[T]) PublicKey() (key.Key[T], error)
- func (e *PublicKey[T]) SKI() T
- func (e *PublicKey[T]) Sign(_ T) (T, error)
- func (e *PublicKey[T]) Verify(msg, signature T) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnsupportedMethod = errors.New("ecdsa: unsupported method")
)
Functions ¶
This section is empty.
Types ¶
type KeyGeneratorImpl ¶
type KeyImportImpl ¶
type PrivateKey ¶
func (*PrivateKey[T]) Algorithm ¶ added in v0.1.2
func (e *PrivateKey[T]) Algorithm() types.Algorithm
func (*PrivateKey[T]) Decrypt ¶
func (e *PrivateKey[T]) Decrypt(_ T) (plaintext T, err error)
func (*PrivateKey[T]) Encrypt ¶
func (e *PrivateKey[T]) Encrypt(_ T) (ciphertext T, err error)
func (*PrivateKey[T]) Export ¶ added in v0.1.2
func (e *PrivateKey[T]) Export() (key T, err error)
func (*PrivateKey[T]) SKI ¶
func (e *PrivateKey[T]) SKI() T
func (*PrivateKey[T]) Sign ¶
func (e *PrivateKey[T]) Sign(msg T) (signature T, err error)
func (*PrivateKey[T]) Verify ¶
func (e *PrivateKey[T]) Verify(_, _ T) (bool, error)
Click to show internal directories.
Click to hide internal directories.