Make functions static that are only accessed from the same compilation unit

Also removed some declarations for undefined functions.
This commit is contained in:
Tobias Brunner
2022-10-05 19:00:46 +02:00
parent c58ba0cb9f
commit 7f46c76125
23 changed files with 29 additions and 70 deletions
+3 -3
View File
@@ -305,10 +305,10 @@ METHOD(mac_t, destroy, void,
free_align(this);
}
/*
* Described in header
/**
* Create a generic mac_t object using AESNI CMAC
*/
mac_t *aesni_cmac_create(encryption_algorithm_t algo, size_t key_size)
static mac_t *aesni_cmac_create(encryption_algorithm_t algo, size_t key_size)
{
private_mac_t *this;
@@ -26,14 +26,6 @@
#include <crypto/prfs/prf.h>
#include <crypto/signers/signer.h>
/**
* Create a generic mac_t object using AESNI CMAC.
*
* @param algo underlying encryption algorithm
* @param key_size size of encryption key, in bytes
*/
mac_t *aesni_cmac_create(encryption_algorithm_t algo, size_t key_size);
/**
* Creates a new prf_t object based AESNI CMAC.
*
+3 -3
View File
@@ -301,10 +301,10 @@ METHOD(mac_t, destroy, void,
free_align(this);
}
/*
* Described in header
/**
* Create a generic mac_t object using AESNI XCBC
*/
mac_t *aesni_xcbc_create(encryption_algorithm_t algo, size_t key_size)
static mac_t *aesni_xcbc_create(encryption_algorithm_t algo, size_t key_size)
{
private_aesni_mac_t *this;
@@ -26,14 +26,6 @@
#include <crypto/prfs/prf.h>
#include <crypto/signers/signer.h>
/**
* Create a generic mac_t object using AESNI XCBC
*
* @param algo underlying encryption algorithm
* @param key_size size of encryption key, in bytes
*/
mac_t *aesni_xcbc_create(encryption_algorithm_t algo, size_t key_size);
/**
* Creates a new prf_t object based AESNI XCBC.
*