1323b03c5SDag-Erling Smørgrav.\" $OpenBSD: moduli.5,v 1.3 2001/06/24 18:50:52 provos Exp $ 2323b03c5SDag-Erling Smørgrav.\" 3323b03c5SDag-Erling Smørgrav.\" Copyright 1997, 2000 William Allen Simpson <wsimpson@greendragon.com> 4323b03c5SDag-Erling Smørgrav.\" All rights reserved. 5323b03c5SDag-Erling Smørgrav.\" 6323b03c5SDag-Erling Smørgrav.\" Redistribution and use in source and binary forms, with or without 7323b03c5SDag-Erling Smørgrav.\" modification, are permitted provided that the following conditions 8323b03c5SDag-Erling Smørgrav.\" are met: 9323b03c5SDag-Erling Smørgrav.\" 1. Redistributions of source code must retain the above copyright 10323b03c5SDag-Erling Smørgrav.\" notice, this list of conditions and the following disclaimer. 11323b03c5SDag-Erling Smørgrav.\" 2. Redistributions in binary form must reproduce the above copyright 12323b03c5SDag-Erling Smørgrav.\" notice, this list of conditions and the following disclaimer in the 13323b03c5SDag-Erling Smørgrav.\" documentation and/or other materials provided with the distribution. 14323b03c5SDag-Erling Smørgrav.\" 3. All advertising materials mentioning features or use of this software 15323b03c5SDag-Erling Smørgrav.\" must display the following acknowledgement: 16323b03c5SDag-Erling Smørgrav.\" This product includes software designed by William Allen Simpson. 17323b03c5SDag-Erling Smørgrav.\" 4. The name of the author may not be used to endorse or promote products 18323b03c5SDag-Erling Smørgrav.\" derived from this software without specific prior written permission. 19323b03c5SDag-Erling Smørgrav.\" 20323b03c5SDag-Erling Smørgrav.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 21323b03c5SDag-Erling Smørgrav.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 22323b03c5SDag-Erling Smørgrav.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 23323b03c5SDag-Erling Smørgrav.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 24323b03c5SDag-Erling Smørgrav.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 25323b03c5SDag-Erling Smørgrav.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26323b03c5SDag-Erling Smørgrav.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27323b03c5SDag-Erling Smørgrav.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28323b03c5SDag-Erling Smørgrav.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29323b03c5SDag-Erling Smørgrav.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30323b03c5SDag-Erling Smørgrav.\" 31323b03c5SDag-Erling Smørgrav.\" Manual page, using -mandoc macros 32323b03c5SDag-Erling Smørgrav.\" 33323b03c5SDag-Erling Smørgrav.Dd July 28, 1997 34323b03c5SDag-Erling Smørgrav.Dt MODULI 5 35323b03c5SDag-Erling Smørgrav.Os 36323b03c5SDag-Erling Smørgrav.Sh NAME 37323b03c5SDag-Erling Smørgrav.Nm moduli 38323b03c5SDag-Erling Smørgrav.Nd system moduli file 39323b03c5SDag-Erling Smørgrav.Sh DESCRIPTION 40323b03c5SDag-Erling SmørgravThe 41323b03c5SDag-Erling Smørgrav.Pa /etc/moduli 42323b03c5SDag-Erling Smørgravfile contains the system-wide Diffie-Hellman prime moduli for the 43323b03c5SDag-Erling Smørgrav.Xr photurisd 8 44323b03c5SDag-Erling Smørgravand 45323b03c5SDag-Erling Smørgrav.Xr sshd 8 46323b03c5SDag-Erling Smørgravprograms. 47323b03c5SDag-Erling Smørgrav.Pp 48323b03c5SDag-Erling SmørgravEach line in this file contains the following fields: 49323b03c5SDag-Erling SmørgravTime, Type, Tests, Tries, Size, Generator, Modulus. 50323b03c5SDag-Erling SmørgravThe fields are separated by white space (tab or blank). 51323b03c5SDag-Erling Smørgrav.Pp 52323b03c5SDag-Erling Smørgrav.Fa Time : yyyymmddhhmmss . 53323b03c5SDag-Erling SmørgravSpecifies the system time that the line was appended to the file. 54323b03c5SDag-Erling SmørgravThe value 00000000000000 means unknown (historic). 55323b03c5SDag-Erling Smørgrav.\"The file is sorted in ascending order. 56323b03c5SDag-Erling Smørgrav.Pp 57323b03c5SDag-Erling Smørgrav.Fa Type : decimal . 58323b03c5SDag-Erling SmørgravSpecifies the internal structure of the prime modulus. 59323b03c5SDag-Erling Smørgrav.Pp 60323b03c5SDag-Erling Smørgrav.Bl -tag -width indent -offset indent -compact 61323b03c5SDag-Erling Smørgrav.It 0 : 62323b03c5SDag-Erling Smørgravunknown; 63323b03c5SDag-Erling Smørgravoften learned from peer during protocol operation, 64323b03c5SDag-Erling Smørgravand saved for later analysis. 65323b03c5SDag-Erling Smørgrav.It 1 : 66323b03c5SDag-Erling Smørgravunstructured; 67323b03c5SDag-Erling Smørgrava common large number. 68323b03c5SDag-Erling Smørgrav.It 2 : 69323b03c5SDag-Erling Smørgravsafe (p = 2q + 1); 70323b03c5SDag-Erling Smørgravmeets basic structural requirements. 71323b03c5SDag-Erling Smørgrav.It 3 : 72323b03c5SDag-Erling SmørgravSchnorr. 73323b03c5SDag-Erling Smørgrav.It 4 : 74323b03c5SDag-Erling SmørgravSophie-Germaine (q = (p-1)/2); 75323b03c5SDag-Erling Smørgravusually generated in the process of testing safe or strong primes. 76323b03c5SDag-Erling Smørgrav.It 5 : 77323b03c5SDag-Erling Smørgravstrong; 78323b03c5SDag-Erling Smørgravuseful for RSA public key generation. 79323b03c5SDag-Erling Smørgrav.El 80323b03c5SDag-Erling Smørgrav.Pp 81323b03c5SDag-Erling Smørgrav.Fa Tests : decimal (bit field) . 82323b03c5SDag-Erling SmørgravSpecifies the methods used in checking for primality. 83323b03c5SDag-Erling SmørgravUsually, more than one test is used. 84323b03c5SDag-Erling Smørgrav.Pp 85323b03c5SDag-Erling Smørgrav.Bl -tag -width indent -offset indent -compact 86323b03c5SDag-Erling Smørgrav.It 0 : 87323b03c5SDag-Erling Smørgravnot tested; 88323b03c5SDag-Erling Smørgravoften learned from peer during protocol operation, 89323b03c5SDag-Erling Smørgravand saved for later analysis. 90323b03c5SDag-Erling Smørgrav.It 1 : 91323b03c5SDag-Erling Smørgravcomposite; 92323b03c5SDag-Erling Smørgravfailed one or more tests. 93323b03c5SDag-Erling SmørgravIn this case, the highest bit specifies the test that failed. 94323b03c5SDag-Erling Smørgrav.It 2 : 95323b03c5SDag-Erling Smørgravsieve; 96323b03c5SDag-Erling Smørgravchecked for division by a range of smaller primes. 97323b03c5SDag-Erling Smørgrav.It 4 : 98323b03c5SDag-Erling SmørgravMiller-Rabin. 99323b03c5SDag-Erling Smørgrav.It 8 : 100323b03c5SDag-Erling SmørgravJacobi. 101323b03c5SDag-Erling Smørgrav.It 16 : 102323b03c5SDag-Erling SmørgravElliptic Curve. 103323b03c5SDag-Erling Smørgrav.El 104323b03c5SDag-Erling Smørgrav.Pp 105323b03c5SDag-Erling Smørgrav.Fa Tries : decimal . 106323b03c5SDag-Erling SmørgravDepends on the value of the highest valid Test bit, 107323b03c5SDag-Erling Smørgravwhere the method specified is: 108323b03c5SDag-Erling Smørgrav.Pp 109323b03c5SDag-Erling Smørgrav.Bl -tag -width indent -offset indent -compact 110323b03c5SDag-Erling Smørgrav.It 0 : 111323b03c5SDag-Erling Smørgravnot tested 112323b03c5SDag-Erling Smørgrav(always zero). 113323b03c5SDag-Erling Smørgrav.It 1 : 114323b03c5SDag-Erling Smørgravcomposite 115323b03c5SDag-Erling Smørgrav(irrelevant). 116323b03c5SDag-Erling Smørgrav.It 2 : 117323b03c5SDag-Erling Smørgravsieve; 118323b03c5SDag-Erling Smørgravnumber of primes sieved. 119323b03c5SDag-Erling SmørgravCommonly on the order of 32,000,000. 120323b03c5SDag-Erling Smørgrav.It 4 : 121323b03c5SDag-Erling SmørgravMiller-Rabin; 122323b03c5SDag-Erling Smørgravnumber of M-R iterations. 123323b03c5SDag-Erling SmørgravCommonly on the order of 32 to 64. 124323b03c5SDag-Erling Smørgrav.It 8 : 125323b03c5SDag-Erling SmørgravJacobi; 126323b03c5SDag-Erling Smørgravunknown 127323b03c5SDag-Erling Smørgrav(always zero). 128323b03c5SDag-Erling Smørgrav.It 16 : 129323b03c5SDag-Erling SmørgravElliptic Curve; 130323b03c5SDag-Erling Smørgravunused 131323b03c5SDag-Erling Smørgrav(always zero). 132323b03c5SDag-Erling Smørgrav.El 133323b03c5SDag-Erling Smørgrav.Pp 134323b03c5SDag-Erling Smørgrav.Fa Size : decimal . 135323b03c5SDag-Erling SmørgravSpecifies the number of significant bits. 136323b03c5SDag-Erling Smørgrav.Pp 137323b03c5SDag-Erling Smørgrav.Fa Generator : hex string . 138323b03c5SDag-Erling SmørgravSpecifies the best generator for a Diffie-Hellman exchange. 139323b03c5SDag-Erling Smørgrav0 = unknown or variable, 140323b03c5SDag-Erling Smørgrav2, 3, 5, etc. 141323b03c5SDag-Erling Smørgrav.Pp 142323b03c5SDag-Erling Smørgrav.Fa Modulus : hex string . 143323b03c5SDag-Erling SmørgravThe prime modulus. 144323b03c5SDag-Erling Smørgrav.Pp 145323b03c5SDag-Erling SmørgravThe file is searched for moduli that meet the appropriate 146323b03c5SDag-Erling SmørgravTime, Size and Generator criteria. 147323b03c5SDag-Erling SmørgravWhen more than one meet the criteria, 148323b03c5SDag-Erling Smørgravthe selection should be weighted toward newer moduli, 149323b03c5SDag-Erling Smørgravwithout completely disqualifying older moduli. 150323b03c5SDag-Erling Smørgrav.Sh FILES 151323b03c5SDag-Erling Smørgrav.Bl -tag -width /etc/moduli -compact 152323b03c5SDag-Erling Smørgrav.It Pa /etc/moduli 153323b03c5SDag-Erling Smørgrav.El 154323b03c5SDag-Erling Smørgrav.Sh SEE ALSO 155323b03c5SDag-Erling Smørgrav.Xr photurisd 8 , 156323b03c5SDag-Erling Smørgrav.Xr sshd 8 157323b03c5SDag-Erling Smørgrav 158