< prev index next >

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

Print this page
@@ -28,10 +28,11 @@
  import javax.crypto.Cipher;
  import javax.crypto.NoSuchPaddingException;
  import javax.crypto.spec.SecretKeySpec;
  import java.security.*;
  import java.util.Arrays;
+ import java.util.Hex;
  import java.util.Locale;
  
  public class CtrDrbg extends AbstractDrbg {
  
      private static final int AES_LIMIT;

@@ -179,12 +180,12 @@
          }
      }
  
      private void status() {
          if (debug != null) {
-             debug.println(this, "Key = " + hex(k));
-             debug.println(this, "V   = " + hex(v));
+             debug.println(this, "Key = " + Hex.encoder().encode(k));
+             debug.println(this, "V   = " + Hex.encoder().encode(v));
              debug.println(this, "reseed counter = " + reseedCounter);
          }
      }
  
      // 800-90Ar1 10.2.1.2. CTR_DRBG_Update
< prev index next >