summaryrefslogtreecommitdiff
path: root/java/security/SecureRandomSpi.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/security/SecureRandomSpi.java')
-rw-r--r--java/security/SecureRandomSpi.java23
1 files changed, 10 insertions, 13 deletions
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 <ivymccough@worldnet.att.net>
-*/
-
+ */
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);
}