Class FipsNonceGenerator


  • public class FipsNonceGenerator
    extends java.lang.Object
    Nonce generator for use with AEAD ciphers such as GCM. The generator guarantees the sequence number cannot wrap or go backwards.
    • Constructor Summary

      Constructors 
      Constructor Description
      FipsNonceGenerator​(byte[] baseNonce, int counterBits)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void generateNonce​(byte[] nonce)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FipsNonceGenerator

        public FipsNonceGenerator​(byte[] baseNonce,
                                  int counterBits)
    • Method Detail

      • generateNonce

        public void generateNonce​(byte[] nonce)