2020-01-14 19:14:12 +00:00
# Darling-CoreCrypto
Rewrite of Apple CoreCrypto for the Darling project.
## Testing
2020-01-14 20:06:37 +00:00
Setting the `ENABLE_TESTS` CMake option to ON as shown below will build CoreCrypto and the test suite
2020-01-14 19:14:12 +00:00
for your native host instead of Darling. It has only been tested on Ubuntu 18.04 and OSX 10.14.
2021-01-10 20:33:01 +00:00
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.
2020-01-14 19:14:12 +00:00
```
$ mkdir build
$ cd build
2021-01-10 20:33:01 +00:00
$ cmake -DENABLE_TESTS=ON ..
2020-01-14 19:14:12 +00:00
$ make
2020-01-14 20:06:37 +00:00
$ sudo make install
$ make lkm
$ sudo make lkm_install
$ darling shell
$ /usr/libexec/test_corecrypto
2020-01-14 19:14:12 +00:00
```