mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

coulbeck
16.50.2007 92fcf3e3e7e479ea20958a22e876125135d4b005
Fix bug in key length causing multiple secret keys to be generated for the same algorithm.
1 files modified
2 ■■■ changed files
opends/src/server/org/opends/server/crypto/CryptoManagerImpl.java 2 ●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/crypto/CryptoManagerImpl.java
@@ -1559,7 +1559,7 @@
      this.fKeyID = new KeyEntryID();
      this.fSecretKey = new SecretKeySpec(key, algorithm);
      this.fKeyLengthBits = key.length * Byte.SIZE;
      this.fKeyLengthBits = keyLengthBits;
      this.fIsCompromised = false;
    }