tlsfuzzer/tlslite-ng

Add pyca/cryptography backend

Open

#303 opened on Aug 1, 2018

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Python (95 forks)auto 404
complexenhancementhelp wanted

Repository metrics

Stars
 (269 stars)
PR merge metrics
 (PR metrics pending)

Description

https://github.com/pyca/cryptography provides a lot of algorithms we use. Implement backends to those algorithms:

  • RC4
  • 3DES-CBC
  • AES-CBC
  • AES-GCM
  • AES-CCM
  • ChaCha20-Poly1305
  • RSA
  • DH (? – using gmpy2 should give faster code than pyca/cryptography but side-channel vulnerable)
  • ECDHE (see also #367)
  • ECDSA (see also #367)
  • EdDSA (?) (likely depends on EdDSA being implemented first, see #231)

in general, it would be nice to first implement #309, so that we can see if and when the backends are used (and if use of them is not counter-productive – while using code that is side-channel secure but is, say, 2 times slower than the alternative side-channel insecure code is most-likely ok, using secure code that is 10 times slower, is not a good trade

checking if it works with version of pyca/cryptography present in CentOS/EPEL would also be nice in travis

Contributor guide