Changeset b7fd2a0 in mainline for uspace/lib/crypto
- Timestamp:
- 2018-01-13T03:10:29Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- Location:
- uspace/lib/crypto
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/crypto/aes.c
r36f0738 rb7fd2a0 459 459 * 460 460 */ 461 int aes_encrypt(uint8_t *key, uint8_t *input, uint8_t *output)461 errno_t aes_encrypt(uint8_t *key, uint8_t *input, uint8_t *output) 462 462 { 463 463 if ((!key) || (!input)) … … 511 511 * 512 512 */ 513 int aes_decrypt(uint8_t *key, uint8_t *input, uint8_t *output)513 errno_t aes_decrypt(uint8_t *key, uint8_t *input, uint8_t *output) 514 514 { 515 515 if ((!key) || (!input)) -
uspace/lib/crypto/crypto.c
r36f0738 rb7fd2a0 194 194 * 195 195 */ 196 int create_hash(uint8_t *input, size_t input_size, uint8_t *output,196 errno_t create_hash(uint8_t *input, size_t input_size, uint8_t *output, 197 197 hash_func_t hash_sel) 198 198 { … … 266 266 * 267 267 */ 268 int hmac(uint8_t *key, size_t key_size, uint8_t *msg, size_t msg_size,268 errno_t hmac(uint8_t *key, size_t key_size, uint8_t *msg, size_t msg_size, 269 269 uint8_t *hash, hash_func_t hash_sel) 270 270 { … … 322 322 * 323 323 */ 324 int pbkdf2(uint8_t *pass, size_t pass_size, uint8_t *salt, size_t salt_size,324 errno_t pbkdf2(uint8_t *pass, size_t pass_size, uint8_t *salt, size_t salt_size, 325 325 uint8_t *hash) 326 326 { -
uspace/lib/crypto/crypto.h
r36f0738 rb7fd2a0 51 51 } hash_func_t; 52 52 53 extern int rc4(uint8_t *, size_t, uint8_t *, size_t, size_t, uint8_t *);54 extern int aes_encrypt(uint8_t *, uint8_t *, uint8_t *);55 extern int aes_decrypt(uint8_t *, uint8_t *, uint8_t *);56 extern int create_hash(uint8_t *, size_t, uint8_t *, hash_func_t);57 extern int hmac(uint8_t *, size_t, uint8_t *, size_t, uint8_t *, hash_func_t);58 extern int pbkdf2(uint8_t *, size_t, uint8_t *, size_t, uint8_t *);53 extern errno_t rc4(uint8_t *, size_t, uint8_t *, size_t, size_t, uint8_t *); 54 extern errno_t aes_encrypt(uint8_t *, uint8_t *, uint8_t *); 55 extern 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); 57 extern errno_t hmac(uint8_t *, size_t, uint8_t *, size_t, uint8_t *, hash_func_t); 58 extern errno_t pbkdf2(uint8_t *, size_t, uint8_t *, size_t, uint8_t *); 59 59 60 60 extern uint16_t crc16_ibm(uint16_t crc, uint8_t *buf, size_t len); -
uspace/lib/crypto/rc4.c
r36f0738 rb7fd2a0 88 88 * 89 89 */ 90 int rc4(uint8_t *key, size_t key_size, uint8_t *input, size_t input_size,90 errno_t rc4(uint8_t *key, size_t key_size, uint8_t *input, size_t input_size, 91 91 size_t skip, uint8_t *output) 92 92 {
Note:
See TracChangeset
for help on using the changeset viewer.