< prev index next >

src/java.base/share/classes/sun/security/provider/HashDrbg.java

Print this page
*** 31,10 ***
--- 31,11 ---
  import java.security.NoSuchAlgorithmException;
  import java.security.NoSuchProviderException;
  import java.security.SecureRandomParameters;
  import java.util.ArrayList;
  import java.util.Arrays;
+ import java.util.Hex;
  import java.util.List;
  
  public class HashDrbg extends AbstractHashDrbg {
  
      private static final byte[] ZERO = new byte[1];

*** 158,13 ***
  
          // Step 6: Return
      }
  
      private void status() {
          if (debug != null) {
!             debug.println(this, "V = " + hex(v));
!             debug.println(this, "C = " + hex(c));
              debug.println(this, "reseed counter = " + reseedCounter);
          }
      }
  
      /**
--- 159,14 ---
  
          // Step 6: Return
      }
  
      private void status() {
+ 
          if (debug != null) {
!             debug.println(this, "V = " + Hex.encoder().encode(v));
!             debug.println(this, "C = " + Hex.encoder().encode(c));
              debug.println(this, "reseed counter = " + reseedCounter);
          }
      }
  
      /**
< prev index next >