|
SharkSSL C/C++ Reference
TLS, cryptography, certificates, and PSA integration
|
#include <stddef.h>#include <stdint.h>Go to the source code of this file.
Macros | |
| #define | SHARKSSL_CRACEN_SM4_BLOCK_LEN 16 |
| SM4 block size in bytes. More... | |
| #define | SHARKSSL_CRACEN_SM4_KEY_LEN 16 |
| SM4 key size in bytes. More... | |
| #define | SHARKSSL_CRACEN_SM4_MODE_ECB 0 |
| Electronic codebook mode, without padding. More... | |
| #define | SHARKSSL_CRACEN_SM4_MODE_CBC 1 |
| Cipher block chaining mode, without padding. More... | |
| #define | SHARKSSL_CRACEN_SM4_MODE_CTR 2 |
| Counter mode, including partial final blocks. More... | |
| #define | SHARKSSL_CRACEN_SM4_OK 0 |
| Operation succeeded (0). More... | |
| #define | SHARKSSL_CRACEN_SM4_BAD_ARGUMENT -1 |
| Invalid argument or unsupported input size. More... | |
| #define | SHARKSSL_CRACEN_SM4_UNAVAILABLE -2 |
| Required hardware or capability unavailable. More... | |
| #define | SHARKSSL_CRACEN_SM4_HARDWARE_ERROR -3 |
| Hardware operation failed. More... | |
Functions | |
| int | sharkssl_CRACENSM4_crypt (unsigned int mode, unsigned int decrypt, const uint8_t *key, const uint8_t *iv, const uint8_t *input, size_t inputLen, uint8_t *output, size_t outputSize) |
| Encrypt or decrypt using SM4-128 on Nordic CRACEN. More... | |
See SharkSSL Nordic CRACEN integration for required sources and platform setup.