Wunderbaeumchen
9b502027ab
sys/psa_crypto: added sha3 glue code
2024-07-13 04:35:21 +02:00
Mikolai Gütschow
ecf259579a
sys/psa_crypto: support for SHA-{384,512-{224,256}}
2024-05-14 17:06:39 +02:00
Mikolai Gütschow
9300007cf1
sys/hashes: support for SHA-{384,512/{224,256}}
...
pkg/esp32_sdk: rename sha384_init to avoid name clash
2024-03-25 12:35:10 +01:00
mguetschow
084dedcca7
Merge pull request #20116 from bergzand/pr/sha256/no_static
...
hashes/sha2{24,56}: Remove static variables from sha256
2024-01-16 16:01:56 +00:00
434e5647d0
hashes/sha224: Remove static variables from sha224
2024-01-16 16:00:44 +01:00
bac3f48dc9
hashes/sha256: Remove static variables from sha256
...
This removes the static (thread-unsafe) variables from sha256 and
hmac_sha256 to remove a potential footgun. The static variable is only
used when the caller does not supply a pointer to store the digest and
it is returned via the (undocumented) return value.
This commit removes this option and makes the digest argument mandatory.
2024-01-16 16:00:39 +01:00
Mikolai Gütschow
6935ea21e7
sys/hashes: add SHA-512 support
2023-11-29 19:18:51 +01:00
Marian Buschsieweke
edc43201db
tree-wide: fix typos in doc and comments
...
This should not change any generated binary
2023-10-16 12:17:48 +02:00
Lena Boeckmann
2584298ade
sys/hashes: Add PSA Crypto Wrappers
2023-08-31 14:38:50 +02:00
0eb5bac330
sys/hashes: remove deprecated ase cmac hashing
2023-05-19 16:01:12 +02:00
Marian Buschsieweke
e92a7164e3
sys/hash/pbkdf2: Accept passwd as void *
instead of uint8_t *
...
Having to cast a password provided as `const char *` to
`const uint8_t *` is a needless pain in the ass when using the API.
Hence, fix it by accepting passwords and salts as `const void *`
instead.
2022-11-18 13:51:32 +01:00
Martine Lenders
5e59649fda
hashes_cmac: rename to hashes_aes128_cmac
2022-08-31 10:43:25 +02:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines
2021-08-13 19:50:38 +02:00
Juan Carrano
62667848c4
sys/hashes/pbkdf2: Add PBKDF2-sha256 implementation.
...
This add an implementation of PBKDF2 using sha256 hmac. Only one derived
key length is supported (32) though it should not be hard to extend it.
The testing is done with both random (with fixed seed) vectors amd vectors
from rfc7914.
2020-11-04 09:57:32 +01:00
PeterKietzmann
f9c67e18b6
sys/hashes: inline functions in sha224/sha256
2020-06-10 10:00:30 +02:00
PeterKietzmann
344a8a5369
sys/hashes: add sha224
2020-06-10 09:40:13 +02:00
PeterKietzmann
852c58b82b
sys/hashes/sha256: extract common code
2020-06-08 23:12:11 +02:00
61db4d9724
sys/include: fix typos
2019-11-23 22:39:37 +01:00
José Alamos
2fb4a79d9a
Merge pull request #12418 from Rotzbua/doc_sha3
...
sys/hashes/sha3: docu rename hashes to FIPS 202 standard
2019-10-18 15:59:26 +02:00
Rotzbua
e296f69743
sys/hashes/sha256: fix typo in docu
2019-10-11 00:02:36 +02:00
Rotzbua
5172e6bf2e
sys/hashes/sha3: docu rename hashes to FIPS 202 standard
2019-10-10 23:58:55 +02:00
Rotzbua
5a8bac399c
drivers/ccs811: sys/hashes: fix typo usefull -> useful
2019-08-25 21:27:55 +02:00
Mathias Tausig
3ddd17b267
crypto: Fix typos in comments
2018-11-08 11:25:14 +01:00
cladmi
a052801c2f
sys/hashes/sha256: replace include by stddef.h
...
stddef.h is enough for size_t, unistd.h adds a lot of other declarations
2018-09-06 12:45:04 +02:00
1a3bb65e3c
sys/hashes/sha256: add missing unistd.h include
...
It needs `size_t` definition.
2018-09-06 11:13:12 +02:00
Jose Alamos
4865731fdd
hashes/sha3: add missing macro documentation
2018-08-28 19:28:40 +02:00
Jose Alamos
7e30e3256f
hashes/sha256: add missing macro documentation
2018-08-28 19:28:33 +02:00
Jose Alamos
6458942716
hashes/sha3: change ingroup directive
2018-08-28 19:26:10 +02:00
Jose Alamos
ea7e5a3935
hashes/sha256: change ingroup directive
2018-08-28 19:26:01 +02:00
Jose Alamos
0a29095197
hashes/sha1: change ingroup directive
2018-08-28 19:25:49 +02:00
Jose Alamos
c4b8731633
hashes/md5: change ingroup directive
2018-08-28 19:25:32 +02:00
Jose Alamos
3ee3a020c3
hashes/cmac: change ingroup directive
2018-08-28 19:25:20 +02:00
Jose Alamos
5cf0b1ae62
hasehs/sha-3: add doxygen group for sha-3
2018-08-28 19:19:36 +02:00
Jose Alamos
7c59f02639
hasehs/sha256: add doxygen group for sha256
2018-08-28 19:14:51 +02:00
Mathias Tausig
44723c9745
hashes: SHA256 documentation updated
...
Fixed typo
2018-03-06 16:18:31 +01:00
Mathias Tausig
792137f88d
hashes:sha3: Integrate SHA-3 into RIOT API
...
Add init/update/final interface
Add interface functions for direct SHA3
Add unit tests for SHA-3
Document functions and types
Reduced var scope in Keccak code
Add CCO Copyright notice to Keccak code
2018-03-06 16:18:18 +01:00
0fcc7d3834
cleanup: apply headerguard script output
2017-05-24 17:54:02 +02:00
José Alamos
5dc146269d
sys/hashes: add AES-CMAC implementation
2017-05-08 13:52:11 +02:00
Oleg Hahm
9225ede2b9
doc: hashes: fix API docs
2017-03-10 14:56:28 +01:00
BytesGalore
dacc3cba9f
Merge pull request #6283 from OTAkeys/pr/hmac_iterative_calc
...
hashes/sha256: add iterative hmac calc. functions
2017-03-01 17:14:11 +01:00
Hermann Lelong
f2ef9db988
hashes/sha256: add iterative hmac calc. functions
...
Add init, update, and final functions to do HMAC
calculation using blocks, instead of one shot.
Unit tests: use the PRF-6 test vector to test the case
where data is splitted in 3 different blocks.
2017-03-01 15:51:21 +01:00
Oleg Hahm
7ee7801c10
*: remove trailing underscores from header guards
2017-01-19 18:30:53 +01:00
Martine Lenders
3c005b64b6
Merge pull request #5692 from BytesGalore/md5_change_parameter_type
...
hashes/md5: changed data-parameter types to `void*`
2016-09-27 20:07:11 +02:00
BytesGalore
4fa3a83910
hashes/md5: changed data-parameter types to void*
2016-09-27 18:53:43 +02:00
Martine Lenders
3a204d69b4
Merge pull request #5691 from BytesGalore/sha1_change_parameter_type
...
hashes/sha1: changed data-parameter pointers to `void*`
2016-09-27 18:48:31 +02:00
BytesGalore
9818d053f4
hashes/sha256: changed data pointer parameters to void*
2016-09-27 06:36:08 +02:00
BytesGalore
68d9f07eee
hashes/sha1: changed data-parameter types to void*
2016-07-26 10:03:58 +02:00
Mathias Tausig
ca5564f643
Cleanup: Corrected code style with uncrustify
2016-05-24 16:57:06 +02:00
Mathias Tausig
dfee5c3274
hashes: Unified the cryptographic hash functions
...
- Same signatures for XXX_init, XXX_update and XXX_final
- Same naming conventions and parameter types for all funtions in sha1.h
2016-05-24 16:52:30 +02:00
BytesGalore
f0245bd648
hashes/sha256: add sha256-chain computation and verification functions
...
* also added unittetst for it
x[SQUASH ME] separated out all waypoints test and increased waypoints
2016-02-24 19:04:17 +01:00