| OLD | NEW |
| 1 /* | 1 /* |
| 2 * rand_gen.c | 2 * rand_gen.c |
| 3 * | 3 * |
| 4 * a random source (random number generator) | 4 * a random source (random number generator) |
| 5 * | 5 * |
| 6 * David A. McGrew | 6 * David A. McGrew |
| 7 * Cisco Systems, Inc. | 7 * Cisco Systems, Inc. |
| 8 */ | 8 */ |
| 9 /* | 9 /* |
| 10 * | 10 * |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | 36 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 37 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 37 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | 38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| 39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 40 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 40 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 41 * OF THE POSSIBILITY OF SUCH DAMAGE. | 41 * OF THE POSSIBILITY OF SUCH DAMAGE. |
| 42 * | 42 * |
| 43 */ | 43 */ |
| 44 | 44 |
| 45 | 45 |
| 46 #ifdef HAVE_CONFIG_H |
| 47 #include <config.h> |
| 48 #endif |
| 49 |
| 46 #include <stdio.h> /* for printf() */ | 50 #include <stdio.h> /* for printf() */ |
| 47 #include <unistd.h> /* for getopt() */ | 51 #include <unistd.h> /* for getopt() */ |
| 48 #include "crypto_kernel.h" | 52 #include "crypto_kernel.h" |
| 49 | 53 |
| 50 /* | 54 /* |
| 51 * MAX_PRINT_STRING_LEN is defined in datatypes.h, and is the length | 55 * MAX_PRINT_STRING_LEN is defined in datatypes.h, and is the length |
| 52 * of the largest hexadecimal string that can be generated by the | 56 * of the largest hexadecimal string that can be generated by the |
| 53 * function octet_string_hex_string(). | 57 * function octet_string_hex_string(). |
| 54 */ | 58 */ |
| 55 | 59 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 135 |
| 132 status = crypto_kernel_shutdown(); | 136 status = crypto_kernel_shutdown(); |
| 133 if (status) { | 137 if (status) { |
| 134 printf("error: crypto_kernel shutdown failed\n"); | 138 printf("error: crypto_kernel shutdown failed\n"); |
| 135 exit(1); | 139 exit(1); |
| 136 } | 140 } |
| 137 | 141 |
| 138 return 0; | 142 return 0; |
| 139 } | 143 } |
| 140 | 144 |
| OLD | NEW |