< prev index next >

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

Print this page
*** 31,10 ***
--- 31,11 ---
  import java.security.NoSuchAlgorithmException;
  import java.security.NoSuchProviderException;
  import java.security.SecureRandomParameters;
  import java.util.Arrays;
  import java.util.Collections;
+ import java.util.Hex;
  import java.util.List;
  
  public class HmacDrbg extends AbstractHashDrbg {
  
      private Mac mac;

*** 49,12 ***
          configure(params);
      }
  
      private void status() {
          if (debug != null) {
!             debug.println(this, "V = " + hex(v));
!             debug.println(this, "Key = " + hex(k));
              debug.println(this, "reseed counter = " + reseedCounter);
          }
      }
  
      // 800-90Ar1 10.1.2.2: HMAC_DRBG Update Process
--- 50,12 ---
          configure(params);
      }
  
      private void status() {
          if (debug != null) {
!             debug.println(this, "V = " + Hex.encoder().encode(v));
!             debug.println(this, "Key = " + Hex.encoder().encode(k));
              debug.println(this, "reseed counter = " + reseedCounter);
          }
      }
  
      // 800-90Ar1 10.1.2.2: HMAC_DRBG Update Process
< prev index next >