Skip to content

Commit 6d949ec

Browse files
Don't declare a parameter as const
Whether a parameter should be const is an implementation detail of the function, so don't declare a parameter of psa_hash_compare as const. (This only applies to parameters themselves, not to objects that pointer parameters points to.)
1 parent 20fdab1 commit 6d949ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/psa/crypto.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ psa_status_t psa_hash_compare(psa_algorithm_t alg,
932932
const uint8_t *input,
933933
size_t input_length,
934934
const uint8_t *hash,
935-
const size_t hash_length);
935+
size_t hash_length);
936936

937937
/** The type of the state data structure for multipart hash operations.
938938
*

0 commit comments

Comments
 (0)