msg.entropy.pl revision 1.3 1 1.3 martin /* $NetBSD: msg.entropy.pl,v 1.3 2021/10/08 15:59:55 martin Exp $ */
2 1.1 martin
3 1.1 martin /*
4 1.2 martin * Copyright (c) 2020 The NetBSD Foundation, Inc.
5 1.1 martin * All rights reserved.
6 1.1 martin *
7 1.1 martin * Redistribution and use in source and binary forms, with or without
8 1.1 martin * modification, are permitted provided that the following conditions
9 1.1 martin * are met:
10 1.1 martin * 1. Redistributions of source code must retain the above copyright
11 1.1 martin * notice, this list of conditions and the following disclaimer.
12 1.1 martin * 2. Redistributions in binary form must reproduce the above copyright
13 1.1 martin * notice, this list of conditions and the following disclaimer in the
14 1.1 martin * documentation and/or other materials provided with the distribution.
15 1.1 martin *
16 1.2 martin * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
17 1.2 martin * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18 1.2 martin * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 1.2 martin * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
20 1.2 martin * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 1.1 martin * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 1.1 martin * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 1.1 martin * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 1.1 martin * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 1.2 martin * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 1.2 martin * POSSIBILITY OF SUCH DAMAGE.
27 1.1 martin */
28 1.1 martin
29 1.3 martin message Configure_entropy {Set up entropy}
30 1.3 martin
31 1.3 martin message continue_without_entropy {Continue without entropy}
32 1.3 martin
33 1.1 martin message not_enough_entropy
34 1.1 martin {This system seems to lack a cryptographically strong pseudo random
35 1.1 martin number generator. There is not enough entropy available to create secure
36 1.1 martin keys (e.g. ssh host keys).
37 1.1 martin
38 1.1 martin You may use random data generated on another computer and load it
39 1.1 martin here, or you could enter random characters manually.
40 1.1 martin
41 1.1 martin If you own a USB random number device, connect it now and select
42 1.1 martin the "Re-test" option.}
43 1.1 martin
44 1.1 martin message entropy_add_manually {Manual input of random data}
45 1.3 martin message entropy_download_raw {Load raw binary random random data}
46 1.1 martin message entropy_download_seed {Import a NetBSD entropy file}
47 1.1 martin message entropy_retry {Re-test}
48 1.1 martin
49 1.1 martin message entropy_enter_manual1
50 1.1 martin {Enter random characters.}
51 1.1 martin
52 1.1 martin message entropy_enter_manual2
53 1.1 martin {They should contain at last 256 bits of randomness, as in 256 coin
54 1.1 martin tosses, 100 throws of a 6-sided die, 64 random hexadecimal digits, or
55 1.1 martin (if you are able to copy & paste output from another machine into this
56 1.1 martin installer) the output from running the following command on another
57 1.1 martin machine whose randomness you trust:}
58 1.1 martin
59 1.1 martin message entropy_enter_manual3
60 1.1 martin {Do not use the same data for multiple installations.
61 1.1 martin Terminate the input with an empty line.}
62 1.1 martin
63 1.1 martin message entropy_manual_not_enough
64 1.1 martin {You did not enter enough characters!}
65 1.1 martin
66 1.1 martin message entropy_select_file
67 1.1 martin {Please select how you want to transfer the random data file
68 1.1 martin to this machine:}
69 1.1 martin
70 1.1 martin message entropy_add_download_ftp
71 1.1 martin {Download via ftp}
72 1.1 martin
73 1.1 martin message entropy_add_download_http
74 1.1 martin {Download via http}
75 1.1 martin
76 1.1 martin message download_entropy
77 1.1 martin {Start download}
78 1.1 martin
79 1.1 martin message entropy_add_nfs
80 1.1 martin {Load from a NFS share}
81 1.1 martin
82 1.1 martin message entropy_add_local
83 1.1 martin {Load from a local file system (e.g. a USB device)}
84 1.1 martin
85 1.1 martin message entropy_file
86 1.1 martin {Path/file}
87 1.1 martin
88 1.1 martin message load_entropy
89 1.1 martin {Load random data}
90 1.1 martin
91 1.1 martin message set_entropy_file
92 1.1 martin {Random data file path}
93 1.1 martin
94 1.1 martin /* Called with: Example
95 1.1 martin * $0 = content of file NetBSD entropy seed file
96 1.1 martin */
97 1.1 martin message entropy_via_nfs
98 1.1 martin {Select a server, a share and the file path to load the $0.}
99 1.1 martin
100 1.1 martin /* Called with: Example
101 1.1 martin * $0 = content of file NetBSD entropy seed file
102 1.1 martin */
103 1.1 martin message entropy_via_download
104 1.1 martin {Since not enough entropy is available on this system, all crytographic
105 1.1 martin operations are suspect to replay attacks.
106 1.1 martin Please only use trustworthy local networks.}
107 1.1 martin
108 1.1 martin message entropy_data
109 1.1 martin {random data binary file}
110 1.1 martin
111 1.1 martin message entropy_data_hdr
112 1.1 martin {On a system with cryptographically strong pseudo random number generator
113 1.1 martin you can create a file with random binary data like this:}
114 1.1 martin
115 1.1 martin message entropy_seed
116 1.1 martin {NetBSD entropy seed file}
117 1.1 martin
118 1.1 martin message entropy_seed_hdr
119 1.1 martin {On a NetBSD system with cryptographically strong pseudo random number
120 1.1 martin generator you can create an entropy snapshot like this:}
121 1.1 martin
122 1.1 martin message entropy_path_and_file
123 1.1 martin {Path and filename}
124 1.1 martin
125 1.1 martin message entropy_localfs
126 1.1 martin {Enter the unmounted local device and directory on that device where
127 1.1 martin the random data is located.}
128 1.1 martin
129