@@ -80,36 +80,36 @@ static const char *options =
8080" gmssl sm2keygen -pass P@ssw0rd -out alice.pem -pubout alicepub.pem\n"
8181" gmssl sm2keygen -pass P@ssw0rd -out bob.pem -pubout bobpub.pem\n"
8282" gmssl sm2exch -stage init \\\n"
83- " -exch_keyout alice_ra.pem -exch_pass P@ssw0rd -out ra.hex\n"
83+ " -exch_keyout alice_ra.pem -exch_pass P@ssw0rd -out ra.hex\n"
8484" gmssl sm2exch -stage respond \\\n"
85- " -key bob.pem -pass P@ssw0rd -id Bob \\\n"
86- " -peer_pubkey alicepub.pem -peer_id Alice -in ra.hex \\\n"
87- " -exch_keyout bob_rb.pem -exch_pass P@ssw0rd \\\n"
88- " -secret_state_out bob_secret_state.hex -out rb_sb.hex\n"
85+ " -key bob.pem -pass P@ssw0rd -id Bob \\\n"
86+ " -peer_pubkey alicepub.pem -peer_id Alice -in ra.hex \\\n"
87+ " -exch_keyout bob_rb.pem -exch_pass P@ssw0rd \\\n"
88+ " -secret_state_out bob_secret_state.hex -out rb_sb.hex\n"
8989" gmssl sm2exch -stage confirm \\\n"
90- " -key alice.pem -pass P@ssw0rd -id Alice \\\n"
91- " -peer_pubkey bobpub.pem -peer_id Bob \\\n"
92- " -exch_key alice_ra.pem -exch_pass P@ssw0rd -in rb_sb.hex \\\n"
93- " -keylen 48 -keyout alice_shared_key.hex -out sa.hex\n"
90+ " -key alice.pem -pass P@ssw0rd -id Alice \\\n"
91+ " -peer_pubkey bobpub.pem -peer_id Bob \\\n"
92+ " -exch_key alice_ra.pem -exch_pass P@ssw0rd -in rb_sb.hex \\\n"
93+ " -keylen 48 -keyout alice_shared_key.hex -out sa.hex\n"
9494" gmssl sm2exch -stage finish \\\n"
95- " -key bob.pem -pass P@ssw0rd -id Bob \\\n"
96- " -peer_pubkey alicepub.pem -peer_id Alice \\\n"
97- " -exch_key bob_rb.pem -exch_pass P@ssw0rd \\\n"
98- " -secret_state bob_secret_state.hex -in sa.hex \\\n"
99- " -keylen 48 -keyout bob_shared_key.hex\n"
95+ " -key bob.pem -pass P@ssw0rd -id Bob \\\n"
96+ " -peer_pubkey alicepub.pem -peer_id Alice \\\n"
97+ " -exch_key bob_rb.pem -exch_pass P@ssw0rd \\\n"
98+ " -secret_state bob_secret_state.hex -in sa.hex \\\n"
99+ " -keylen 48 -keyout bob_shared_key.hex\n"
100100"\n"
101101"Certificate workflow:\n"
102102"\n"
103103" gmssl sm2exch -stage respond \\\n"
104- " -key bob_enc_key.pem -pass P@ssw0rd -id Bob \\\n"
105- " -peer_cert alice_enc_cert.pem -peer_id Alice -in ra.hex \\\n"
106- " -exch_keyout bob_rb.pem -exch_pass P@ssw0rd \\\n"
107- " -secret_state_out bob_secret_state.hex -out rb_sb.hex\n"
104+ " -key bob_enc_key.pem -pass P@ssw0rd -id Bob \\\n"
105+ " -peer_cert alice_enc_cert.pem -peer_id Alice -in ra.hex \\\n"
106+ " -exch_keyout bob_rb.pem -exch_pass P@ssw0rd \\\n"
107+ " -secret_state_out bob_secret_state.hex -out rb_sb.hex\n"
108108" gmssl sm2exch -stage confirm \\\n"
109- " -key alice_enc_key.pem -pass P@ssw0rd -id Alice \\\n"
110- " -peer_cert bob_enc_cert.pem -peer_id Bob \\\n"
111- " -exch_key alice_ra.pem -exch_pass P@ssw0rd -in rb_sb.hex \\\n"
112- " -keyout alice_shared_key.hex -out sa.hex\n"
109+ " -key alice_enc_key.pem -pass P@ssw0rd -id Alice \\\n"
110+ " -peer_cert bob_enc_cert.pem -peer_id Bob \\\n"
111+ " -exch_key alice_ra.pem -exch_pass P@ssw0rd -in rb_sb.hex \\\n"
112+ " -keyout alice_shared_key.hex -out sa.hex\n"
113113"\n"
114114"Notes\n"
115115"\n"
0 commit comments