< prev index next > src/java.base/share/classes/sun/security/provider/HashDrbg.java
Print this page
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];
// 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);
}
}
/**
// 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 >