libtom / libtomcrypt

LibTomCrypt is a fairly comprehensive, modular and portable cryptographic toolkit that provides developers with a vast array of well known published block ciphers, one-way hash functions, chaining modes, pseudo-random number generators, public key cryptography and a plethora of other routines.
https://www.libtom.net
Other
1.55k stars 457 forks source link

Wishlist: Encryption for ed25519/X25519 #547

Closed FGasper closed 3 years ago

FGasper commented 4 years ago

It would be useful to be able to encrypt a string via ed25519/X25519. Could libtomcrypt’s ECDSA encryption algorithm apply also to ed25519/X25519?

Thank you!

sjaeckel commented 3 years ago

The version from the develop branch provides this feature.

karel-m commented 3 years ago

@sjaeckel I am afraid @FGasper meant ec25519 analogy to ECDH-based Encrypt and Decrypt as described here https://github.com/libtom/libtomcrypt/blob/develop/doc/crypt.tex#L5666 = ecc_encrypt_key + ecc_decrypt_key.

May be we should consider something like https://libsodium.gitbook.io/doc/public-key_cryptography/authenticated_encryption

sjaeckel commented 3 years ago

I'm not sure, so let's wait for @FGasper's opinion