Re: Pre-Master Key (PRG) (Firefox)

Richard Barnes <[email protected]>
Newsgroups gmane.comp.mozilla.security
Message-ID <CAOAcki_hgkkLHtirg8B6wdLcXET_US7dxA2iFd706ivzP1gjdg@mail.gmail.com>
On Wed, Aug 19, 2015 at 4:54 AM, konstantinos Alexiou <
[email protected]> wrote:

> As known, during the ClientKeyExchange phase of the Handshake of TLS, the
> client generates a 48-byte random number called premaster secret using a
> Pseudo Random Generator which is used to calculate the master key and the
> key sessions.
>
>  I would like to know which Pseudo Random Generator functions are used to
> compute and produce the pre-master Secret which are used in TLS1.2 in
> firefox.
>


As you know, the PMS is generated differently in the RSA and DH cases.  I
assume you're talking about the RSA case, since that's the only one where
the PRNG feeds directly into the PMS.  The short answer is that it uses the
same PRNG as everything else in NSS.  Here are some links if you want to
look in more detail:

https://dxr.mozilla.org/mozilla-central/source/security/nss/lib/ssl/ssl3con.c#5898
https://dxr.mozilla.org/mozilla-central/source/security/nss/lib/ssl/ssl3con.c#9324
https://dxr.mozilla.org/mozilla-central/source/security/nss/lib/softoken/pkcs11c.c#3862
https://dxr.mozilla.org/mozilla-central/source/security/nss/lib/freebl/drbg.c#567




> Thank you very much in advance.
> _______________________________________________
> dev-security mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-security
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.