| Name | Description |
|---|---|
| struct Crypto_DataBlob | Defines the data used for encryption and decryption. |
| Name | Description |
|---|---|
| typedef struct Crypto_DataBlob Crypto_DataBlob | Defines a struct for the data used for encryption and decryption. |
| Name | Description |
|---|---|
| CRYPTO_SUCCESS = 0, CRYPTO_INVALID_PARAMS = 401, CRYPTO_NOT_SUPPORT = 801, CRYPTO_MEMORY_ERROR = 17620001, CRYPTO_OPERTION_ERROR = 17630001 } | Enumerates the encryption and decryption error codes. |
| CRYPTO_ENCRYPT_MODE = 0, CRYPTO_DECRYPT_MODE = 1 } | Enumerates the cryptographic operation types. |
| Name | Description |
|---|---|
| void OH_Crypto_FreeDataBlob (Crypto_DataBlob *dataBlob) | Releases a dataBlob instance. |
typedef struct Crypto_DataBlob Crypto_DataBlob
Description
Defines a struct for the data used for encryption and decryption.
Since: 12
enum Crypto_CipherMode
Description
Enumerates the cryptographic operation types.
Since: 12
| Enum | Description |
|---|---|
| CRYPTO_ENCRYPT_MODE | Encrypt data. |
| CRYPTO_DECRYPT_MODE | Decrypt data. |
enum OH_Crypto_ErrCode
Description
Enumerates the encryption and decryption error codes.
Since: 12
| Enum | Description |
|---|---|
| CRYPTO_SUCCESS | The operation is successful. |
| CRYPTO_INVALID_PARAMS | Invalid parameters are detected. |
| CRYPTO_NOT_SUPPORT | The function or algorithm is not supported. |
| CRYPTO_MEMORY_ERROR | A memory error occurred. |
| CRYPTO_OPERTION_ERROR | The encryption or decryption operation fails. |