| Class | Line # | Actions | |||||
|---|---|---|---|---|---|---|---|
| RNGAlgorithm | 6 | 0 | 0% | 1 | 0 |
| 1 | package org.europa.together.domain; | |
| 2 | ||
| 3 | /** | |
| 4 | * Random Number Generator Algorithm. | |
| 5 | */ | |
| 6 | public enum RNGAlgorithm { | |
| 7 | ||
| 8 | /** | |
| 9 | * The name of the pseudo-random number generation (PRNG) algorithm supplied | |
| 10 | * by the SUN provider. This algorithm uses SHA-1 as the foundation of the | |
| 11 | * PRNG. It computes the SHA-1 hash over a true-random seed value | |
| 12 | * concatenated with a 64-bit counter which is incremented by 1 for each | |
| 13 | * operation. From the 160-bit SHA-1 output, only 64 bits are used. | |
| 14 | */ | |
| 15 | SHA1PRNG("SHA1PRNG"), | |
| 16 | /** | |
| 17 | * Obtains random numbers from the underlying native OS. No assertions are | |
| 18 | * made as to the blocking nature of generating these numbers. | |
| 19 | */ | |
| 20 | NativePRNG("NativePRNG"), | |
| 21 | /** | |
| 22 | * Obtains random numbers from the underlying installed and configured PKCS | |
| 23 | * #11 library. | |
| 24 | */ | |
| 25 | PKCS11("PKCS11"), | |
| 26 | /** | |
| 27 | * An algorithm using DRBG mechanisms as defined in NIST SP 800-90Ar1. | |
| 28 | */ | |
| 29 | DRBG("DRBG"); | |
| 30 | ||
| 31 | //CONSTRUCTOR | |
| 32 | 4 | RNGAlgorithm(final String value) { |
| 33 | } | |
| 34 | } |