Page MenuHome GnuPG

gpg speed
Closed, ResolvedPublic

Description

Environment

Linux Mandrake 10

Description

I have read on the internet, that it takes more than 1000 times to crypt with asymetric algorithm than symetrical.(sorry for my english, I'm french). But with gpg I crypt a file in less than one minute, and about 45 seconds in symetrical. (file size ~100 Mbytes, PC:PII 500MhZ, Linux Mandrake 10 (2.4), 512 Ram)
So, is gpg really use public/private key to crypt a file? (or does it crypt the file with symetric algorithm and crypt the symetric key with an asymetric algorithm ?
I said that because it seems weird for me to have those times.


bonjour,
J'ai lu sur internet que le cryptage asymétrique prennait 1000 fois plus de temps que le cryptage symétrique. Or, je crypte un fichier de 100Mo en 45 minutes en symétrique (DES) et en moins d'une minute avec gpg (DSA et ELGamal).
je suis sur un PII 500 mhz, 512 Mo de ram, Linux Mandrake 10.
Ainsi, est-ce que gpg utilise bien un système de clé privée/publique pour crypter/decrypter un fichier ou bien est ce qu'il crypte un fichier avec un algorithme symétrique puis crypte la clé symétrique par un algorithme asymétrique?
Je dit cela car je n'arrive pas a trouver des résultats cohérent quand ua temps de cryptage /décryptage

Merci
Thank you

Fix

Unknown

Event Timeline

werner added a subscriber: werner.

As almost all public key programs, GnuPG uses a hybrid
approach: A random session key is created and public key
encrypted. Than random session is then used to
symmetrically encrypt the bulk of data.

Please don't send question to the bug tracker but to
gnupg-users@gnupg.org. Thanks.