From fa260dfd99f3e978056ac222a473b11e48db7e68 Mon Sep 17 00:00:00 2001 From: Bryce McKinlay Date: Tue, 25 Sep 2001 04:30:59 +0000 Subject: * gnu/java/security/provider/DefaultPolicy.java: New file, from libgcj. * java/security: Merge from libgcj. These are mostly formatting fixes, with a few fixes and enhancements. --- java/security/SecureRandomSpi.java | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'java/security/SecureRandomSpi.java') diff --git a/java/security/SecureRandomSpi.java b/java/security/SecureRandomSpi.java index fa14abc28..e62144566 100644 --- a/java/security/SecureRandomSpi.java +++ b/java/security/SecureRandomSpi.java @@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. - + GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU @@ -24,43 +24,40 @@ resulting executable to be covered by the GNU General Public License. This exception does not however invalidate any other reasons why the executable file might be covered by the GNU General Public License. */ - package java.security; import java.io.Serializable; -//import SecureRandom; + /** SecureRandomSpi is the Service Provider Interface for SecureRandom providers. It provides an interface for providers to the SecureRandom engine to write their own pseudo-random number generator. - @since JDK 1.2 + @since JDK 1.2 @author Mark Benvenuto -*/ - + */ public abstract class SecureRandomSpi implements Serializable { - /** Default Constructor for SecureRandomSpi - */ + */ public SecureRandomSpi() - {} + { + } /** Updates the seed for SecureRandomSpi but does not reset seed. It does to this so repeated called never decrease randomness. - */ + */ protected abstract void engineSetSeed(byte[] seed); - /** Gets a user specified number of bytes depending on the length of the array? @param bytes array to fill with random bytes - */ + */ protected abstract void engineNextBytes(byte[] bytes); /** @@ -70,6 +67,6 @@ public abstract class SecureRandomSpi implements Serializable @param numBytes number of random bytes to generate @return an array full of random bytes - */ + */ protected abstract byte[] engineGenerateSeed(int numBytes); } -- cgit v1.2.1