diff options
author | David Hook <dgh@cryptoworkshop.com> | 2013-05-09 09:35:20 +0400 |
---|---|---|
committer | David Hook <dgh@cryptoworkshop.com> | 2013-05-09 09:35:20 +0400 |
commit | 20e39470b5ab0423b12e5f7e0e0109e646e6ec48 (patch) | |
tree | 278ca1a0801e9aac3ffa67f46558b99465ce8399 | |
parent | 6166fad334af2a20c6eb457f6fa5c3b5cc165b2d (diff) |
fixed pad8 usage
-rw-r--r-- | src/main/java/org/bouncycastle/crypto/prng/DualECSP800DRBG.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bouncycastle/crypto/prng/DualECSP800DRBG.java b/src/main/java/org/bouncycastle/crypto/prng/DualECSP800DRBG.java index 7e185976..caeac7a0 100644 --- a/src/main/java/org/bouncycastle/crypto/prng/DualECSP800DRBG.java +++ b/src/main/java/org/bouncycastle/crypto/prng/DualECSP800DRBG.java @@ -168,7 +168,7 @@ public class DualECSP800DRBG } byte[] entropy = _entropySource.getEntropy(); - byte[] seedMaterial = Arrays.concatenate(_s, entropy, additionalInput); + byte[] seedMaterial = Arrays.concatenate(pad8(_s, _seedlen), entropy, additionalInput); _s = hash_df(seedMaterial, _seedlen); |