diff options
author | lloyd <[email protected]> | 2012-01-20 22:14:50 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-01-20 22:14:50 +0000 |
commit | 5ccc1b53e9f20ba3d074e68844285d15b5a00912 (patch) | |
tree | a16afbf3ad8318b94ba3d650db2e5cc4e055e04a /src/kdf/prf_tls | |
parent | 98c3c3b23237a854483ec192ab7c45aef1385edb (diff) |
Report the length of the pre master secret. Who knows if when this
happens it'll be reproductible, etc, might as well have the
information immediately.
Diffstat (limited to 'src/kdf/prf_tls')
-rw-r--r-- | src/kdf/prf_tls/prf_tls.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kdf/prf_tls/prf_tls.cpp b/src/kdf/prf_tls/prf_tls.cpp index 55d72bea4..3790650b0 100644 --- a/src/kdf/prf_tls/prf_tls.cpp +++ b/src/kdf/prf_tls/prf_tls.cpp @@ -29,7 +29,8 @@ void P_hash(MemoryRegion<byte>& output, } catch(Invalid_Key_Length) { - throw Internal_Error("The premaster secret is too long for the PRF"); + throw Internal_Error("The premaster secret of " + to_string(secret_len) + + " bytes is too long for the PRF"); } SecureVector<byte> A(seed, seed_len); |