Skip to content

Commit

Permalink
updated Crypto.md and added information to Building.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Logan007 committed Sep 6, 2020
1 parent d0af27e commit 651c393
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion doc/Building.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,16 @@ Pearson Hashing: AES-NI

The compilations flags could easily be combined:

`./configure CFLAGS="-O3 -march=native"`.
`./configure CFLAGS="-O3 -march=native"`.

## OpenSSL Support

Some ciphers' speed can take advantage of OpenSSL support which is disabled by default as the built-in ciphers already prove reasonably fast in most cases. OpenSSL support can be configured using

`./configure --with-openssl`

which then will include OpenSSL 1.0 or 1.1 if found on the system. This can be combined with the hardware support and compiler optimizations such as

`./configure --with-openssl CFLAGS="-O3 -march=native"`

Please do no forget to `make clean` after (re-)configuration and before building using `make`.
2 changes: 1 addition & 1 deletion doc/Crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The following chart might help to make a quick comparison and decide what cipher

The two block ciphers Twofish and AES are used in CTS mode.

n2n has all four ciphers built-in as basic versions. Some of them optionally compile to faster versions by the means of available hardware support (AES-NI, SSE, AVX – please see the [Building document](./Building.md) for details. Also, AES and ChaCha20 might draw notable acceleration from compiling with openSSL 1.1 support.
n2n has all four ciphers built-in as basic versions. Some of them optionally compile to faster versions by the means of available hardware support (AES-NI, SSE, AVX – please see the [Building document](./Building.md) for details. Depending on your platform, AES and ChaCha20 might also draw notable acceleration from optionally compiling with openSSL 1.1 support.

### Twofish

Expand Down

0 comments on commit 651c393

Please sign in to comment.