Sailfish Crypto
API DocumentationCipherRequest QML Type
Allows the client to request a cipher session from the system crypto service More...
| Import Statement: | import Sailfish.Crypto 1.0 | 
| Instantiates: | CipherRequest | 
| Inherits: | 
Properties
- blockMode : enumeration
 - cipherMode : enumeration
 - cryptoPluginName : string
 - data : ArrayBuffer
 - digestFunction : enumeration
 - encryptionPadding : enumeration
 - generatedData : ArrayBuffer
 - initializationVector : ArrayBuffer
 - key : Key
 - operation : enumeration
 - signaturePadding : enumeration
 - verificationStatus : Sailfish::Crypto::CryptoManager::VerificationStatus
 
Detailed Description
Property Documentation
The block mode which should be used when encrypting the data
| Constant | Value | 
|---|---|
BlockModeUnknown | |
BlockModeCustom | |
BlockModeEcb | |
BlockModeCbc | |
BlockModePcbc | |
BlockModeCfb1 | |
BlockModeCfb8 | |
BlockModeCfb128 | |
BlockModeOfb | |
BlockModeCtr | |
BlockModeGcm | |
BlockModeLrw | |
BlockModeXex | |
BlockModeXts | |
BlockModeCmc | |
BlockModeEme | |
BlockModeCcm | 
The mode which the client wishes to apply to the cipher session
| Constant | Value | 
|---|---|
InitializeCipher | |
UpdateCipherAuthentication | |
UpdateCipher | |
FinalizeCipher | 
The name of the crypto plugin which the client wishes to perform the encryption operation
The digest which should be used when signing or verifying the data
| Constant | Description | 
|---|---|
DigestUnknown | |
DigestCustom | |
DigestMd5 | |
DigestSha1 | |
DigestSha2_224 | |
DigestSha2_256 | |
DigestSha256 | = DigestSha2_256 | 
DigestSha2_384 | |
DigestSha2_512 | |
DigestSha512 | = DigestSha2_512 | 
DigestSha2_512_224 | |
DigestSha2_512_256 | |
DigestSha3_224 | |
DigestSha3_256 | |
DigestSha3_384 | |
DigestSha3_512 | |
DigestShake128 | |
DigestShake256 | |
DigestGost_94 | |
DigestGost_2012_256 | |
DigestGost_2012_512 | |
DigestBlake | |
DigestBlake2 | |
DigestBlake2b | |
DigestBlake2s | |
DigestWhirlpool | |
DigestRipeMd | |
DigestRipeMd128_256 | |
DigestRipeMd160 | |
DigestRipeMd320 | |
DigestTiger | |
DigestTiger128 | |
DigestTiger160 | |
DigestTiger192 | |
DigestTiger2 | |
DigestTiger2_128 | |
DigestTiger2_160 | |
DigestTiger2_192 | |
DigestRadioGatun | 
The encryption padding mode which should be used when encrypting or decrypting the data
| Constant | Value | 
|---|---|
EncryptionPaddingUnknown | |
EncryptionPaddingCustom | |
EncryptionPaddingNone | |
EncryptionPaddingPkcs7 | |
EncryptionPaddingRsaOaep | |
EncryptionPaddingRsaOaepMgf1 | |
EncryptionPaddingRsaPkcs1 | |
EncryptionPaddingAnsiX923 | 
Returns the generated data result of the cipher operation.
Note: this value is only valid if the status of the request is Request.Finished
The initialization vector which the client wishes to use when encrypting or decrypting the data
key : Key  | 
The key which the client wishes the system service to use to encrypt the data
The operation which the client wishes to perform with the cipher session
| Constant | Value | 
|---|---|
OperationUnknown | |
OperationCustom | |
OperationSign | |
OperationVerify | |
OperationEncrypt | |
OperationDecrypt | |
OperationCalculateDigest | |
OperationCalculateMac | |
OperationDeriveKey | 
The signature padding mode which should be used when signing or verifying the data
| Constant | Description | 
|---|---|
SignaturePaddingUnknown | |
SignaturePaddingCustom | |
SignaturePaddingNone | |
SignaturePaddingRsaPss | |
SignaturePaddingRsaPkcs1 | = EncryptionPaddingRsaPkcs1 | 
SignaturePaddingAnsiX923 | = EncryptionPaddingAnsiX923 | 
verificationStatus : Sailfish::Crypto::CryptoManager::VerificationStatus  | 
Returns the result of the verify operation.
Note: this value is only valid if the status of the request is Request.Finished and the cipher session has been finalized and the operation was CryptoManager.OperationVerify
| Constant | Value | 
|---|---|
VerificationStatusUnknown | |
VerificationSucceeded | |
VerificationFailed | |
VerificationSignatureInvalid | |
VerificationSignatureExpired | |
VerificationKeyExpired | |
VerificationKeyRevoked | |
VerificationKeyInvalid |