[test suite] added two GnuPG HMAC SHA512 tests
This commit is contained in:
parent
333302a7cf
commit
4775327d98
@ -150,6 +150,10 @@ EXTRA_DIST = \
|
|||||||
test/conf/gpg_hmac_access.conf \
|
test/conf/gpg_hmac_access.conf \
|
||||||
test/conf/gpg_no_pw_access.conf \
|
test/conf/gpg_no_pw_access.conf \
|
||||||
test/conf/gpg_no_pw_hmac_access.conf \
|
test/conf/gpg_no_pw_hmac_access.conf \
|
||||||
|
test/conf/fwknoprc_gpg_hmac_sha512_key \
|
||||||
|
test/conf/gpg_hmac_sha512_access.conf \
|
||||||
|
test/conf/fwknoprc_hmac_sha512_base64_key \
|
||||||
|
test/conf/gpg_no_pw_hmac_sha512_access.conf \
|
||||||
test/conf/no_flush_init_fwknopd.conf \
|
test/conf/no_flush_init_fwknopd.conf \
|
||||||
test/conf/no_flush_exit_fwknopd.conf \
|
test/conf/no_flush_exit_fwknopd.conf \
|
||||||
test/conf/no_flush_init_or_exit_fwknopd.conf \
|
test/conf/no_flush_init_or_exit_fwknopd.conf \
|
||||||
|
|||||||
4
test/conf/fwknoprc_gpg_hmac_sha512_key
Normal file
4
test/conf/fwknoprc_gpg_hmac_sha512_key
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[default]
|
||||||
|
HMAC_DIGEST_TYPE sha512
|
||||||
|
DIGEST_TYPE sha512
|
||||||
|
HMAC_KEY_BASE64 Yh+xizBnl6FotC5ec7FanVGClRMlsOAPh2u6eovnerfBVKwaVKzjGoblFMHMc593TNyi0dWn4opLoTIV9q/ttg==
|
||||||
4
test/conf/fwknoprc_hmac_sha512_base64_key
Normal file
4
test/conf/fwknoprc_hmac_sha512_base64_key
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[default]
|
||||||
|
HMAC_DIGEST_TYPE sha512
|
||||||
|
KEY_BASE64 wzNP62oPPgEc+kXDPQLHPOayQBuNbYUTPP+QrErNDmg=
|
||||||
|
HMAC_KEY_BASE64 Yh+xizBnl6FotC5ec7FanVGClRMlsOAPh2u6eovnerfBVKwaVKzjGoblFMHMc593TNyi0dWn4opLoTIV9q/ttg==
|
||||||
9
test/conf/gpg_hmac_sha512_access.conf
Normal file
9
test/conf/gpg_hmac_sha512_access.conf
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
SOURCE ANY
|
||||||
|
FW_ACCESS_TIMEOUT 3
|
||||||
|
HMAC_DIGEST_TYPE sha512
|
||||||
|
DIGEST_TYPE sha512
|
||||||
|
HMAC_KEY_BASE64 Yh+xizBnl6FotC5ec7FanVGClRMlsOAPh2u6eovnerfBVKwaVKzjGoblFMHMc593TNyi0dWn4opLoTIV9q/ttg==
|
||||||
|
GPG_HOME_DIR conf/server-gpg
|
||||||
|
GPG_DECRYPT_ID 361BBAD4
|
||||||
|
GPG_DECRYPT_PW fwknoptest
|
||||||
|
GPG_REMOTE_ID 6A3FAD56
|
||||||
8
test/conf/gpg_no_pw_hmac_sha512_access.conf
Normal file
8
test/conf/gpg_no_pw_hmac_sha512_access.conf
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
SOURCE ANY
|
||||||
|
FW_ACCESS_TIMEOUT 3
|
||||||
|
HMAC_DIGEST_TYPE sha512
|
||||||
|
HMAC_KEY_BASE64 Yh+xizBnl6FotC5ec7FanVGClRMlsOAPh2u6eovnerfBVKwaVKzjGoblFMHMc593TNyi0dWn4opLoTIV9q/ttg==
|
||||||
|
GPG_HOME_DIR conf/server-gpg-no-pw
|
||||||
|
GPG_DECRYPT_ID 361BBAD4
|
||||||
|
GPG_ALLOW_NO_PW Y
|
||||||
|
GPG_REMOTE_ID 6A3FAD56
|
||||||
@ -88,11 +88,13 @@ our %cf = (
|
|||||||
'hmac_dual_key_access' => "$conf_dir/hmac_dual_key_usage_access.conf",
|
'hmac_dual_key_access' => "$conf_dir/hmac_dual_key_usage_access.conf",
|
||||||
'gpg_access' => "$conf_dir/gpg_access.conf",
|
'gpg_access' => "$conf_dir/gpg_access.conf",
|
||||||
'gpg_hmac_access' => "$conf_dir/gpg_hmac_access.conf",
|
'gpg_hmac_access' => "$conf_dir/gpg_hmac_access.conf",
|
||||||
|
'gpg_hmac_sha512_access' => "$conf_dir/gpg_hmac_sha512_access.conf",
|
||||||
'legacy_iv_access' => "$conf_dir/legacy_iv_access.conf",
|
'legacy_iv_access' => "$conf_dir/legacy_iv_access.conf",
|
||||||
'legacy_iv_long_key_access' => "$conf_dir/legacy_iv_long_key_access.conf",
|
'legacy_iv_long_key_access' => "$conf_dir/legacy_iv_long_key_access.conf",
|
||||||
'legacy_iv_long_key2_access' => "$conf_dir/legacy_iv_long_key2_access.conf",
|
'legacy_iv_long_key2_access' => "$conf_dir/legacy_iv_long_key2_access.conf",
|
||||||
'gpg_no_pw_access' => "$conf_dir/gpg_no_pw_access.conf",
|
'gpg_no_pw_access' => "$conf_dir/gpg_no_pw_access.conf",
|
||||||
'gpg_no_pw_hmac_access' => "$conf_dir/gpg_no_pw_hmac_access.conf",
|
'gpg_no_pw_hmac_access' => "$conf_dir/gpg_no_pw_hmac_access.conf",
|
||||||
|
'gpg_no_pw_hmac_sha512_access' => "$conf_dir/gpg_no_pw_hmac_sha512_access.conf",
|
||||||
'tcp_server' => "$conf_dir/tcp_server_fwknopd.conf",
|
'tcp_server' => "$conf_dir/tcp_server_fwknopd.conf",
|
||||||
'tcp_pcap_filter' => "$conf_dir/tcp_pcap_filter_fwknopd.conf",
|
'tcp_pcap_filter' => "$conf_dir/tcp_pcap_filter_fwknopd.conf",
|
||||||
'icmp_pcap_filter' => "$conf_dir/icmp_pcap_filter_fwknopd.conf",
|
'icmp_pcap_filter' => "$conf_dir/icmp_pcap_filter_fwknopd.conf",
|
||||||
@ -123,10 +125,12 @@ our %cf = (
|
|||||||
'rc_hmac_equal_keys' => "$conf_dir/fwknoprc_hmac_equal_keys",
|
'rc_hmac_equal_keys' => "$conf_dir/fwknoprc_hmac_equal_keys",
|
||||||
'rc_invalid_b64_key' => "$conf_dir/fwknoprc_invalid_base64_key",
|
'rc_invalid_b64_key' => "$conf_dir/fwknoprc_invalid_base64_key",
|
||||||
'rc_hmac_b64_key' => "$conf_dir/fwknoprc_default_hmac_base64_key",
|
'rc_hmac_b64_key' => "$conf_dir/fwknoprc_default_hmac_base64_key",
|
||||||
|
'rc_hmac_sha512_b64_key' => "$conf_dir/fwknoprc_hmac_sha512_base64_key",
|
||||||
'rc_hmac_b64_key2' => "$conf_dir/fwknoprc_hmac_key2",
|
'rc_hmac_b64_key2' => "$conf_dir/fwknoprc_hmac_key2",
|
||||||
'rc_gpg_signing_pw' => "$conf_dir/fwknoprc_gpg_signing_pw",
|
'rc_gpg_signing_pw' => "$conf_dir/fwknoprc_gpg_signing_pw",
|
||||||
'rc_gpg_named_signing_pw' => "$conf_dir/fwknoprc_named_gpg_signing_pw",
|
'rc_gpg_named_signing_pw' => "$conf_dir/fwknoprc_named_gpg_signing_pw",
|
||||||
'rc_gpg_hmac_b64_key' => "$conf_dir/fwknoprc_gpg_hmac_key",
|
'rc_gpg_hmac_b64_key' => "$conf_dir/fwknoprc_gpg_hmac_key",
|
||||||
|
'rc_gpg_hmac_sha512_b64_key' => "$conf_dir/fwknoprc_gpg_hmac_sha512_key",
|
||||||
'rc_gpg_args_hmac_b64_key' => "$conf_dir/fwknoprc_gpg_args_hmac_key",
|
'rc_gpg_args_hmac_b64_key' => "$conf_dir/fwknoprc_gpg_args_hmac_key",
|
||||||
'rc_gpg_args_no_pw_hmac_b64_key' => "$conf_dir/fwknoprc_gpg_args_no_pw_hmac_key",
|
'rc_gpg_args_no_pw_hmac_b64_key' => "$conf_dir/fwknoprc_gpg_args_no_pw_hmac_key",
|
||||||
'rc_hmac_simple_key' => "$conf_dir/fwknoprc_hmac_simple_keys",
|
'rc_hmac_simple_key' => "$conf_dir/fwknoprc_hmac_simple_keys",
|
||||||
|
|||||||
@ -24,6 +24,22 @@
|
|||||||
'key_file' => $cf{'rc_gpg_hmac_b64_key'},
|
'key_file' => $cf{'rc_gpg_hmac_b64_key'},
|
||||||
'fatal' => $NO
|
'fatal' => $NO
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'category' => 'GPG+HMAC',
|
||||||
|
'subcategory' => 'client+server',
|
||||||
|
'detail' => 'complete cycle SHA512',
|
||||||
|
'function' => \&spa_cycle,
|
||||||
|
'cmdline' => $default_client_gpg_args
|
||||||
|
. " --rc-file $cf{'rc_gpg_hmac_sha512_b64_key'}",
|
||||||
|
'fwknopd_cmdline' => "LD_LIBRARY_PATH=$lib_dir " .
|
||||||
|
"$valgrind_str $fwknopdCmd -c $cf{'def'} " .
|
||||||
|
"-a $cf{'gpg_hmac_sha512_access'} $intf_str " .
|
||||||
|
"-d $default_digest_file -p $default_pid_file",
|
||||||
|
'fw_rule_created' => $NEW_RULE_REQUIRED,
|
||||||
|
'fw_rule_removed' => $NEW_RULE_REMOVED,
|
||||||
|
'key_file' => $cf{'rc_gpg_hmac_sha512_b64_key'},
|
||||||
|
'fatal' => $NO
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'category' => 'GPG+HMAC',
|
'category' => 'GPG+HMAC',
|
||||||
'subcategory' => 'client+server',
|
'subcategory' => 'client+server',
|
||||||
|
|||||||
@ -14,6 +14,24 @@
|
|||||||
'key_file' => $cf{'rc_hmac_b64_key'},
|
'key_file' => $cf{'rc_hmac_b64_key'},
|
||||||
'fatal' => $NO
|
'fatal' => $NO
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'category' => 'GPG (no pw) HMAC',
|
||||||
|
'subcategory' => 'client+server',
|
||||||
|
'detail' => 'complete cycle SHA512',
|
||||||
|
'function' => \&spa_cycle,
|
||||||
|
'cmdline' => "$default_client_gpg_args_no_homedir "
|
||||||
|
. "--gpg-home-dir $gpg_client_home_dir_no_pw "
|
||||||
|
. "--rc-file $cf{'rc_gpg_hmac_sha512_b64_key'}",
|
||||||
|
'fwknopd_cmdline' => "LD_LIBRARY_PATH=$lib_dir " .
|
||||||
|
"$valgrind_str $fwknopdCmd -c $cf{'def'} " .
|
||||||
|
"-a $cf{'gpg_no_pw_hmac_sha512_access'} $intf_str " .
|
||||||
|
"-d $default_digest_file -p $default_pid_file",
|
||||||
|
'fw_rule_created' => $NEW_RULE_REQUIRED,
|
||||||
|
'fw_rule_removed' => $NEW_RULE_REMOVED,
|
||||||
|
'key_file' => $cf{'rc_gpg_hmac_sha512_b64_key'},
|
||||||
|
'fatal' => $NO
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
'category' => 'GPG (no pw) HMAC',
|
'category' => 'GPG (no pw) HMAC',
|
||||||
'subcategory' => 'client+server',
|
'subcategory' => 'client+server',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user