Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2735

ASYM_ENCRYPT: initialization fails with FIPS enabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.3.1, 5.2.20, 4.2.24
    • None
    • None
    • False
    • None
    • False

      When FIPS is enabled, SecretKey.getEncoded() return null, leasing to an NPE (see below). It would be better to throw an exception that describes the real cause, e.g. "secret key does not support encoding".

      2023-10-04 17:03:58.183 ERROR [MergeTask-19,liferay-channel-control,ip-x-x-x-x-6408][ASYM_ENCRYPT:104]  Stacktrace:
      java.lang.NullPointerException
      	at java.security.MessageDigest.update(MessageDigest.java:338)
      	at java.security.MessageDigest.digest(MessageDigest.java:413)
      	at org.jgroups.protocols.Encrypt.initSymCiphers(Encrypt.java:242)
      	at org.jgroups.protocols.ASYM_ENCRYPT.createNewKey(ASYM_ENCRYPT.java:553)
      	at org.jgroups.protocols.ASYM_ENCRYPT.down(ASYM_ENCRYPT.java:120)
      	at org.jgroups.protocols.BARRIER.down(BARRIER.java:136)
      	at org.jgroups.protocols.pbcast.NAKACK2.down(NAKACK2.java:555)
      	at org.jgroups.protocols.UNICAST3.down(UNICAST3.java:595)
      	at org.jgroups.protocols.pbcast.STABLE.down(STABLE.java:349)
      	at org.jgroups.protocols.pbcast.Merger.sendMergeView(Merger.java:329)
      	at org.jgroups.protocols.pbcast.Merger$MergeTask._run(Merger.java:591)
      	at org.jgroups.protocols.pbcast.Merger$MergeTask.run(Merger.java:526)
      	at java.lang.Thread.run(Thread.java:750)
      
      
      

              rhn-engineering-bban Bela Ban
              rhn-engineering-bban Bela Ban
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: