https://github.com/flickpp/ppenc
https://github.com/flickpp/ppenc
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/flickpp/ppenc
- Owner: flickpp
- Created: 2022-06-21T17:36:50.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-21T18:00:43.000Z (almost 4 years ago)
- Last Synced: 2023-03-05T08:44:54.207Z (about 3 years ago)
- Language: C
- Size: 1.98 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PPENC
Status: Alpha
PPEnc is an encryption library targetting 16 bit microcontrollers which wish to send data over a network.
It is written in C89 and no dependencies other than a required stdint header.
The required types are `uint8_t`, `uint16_t` and `uint32_t`.
It is designed to be very small (both code and buffers).
## Building and Testing
The test suite is written in Rust.
First obtain a copy of the [Rust toolchain](https://www.rust-lang.org/tools/install),
then
```
cargo test
```
NOTE: To be clear - this is *NOT* a `no_std` rust crate.
### Defines
```
-DINLINE=inline
```
This define is required.
C89 does not include the inline keyword - you may also set INLINE="" if
lacking support or to decrease binary size.
```
-DSTATIC=static
```
This define is required.
You may set STATIC to either static or "".
By design we only set STATIC to "" in order to run the test suite.
```
-DPPENC_64
```
This define is optional.
Build a 64bit version (requires uint64_t).