RMW desert 5.0.0
Loading...
Searching...
No Matches
SecurityLayer.h File Reference

Class used to handle the encryption of the stream. More...

#include <cose_defines.h>
#include <cose/key.h>
#include "AeadParams.h"
Include dependency graph for SecurityLayer.h:

Go to the source code of this file.

Classes

class  security::SecurityLayer

Macros

#define DEFAULT_MASTER_SALT_LEN   16
#define COSE_SERIALIZATION_MAX_OVERHEAD   12
#define COSE_INTERNAL_BUF_SIZE   512

Enumerations

enum  SecurityResult {
  OK = 0 , PARAM_ERROR = -1 , KEY_SIZE_ERROR = -2 , KEY_ENV_ERROR = -3 ,
  NONCE_ENV_ERROR = -4 , NONCE_SIZE_ERROR = -5 , BUFFER_ERROR = -6 , CONTEXT_DERIVE_ERROR = -7 ,
  COMP_ERROR = -8 , WRAP_ERROR = -100 , UNWRAP_ERROR = -200 , INTERNAL_ERROR = -999
}

Detailed Description

Class used to handle the encryption of the stream.

This header declares the security layer used to protect application data. It derives sender and receiver contexts, builds nonces, and performs COSE wrapping and unwrapping of payloads using the selected AEAD and KDF schemes. It also manages key material, identifiers, and serialization buffers.

Author
Dmytro Ochkas