Lines Matching full:512
123 #use 512 for the size for speed reasons. Don't use this in real applications!
124 subtest "Generate: 512 bit PKCS3 params, generator 2, PEM file" => sub {
126 ok(run(app([ 'openssl', 'dhparam', '-out', 'gen-pkcs3-2-512.pem',
127 '512' ])));
128 checkdhparams("gen-pkcs3-2-512.pem", "PKCS3", 2, "PEM", 512);
130 subtest "Generate: 512 bit PKCS3 params, explicit generator 2, PEM file" => sub {
132 ok(run(app([ 'openssl', 'dhparam', '-out', 'gen-pkcs3-exp2-512.pem', '-2',
133 '512' ])));
134 checkdhparams("gen-pkcs3-exp2-512.pem", "PKCS3", 2, "PEM", 512);
136 subtest "Generate: 512 bit PKCS3 params, generator 5, PEM file" => sub {
138 ok(run(app([ 'openssl', 'dhparam', '-out', 'gen-pkcs3-5-512.pem', '-5',
139 '512' ])));
140 checkdhparams("gen-pkcs3-5-512.pem", "PKCS3", 5, "PEM", 512);
142 subtest "Generate: 512 bit PKCS3 params, generator 2, explicit PEM file" => sub {
144 ok(run(app([ 'openssl', 'dhparam', '-out', 'gen-pkcs3-2-512.exp.pem',
145 '-outform', 'PEM', '512' ])));
146 checkdhparams("gen-pkcs3-2-512.exp.pem", "PKCS3", 2, "PEM", 512);
151 subtest "Generate: 512 bit X9.42 params, generator 0, PEM file" => sub {
153 ok(run(app([ 'openssl', 'dhparam', '-out', 'gen-x942-0-512.pem',
154 '-dsaparam', '512' ])));
155 checkdhparams("gen-x942-0-512.pem", "X9.42", 0, "PEM", 512);
157 subtest "Generate: 512 bit X9.42 params, explicit generator 2, PEM file" => sub {
160 ok(!run(app([ 'openssl', 'dhparam', '-out', 'gen-x942-exp2-512.pem', '-2',
161 '-dsaparam', '512' ])));
163 subtest "Generate: 512 bit X9.42 params, generator 5, PEM file" => sub {
166 ok(!run(app([ 'openssl', 'dhparam', '-out', 'gen-x942-5-512.pem',
167 '-5', '-dsaparam', '512' ])));
169 subtest "Generate: 512 bit X9.42 params, generator 0, DER file" => sub {
171 ok(run(app([ 'openssl', 'dhparam', '-out', 'gen-x942-0-512.der',
172 '-dsaparam', '-outform', 'DER', '512' ])));
173 checkdhparams("gen-x942-0-512.der", "X9.42", 0, "DER", 512);
182 ok(!run(app(['openssl', 'dhparam', '-check', '512'])),
183 "Generating 512 bit DH params should fail in FIPS mode");
186 '?fips!=yes', '-check', '512'])),
187 "Generating 512 bit DH params should succeed in FIPS mode using".
193 ok(!run(app(['openssl', 'dhparam', '-dsaparam', '-check', '512'])),
194 "Generating 512 bit DSA-style DH params should fail in FIPS mode");
197 '?fips!=yes', '-dsaparam', '-check', '512'])),
198 "Generating 512 bit DSA-style DH params should succeed in FIPS".