1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/crypto: Make internal functions static

This commit is contained in:
Mathias Tausig 2020-01-07 21:23:13 +01:00
parent 3382a089a8
commit f266275afb

View File

@ -34,7 +34,7 @@ static inline int min(int a, int b)
}
}
int ccm_compute_cbc_mac(cipher_t *cipher, const uint8_t iv[16],
static int ccm_compute_cbc_mac(cipher_t *cipher, const uint8_t iv[16],
const uint8_t *input, size_t length, uint8_t *mac)
{
uint8_t offset, block_size, mac_enc[16] = { 0 };
@ -63,7 +63,7 @@ int ccm_compute_cbc_mac(cipher_t *cipher, const uint8_t iv[16],
}
int ccm_create_mac_iv(cipher_t *cipher, uint8_t auth_data_len, uint8_t M,
static int ccm_create_mac_iv(cipher_t *cipher, uint8_t auth_data_len, uint8_t M,
uint8_t L, const uint8_t *nonce, uint8_t nonce_len,
size_t plaintext_len, uint8_t X1[16])
{
@ -99,7 +99,7 @@ int ccm_create_mac_iv(cipher_t *cipher, uint8_t auth_data_len, uint8_t M,
return 0;
}
int ccm_compute_adata_mac(cipher_t *cipher, const uint8_t *auth_data,
static int ccm_compute_adata_mac(cipher_t *cipher, const uint8_t *auth_data,
uint32_t auth_data_len, uint8_t X1[16])
{
if (auth_data_len > 0) {