Changeset 0639afc in mainline


Ignore:
Timestamp:
2025-04-18T18:52:01Z (6 weeks ago)
Author:
GitHub <noreply@…>
Branches:
master
Children:
23d4e6ae, 4f63e1b2, 55a81a31, 6f41c21f, 9fc15f90
Parents:
25fdb2d
git-author:
Miroslav Cimerman <70661600+mcimerman@…> (2025-04-18 18:52:01)
git-committer:
GitHub <noreply@…> (2025-04-18 18:52:01)
Message:

libcrypto: create_hash(): const qual for input arg (#250)

Location:
uspace/lib/crypto
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/crypto/crypto.c

    r25fdb2d r0639afc  
    196196 *
    197197 */
    198 errno_t create_hash(uint8_t *input, size_t input_size, uint8_t *output,
     198errno_t create_hash(const uint8_t *input, size_t input_size, uint8_t *output,
    199199    hash_func_t hash_sel)
    200200{
  • uspace/lib/crypto/crypto.h

    r25fdb2d r0639afc  
    5454extern errno_t aes_encrypt(uint8_t *, uint8_t *, uint8_t *);
    5555extern errno_t aes_decrypt(uint8_t *, uint8_t *, uint8_t *);
    56 extern errno_t create_hash(uint8_t *, size_t, uint8_t *, hash_func_t);
     56extern errno_t create_hash(const uint8_t *, size_t, uint8_t *, hash_func_t);
    5757extern errno_t hmac(uint8_t *, size_t, uint8_t *, size_t, uint8_t *, hash_func_t);
    5858extern errno_t pbkdf2(uint8_t *, size_t, uint8_t *, size_t, uint8_t *);
Note: See TracChangeset for help on using the changeset viewer.