msg.entropy.pl revision 1.2 1 1.2 martin /* $NetBSD: msg.entropy.pl,v 1.2 2020/11/06 12:23:10 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.1 martin message not_enough_entropy
30 1.1 martin {This system seems to lack a cryptographically strong pseudo random
31 1.1 martin number generator. There is not enough entropy available to create secure
32 1.1 martin keys (e.g. ssh host keys).
33 1.1 martin
34 1.1 martin You may use random data generated on another computer and load it
35 1.1 martin here, or you could enter random characters manually.
36 1.1 martin
37 1.1 martin If you own a USB random number device, connect it now and select
38 1.1 martin the "Re-test" option.}
39 1.1 martin
40 1.1 martin message entropy_add_manually {Manual input of random data}
41 1.1 martin message entropy_download_raw {Load random data}
42 1.1 martin message entropy_download_seed {Import a NetBSD entropy file}
43 1.1 martin message entropy_retry {Re-test}
44 1.1 martin
45 1.1 martin message entropy_enter_manual1
46 1.1 martin {Enter random characters.}
47 1.1 martin
48 1.1 martin message entropy_enter_manual2
49 1.1 martin {They should contain at last 256 bits of randomness, as in 256 coin
50 1.1 martin tosses, 100 throws of a 6-sided die, 64 random hexadecimal digits, or
51 1.1 martin (if you are able to copy & paste output from another machine into this
52 1.1 martin installer) the output from running the following command on another
53 1.1 martin machine whose randomness you trust:}
54 1.1 martin
55 1.1 martin message entropy_enter_manual3
56 1.1 martin {Do not use the same data for multiple installations.
57 1.1 martin Terminate the input with an empty line.}
58 1.1 martin
59 1.1 martin message entropy_manual_not_enough
60 1.1 martin {You did not enter enough characters!}
61 1.1 martin
62 1.1 martin message entropy_select_file
63 1.1 martin {Please select how you want to transfer the random data file
64 1.1 martin to this machine:}
65 1.1 martin
66 1.1 martin message entropy_add_download_ftp
67 1.1 martin {Download via ftp}
68 1.1 martin
69 1.1 martin message entropy_add_download_http
70 1.1 martin {Download via http}
71 1.1 martin
72 1.1 martin message download_entropy
73 1.1 martin {Start download}
74 1.1 martin
75 1.1 martin message entropy_add_nfs
76 1.1 martin {Load from a NFS share}
77 1.1 martin
78 1.1 martin message entropy_add_local
79 1.1 martin {Load from a local file system (e.g. a USB device)}
80 1.1 martin
81 1.1 martin message entropy_file
82 1.1 martin {Path/file}
83 1.1 martin
84 1.1 martin message load_entropy
85 1.1 martin {Load random data}
86 1.1 martin
87 1.1 martin message set_entropy_file
88 1.1 martin {Random data file path}
89 1.1 martin
90 1.1 martin /* Called with: Example
91 1.1 martin * $0 = content of file NetBSD entropy seed file
92 1.1 martin */
93 1.1 martin message entropy_via_nfs
94 1.1 martin {Select a server, a share and the file path to load the $0.}
95 1.1 martin
96 1.1 martin /* Called with: Example
97 1.1 martin * $0 = content of file NetBSD entropy seed file
98 1.1 martin */
99 1.1 martin message entropy_via_download
100 1.1 martin {Since not enough entropy is available on this system, all crytographic
101 1.1 martin operations are suspect to replay attacks.
102 1.1 martin Please only use trustworthy local networks.}
103 1.1 martin
104 1.1 martin message entropy_data
105 1.1 martin {random data binary file}
106 1.1 martin
107 1.1 martin message entropy_data_hdr
108 1.1 martin {On a system with cryptographically strong pseudo random number generator
109 1.1 martin you can create a file with random binary data like this:}
110 1.1 martin
111 1.1 martin message entropy_seed
112 1.1 martin {NetBSD entropy seed file}
113 1.1 martin
114 1.1 martin message entropy_seed_hdr
115 1.1 martin {On a NetBSD system with cryptographically strong pseudo random number
116 1.1 martin generator you can create an entropy snapshot like this:}
117 1.1 martin
118 1.1 martin message entropy_path_and_file
119 1.1 martin {Path and filename}
120 1.1 martin
121 1.1 martin message entropy_localfs
122 1.1 martin {Enter the unmounted local device and directory on that device where
123 1.1 martin the random data is located.}
124 1.1 martin
125