R4SAS
1857f14be8
[cpu] use short defines instead of long checks
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
1 year ago
R4SAS
7b6aa41ca8
CPU: remove AVX code, switch to __builtin for AES detection ( #1959 )
...
* [cpu] remove avx detect and code blocks, try to switch to __builtin
* [cpu] use __builtin_* only on x86 systems
* [cpu] perform check in separate function
* [cpu] set AES definition on MSVC
* update x86 and aes support checks at compile time
* [cmake] update comment about AES on MSVC
1 year ago
orignal
7705423c42
remove SSU
2 years ago
R4SAS
6b4ffcff5a
cleanup code (spaces, tabs)
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
3 years ago
orbea
0a1e302e8a
libi2pd: Fix the build with LibreSSL 3.5.2
3 years ago
orignal
c22ab7e1fc
use openssl's siphash for 3.0.1 and higher
3 years ago
orignal
a152f36894
MixHash for SSU2 long header
3 years ago
orignal
450266818a
Noise XK for SSU2
3 years ago
R4SAS
edc0162163
clean line trailing spaces and tabs
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
3 years ago
Dimitris Apostolou
8ee9c437e1
Fix typos
3 years ago
orignal
bb8dc67942
don't use openssl's SipHash from 3.0.0 due regression
3 years ago
orignal
349022ae42
don't select ElGamal routers for tunnels
3 years ago
orignal
bb518d3d51
don't pass BN_CTX to encrypt/decrypt functions
3 years ago
orignal
c45e202fab
removed ElGamal encryption support for own router
3 years ago
orignal
726bd0d63b
check if x25519 key is valid
4 years ago
orignal
32fc6482cc
moved Noise initializations to Crypto.cpp
4 years ago
R4SAS
62cd9fffa3
Automate AES-NI and AVX detection on runtime, make it default on x86-based systems ( #1578 )
...
Rework CPU extensions detection code and build with AES-NI and AVX support by default
4 years ago
orignal
9f2a2e44a3
common MixHash and MixKey
4 years ago
orignal
5f1e66d64b
use pre-calculated x25519 ephemeral keys for ratchets
4 years ago
orignal
e135696530
support multiple encryption keys through the I2CP
5 years ago
R4SAS
8bae4975fb
add copyright headers
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
5 years ago
R4SAS
7a5146ea74
fix code syle(spaces->tabs, tabulations)
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
5 years ago
orignal
76f95644b7
fixed #1461 . Use openssl's HKDF for 1.1.1 anf higher
5 years ago
orignal
928b90d5bc
fixed #1461 . Use openssl's HKDF for 1.1.1 anf higher
5 years ago
orignal
9f79bdae9b
encryptor for ECIES-X25519-AEAD-Ratchet
5 years ago
orignal
599ec62bb0
use HKDF for NTCP2 key derivation data phase
5 years ago
orignal
74e8610ec9
DH auth for encrypted LeaseSet2
6 years ago
orignal
aa4bddd6ec
common HKDF
6 years ago
orignal
9188e3ad3f
ChaCha20 decrypt
6 years ago
Rosen Penev
90f2b2d249
Fix compilation without deprecated OpenSSL APIs
6 years ago
orignal
f74b27c58c
check if chacha20 and poly1305 is presented in openssl build
6 years ago
orignal
f30b6c9e6e
const reference to vector of buffers
6 years ago
orignal
7efb47fed4
send NTCP2 frame from I2NP messages
6 years ago
orignal
e68f1dbc99
AEAD/Chacha20/Poly1305 encrypt multiple buffers
6 years ago
orignal
0c9ebc36d4
remove AVX and SSE for CipherBlock XOR
6 years ago
orignal
08706f5dfb
fixed typo
6 years ago
orignal
d49f165f0d
fixed build warning
6 years ago
orignal
cf0fc3a4a9
some performance improvements
6 years ago
orignal
f7e9975192
restore BlockCipher XOR using SSE
6 years ago
orignal
34cfd205f6
create new static keys by X25519Keys
6 years ago
orignal
96d109af81
fixed typo
6 years ago
orignal
a309eb9f3c
faster CipherBlock XOR implementation for non-AVX
6 years ago
orignal
8de443ec4c
siphash from openssl 1.1.1
6 years ago
orignal
3540712517
some cleanup
6 years ago
orignal
a8b1a86bd7
X25519Keys for static key
6 years ago
orignal
1babd3a5a2
separate X25519Keys
6 years ago
orignal
33aa8e2471
use x25519 from openssl 1.1.1 for ephemeral keys
6 years ago
orignal
2c58fe736b
fixed build error with openssl 1.1.1
6 years ago
orignal
2c3b19a539
use EdDSA from openssl 1.1.1
6 years ago
Dmitry Marakasov
4ffbb46cf9
Fix "macro expansion producing 'defined' has undefined behavior" clang warning
7 years ago