aboutsummaryrefslogtreecommitdiffstats
path: root/src/kdf/prf_tls
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-01-20 22:14:50 +0000
committerlloyd <[email protected]>2012-01-20 22:14:50 +0000
commit5ccc1b53e9f20ba3d074e68844285d15b5a00912 (patch)
treea16afbf3ad8318b94ba3d650db2e5cc4e055e04a /src/kdf/prf_tls
parent98c3c3b23237a854483ec192ab7c45aef1385edb (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.cpp3
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);