Documentation ¶
Index ¶
- Constants
- func RegisterProvider(name string, factory ProviderFactory)
- type Aes
- type BlockCipher
- type Cbc
- type Des
- type Dukpt
- type Ecb
- type FixedKey
- type Gcm
- type Hmac
- type Key
- type KeyAttributes
- type KeyCapability
- type KeyType
- type Mechanism
- type Provider
- type ProviderFactory
- type Random
- type Session
- type Sha1
- type Sha256
- type Sha512
- type Tdes
Constants ¶
View Source
const ( AesKey = 1 DesKey = 2 TdesKey = 3 RsaKey = 3 DsaKey = 4 RawKey = 5 )
Variables ¶
This section is empty.
Functions ¶
func RegisterProvider ¶
func RegisterProvider(name string, factory ProviderFactory)
Types ¶
type BlockCipher ¶
type Gcm ¶
type KeyAttributes ¶
type KeyCapability ¶
type KeyCapability uint
type Session ¶
type Session interface { ListKeys() ([]string, error) FindKey(id string) (Key, bool, error) Encrypt(mech Mechanism, key Key, in []byte) ([]byte, error) Decrypt(mech Mechanism, key Key, in []byte) ([]byte, error) Translate(mech Mechanism, inKey Key, in []byte, outKey Key) ([]byte, error) Wrap(mech Mechanism, kek, key Key) ([]byte, error) Unwrap(mech Mechanism, kek Key, key []byte, attributes KeyAttributes) (Key, error) Generate(mech Mechanism, attributes KeyAttributes) (Key, error) Derive(mech Mechanism, key Key, attributes KeyAttributes) (Key, error) Hash(mech Mechanism, in []byte) ([]byte, error) Close() error }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.