Sailfish Crypto
API DocumentationKey QML Type
An instance of a key which can be used for cryptographic operations. More...
Import Statement: | import Sailfish.Crypto 1.0 |
Instantiates: | Key |
Properties
- algorithm : enumeration
- collectionName : string
- componentConstraints : flags
- customParameters : Array
- filterDataFields : Array
- name : string
- operations : flags
- origin : enumeration
- privateKey : ArrayBuffer
- publicKey : ArrayBuffer
- secretKey : ArrayBuffer
- size : int
- storagePluginName : string
Methods
- string filterData(string field)
- bool hasFilterData(string field)
- void setFilterData(string field, string value)
Detailed Description
Property Documentation
the cryptosystem algorithm this key is intended to be used with
Constant | Description |
---|---|
AlgorithmUnknown | |
AlgorithmCustom | |
AlgorithmRsa | |
AlgorithmDsa | |
AlgorithmDh | |
AlgorithmEc | |
AlgorithmEcDsa | |
AlgorithmEdDsa | |
AlgorithmEcDh | |
AlgorithmEcMqv | |
AlgorithmAes | |
AlgorithmGost | |
AlgorithmTdea | |
AlgorithmTdes | = AlgorithmTdea |
AlgorithmBlowfish | |
AlgorithmSalsa | |
AlgorithmSalsa20 | = AlgorithmSalsa |
AlgorithmChaCha | |
AlgorithmChaCha20 | = AlgorithmChaCh |
AlgorithmRc4 | |
AlgorithmRc5 | |
AlgorithmRc6 | |
AlgorithmSquare | |
AlgorithmSerpent | |
AlgorithmPanama |
The types of key components which the client is allowed to retrieve after the key has been stored
Constant | Description |
---|---|
NoData | |
MetaData | |
PublicKeyData | |
PrivateKeyData | |
SecretKeyData | = PrivateKeyData |
The set of operations which are supported for this key
Constant | Value |
---|---|
OperationUnknown | |
OperationCustom | |
OperationSign | |
OperationVerify | |
OperationEncrypt | |
OperationDecrypt | |
OperationCalculateDigest | |
OperationCalculateMac | |
OperationDeriveKey |
Ynformation about the origin of the key
Constant | Value |
---|---|
OriginUnknown | |
OriginImported | |
OriginDevice | |
OriginSecureDevice |
The private key data associated with this key (asymmetric cryptosystems only)
The public key data associated with this key (asymmetric cryptosystems only)
The private key data associated with this key (symmetric cryptosystems only)
Method Documentation
Returns true if the key has a filter data value specified for the given field.
Sets filter data for the given field to the given value.