darling-corecrypto/README.md
Ariel Abreu 7d1d0bfda0
Add tests for AES and digests
This commit also adds test data generation at build time instead of hard coding data. This allows us to have more robust tests that allow us to test lots of different data (instead of having false positives that only work for certain data sets).
2021-01-10 15:33:01 -05:00

23 lines
653 B
Markdown

# Darling-CoreCrypto
Rewrite of Apple CoreCrypto for the Darling project.
## Testing
Setting the `ENABLE_TESTS` CMake option to ON as shown below will build CoreCrypto and the test suite
for your native host instead of Darling. It has only been tested on Ubuntu 18.04 and OSX 10.14.
We use Python (either 2 or 3) with the [`cryptography`](https://pypi.org/project/cryptography/) module to generate some of our test data, so make sure you have those installed before building.
```
$ mkdir build
$ cd build
$ cmake -DENABLE_TESTS=ON ..
$ make
$ sudo make install
$ make lkm
$ sudo make lkm_install
$ darling shell
$ /usr/libexec/test_corecrypto
```