Commit Graph

7 Commits (362077d3d53b1ffb32e7151367940d411d04df64)

Author SHA1 Message Date
René Kijewski 2cf4253710 sys: add ChaCha stream cipher and PRNG
This implementation is optimized for a little code and data size, not
for speed. IMO the code is more readable than in the reference
implementation.

The biggest advantage of ChaCha over other stream ciphers is the very
little data usage with only 64 bytes of context, and its good encryption
speed.

Also part of this PR is pseudo-random number generator, that just
returns the keystream of a randomly initialized ChaCha context.
8 years ago
René Kijewski 840c0f0a57 make: detect their module name automatically
For many modules the `Makefile` contains a line like
```
MODULE:=$(shell basename $(CURDIR))
```
This conclusively shows that we do not have to set the module name
manually.

This PR removes the need to set the module name manually, if it is the
same as the basename. E.g. for `…/sys/vtimer/Makefile` the variable
make `MODULE` will still be `vtimer`, because it is the basename of the
Makefile.
9 years ago
René Kijewski 96fba8a19b sys:crypto: put ciphers into one module 10 years ago
Hauke Petersen 05419a5547 Initial import of crypto libs from SecureMicroMesh
- Imported files from secure micro mesh library
- added Makefiles and included libs into sys/Makefile
10 years ago
Christian Mehlis df1755b912 fix broken warning 10 years ago
Christian Mehlis 6b22f479b1 add a barrier for msba2 due to wrong results 10 years ago
Christian Mehlis 7d84936fd7 add sha256 implementation 10 years ago