diff options
author | Hubert Chathi <hubert@uhoreg.ca> | 2019-05-14 12:53:19 -0400 |
---|---|---|
committer | Hubert Chathi <hubert@uhoreg.ca> | 2019-05-14 12:53:19 -0400 |
commit | 0757e6df409c3a625dd4d1c186d4a990ec1ca172 (patch) | |
tree | 81dc48f642c4c0c624be9727c6488ab6dd5aa106 /src/sas.c | |
parent | 769d013ef7b20757d2f83ab2e933f660e38de2a7 (diff) |
add comment about input buffers being overwritten
also make some params const where possible
Diffstat (limited to 'src/sas.c')
-rw-r--r-- | src/sas.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -120,7 +120,7 @@ size_t olm_sas_mac_length( size_t olm_sas_calculate_mac( OlmSAS * sas, - void * input, size_t input_length, + const void * input, size_t input_length, const void * info, size_t info_length, void * mac, size_t mac_length ) { @@ -143,7 +143,7 @@ size_t olm_sas_calculate_mac( // for compatibility with an old version of Riot size_t olm_sas_calculate_mac_long_kdf( OlmSAS * sas, - void * input, size_t input_length, + const void * input, size_t input_length, const void * info, size_t info_length, void * mac, size_t mac_length ) { |