Re: Security of DH in TLS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The ‘key size’ concept is usually referred to the length of modulus. (In public key crypto area)

For DH and ECDH, it (the size) ’s generated and defined in the ‘parameters’, as you pasted. Parameters are not exactly the final ‘keys’, they are the ‘materials’ to produce keys (both private ones and public ones), either for DH or ECDH. For DH, you generate parameters based on a given length of prime, and this length is what you called ‘key size’ (e.g. 2048), for ECC the parameters are generated based on named curves, such as prime192v1/prime239v1..., in this case, the ‘key size’ is 192/239bit. In both case, the prime numbers are used as modulus being used while doing DH or EC crypto calculations...

If you get either a DH or EC key, you could use the following command of OpenSSL to check the ‘key size’:

openssl pkey -in xyz.key -noout -text

check the Private-Key: (xxxx bit) in the output.

On 26 Jul 2017, at 14:45, SaAtomic <saatomic@xxxxxxxxxx> wrote:

I'm trying to comprehend the security impact of the different DH implementations on TLS.

The main differences between the implementations are:
  • DH
  • DHE
  • ECDH
  • ECDHE


Where the ephemeral DH provides forward secrecy, thus provides additional security.


I'm not really sure how the elliptic curves impact the security of DH. I think I've previously read something like, the key size (or public certificate length?) of DH can be smaller, with the use of elliptic curves. So without the use of elliptic curves the key size should be at least 2048, to be considered secure.


Is my assumption correct?

How can I identify the key size/ public certificate length (I'm not sure which is the correct term), to determine the security of DH in TLS?


Can I use the .pem file, used for DH, of my server to determine this?

I've created the .pem file with the following command:


openssl dhparam -out dhparam.pem 4096


and with the following command I believe I can determine the key length:


openssl dhparam -inform PEM -in ./dhparam.pem -check -text

--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users

-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux