Class FipsNonceGenerator

java.lang.Object
org.bouncycastle.crypto.fips.FipsNonceGenerator

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

    • FipsNonceGenerator

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

    • generateNonce

      public void generateNonce(byte[] nonce)