Replace ccm status flags with bitshifts.

Signed-off-by: Mateusz Starzyk <mateusz.starzyk@mobica.com>
This commit is contained in:
Mateusz Starzyk 2021-07-27 13:49:54 +02:00
parent 4df9ac4882
commit a9cbdfbb34

View File

@ -107,9 +107,9 @@ void mbedtls_ccm_free( mbedtls_ccm_context *ctx )
}
#define CCM_STATE__CLEAR 0
#define CCM_STATE__STARTED 0x0001
#define CCM_STATE__LENGHTS_SET 0x0002
#define CCM_STATE__ERROR 0x0004
#define CCM_STATE__STARTED (1 << 0)
#define CCM_STATE__LENGHTS_SET (1 << 1)
#define CCM_STATE__ERROR (1 << 2)
/*
* Encrypt or decrypt a partial block with CTR