diff options
Diffstat (limited to 'src/prf_x942.cpp')
-rw-r--r-- | src/prf_x942.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/prf_x942.cpp b/src/prf_x942.cpp index fd29aecdd..99f223107 100644 --- a/src/prf_x942.cpp +++ b/src/prf_x942.cpp @@ -40,7 +40,7 @@ SecureVector<byte> X942_PRF::derive(u32bit key_len, SecureVector<byte> key; u32bit counter = 1; - while(key.size() != key_len) + while(key.size() != key_len && counter) { hash->update(secret, secret_len); |