Report

class Report(test_report)

Bases: object

clean_reports(output_dir='/home/runner/_work/claasp/claasp/docs/test_reports')
create_heatmap_subplot(i, graph_data, cipher_rounds)
save_as_DataFrame(output_dir='/home/runner/_work/claasp/claasp/docs/test_reports', fixed_input=None, fixed_output=None, fixed_test=None)
save_as_image(show_as_hex=False, test_name=None, fixed_input=None, fixed_output=None, fixed_input_difference=None, word_size=1, state_size=1, key_state_size=1, output_directory='/home/runner/_work/claasp/claasp/docs/test_reports', verbose=False, show_word_permutation=False, show_var_shift=False, show_var_rotate=False, show_theta_xoodoo=False, show_theta_keccak=False, show_shift_rows=False, show_sigma=False, show_reverse=False, show_permuation=False, show_multi_input_non_linear_logical_operator=False, show_modular=False, show_modsub=False, show_constant=False, show_rot=False, show_sbox=False, show_mix_column=False, show_shift=False, show_linear_layer=False, show_xor=False, show_modadd=False, show_and=False, show_or=False, show_not=False, show_plaintext=True, show_key=True, show_intermediate_output=True, show_cipher_output=True, show_input=True, show_output=True)

Prints the graphical representation of the Report.

INPUT:

word_sizeinteger: the word_size to be used for the trail representation state_sizeinteger: the state_size to be used for the trail representation key_state_sizeinteger: the key_state_size to be used for the trail representation output_directorystring: the directory in which to store the reports verbosebool: determines wether to print out a verbose output or not show_*bool: boolean value to determine wether to display each specific component when visualizing a trail

EXAMPLES:

sage: from claasp.ciphers.block_ciphers.speck_block_cipher import SpeckBlockCipher sage: from claasp.cipher_modules.avalanche_tests import AvalancheTests sage: from claasp.cipher_modules.report import Report sage: speck = SpeckBlockCipher(number_of_rounds=5) sage: avalanche_test_results = AvalancheTests(speck).avalanche_tests() sage: report = Report(avalanche_test_results) sage: report.save_as_image(test_name=’avalanche_weight_vectors’, fixed_input=’plaintext’, fixed_output=’round_output’, fixed_input_difference=’average’) # random

save_as_json(output_dir='/home/runner/_work/claasp/claasp/docs/test_reports', fixed_input=None, fixed_output=None, fixed_test=None)
save_as_latex_table(output_dir='/home/runner/_work/claasp/claasp/docs/test_reports', fixed_input=None, fixed_output=None, fixed_test=None)
show(show_as_hex=False, test_name=None, fixed_input='plaintext', fixed_output='round_output', fixed_input_difference='average', word_size=1, state_size=1, key_state_size=1, verbose=False, show_word_permutation=False, show_var_shift=False, show_var_rotate=False, show_theta_xoodoo=False, show_theta_keccak=False, show_shift_rows=False, show_sigma=False, show_reverse=False, show_permuation=False, show_multi_input_non_linear_logical_operator=False, show_modular=False, show_modsub=False, show_constant=False, show_rot=False, show_sbox=False, show_mix_column=False, show_shift=False, show_linear_layer=False, show_xor=False, show_modadd=False, show_and=False, show_or=False, show_not=False, show_plaintext=True, show_key=True, show_intermediate_output=True, show_cipher_output=True, show_input=True, show_output=True, show_graph=True)