Use standard unsigned integer types
This commit is contained in:
@@ -107,7 +107,7 @@ METHOD(hasher_t, reset, bool,
|
||||
}
|
||||
|
||||
METHOD(hasher_t, get_hash, bool,
|
||||
private_af_alg_hasher_t *this, chunk_t chunk, u_int8_t *hash)
|
||||
private_af_alg_hasher_t *this, chunk_t chunk, uint8_t *hash)
|
||||
{
|
||||
return this->ops->hash(this->ops, chunk, hash, this->size);
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ METHOD(af_alg_ops_t, hash, bool,
|
||||
}
|
||||
|
||||
METHOD(af_alg_ops_t, crypt, bool,
|
||||
private_af_alg_ops_t *this, u_int32_t type, chunk_t iv, chunk_t data,
|
||||
private_af_alg_ops_t *this, uint32_t type, chunk_t iv, chunk_t data,
|
||||
char *out)
|
||||
{
|
||||
struct msghdr msg = {};
|
||||
|
||||
@@ -64,7 +64,7 @@ struct af_alg_ops_t {
|
||||
* @param out buffer write processed data to
|
||||
* @return TRUE if successful
|
||||
*/
|
||||
bool (*crypt)(af_alg_ops_t *this, u_int32_t type, chunk_t iv, chunk_t data,
|
||||
bool (*crypt)(af_alg_ops_t *this, uint32_t type, chunk_t iv, chunk_t data,
|
||||
char *out);
|
||||
|
||||
/**
|
||||
|
||||
@@ -106,7 +106,7 @@ static size_t lookup_alg(pseudo_random_function_t algo, char **name, bool *xcbc)
|
||||
}
|
||||
|
||||
METHOD(prf_t, get_bytes, bool,
|
||||
private_af_alg_prf_t *this, chunk_t seed, u_int8_t *buffer)
|
||||
private_af_alg_prf_t *this, chunk_t seed, uint8_t *buffer)
|
||||
{
|
||||
return this->ops->hash(this->ops, seed, buffer, this->block_size);
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ static size_t lookup_alg(integrity_algorithm_t algo, char **name,
|
||||
}
|
||||
|
||||
METHOD(signer_t, get_signature, bool,
|
||||
private_af_alg_signer_t *this, chunk_t data, u_int8_t *buffer)
|
||||
private_af_alg_signer_t *this, chunk_t data, uint8_t *buffer)
|
||||
{
|
||||
return this->ops->hash(this->ops, data, buffer, this->block_size);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user