tests.utils.crypto_extension_utils ================================== .. py:module:: tests.utils.crypto_extension_utils Classes ------- .. autoapisummary:: tests.utils.crypto_extension_utils.CryptographicExtensionUtils Module Contents --------------- .. py:class:: CryptographicExtensionUtils Utility functions for Arm Cryptographic Extension tests. Provides helper methods to: - Generate self-signed certificates - Start and stop SSL servers - Perform HTTPS downloads with timing .. py:method:: _generate_certificate(mgr, port, days) Generate a self-signed certificate using OpenSSL :param mgr: Manager object to execute commands :param port: Console port to run commands on :param days: Number of days the certificate is valid :returns: None .. py:method:: _start_ssl_server(mgr, port) Start SSL server serving 100MB random data file :param mgr: Manager object to execute commands :param port: Console port to run commands on :returns: None .. py:method:: _cleanup_server(mgr, port) Cleanup the server process by bringing it to foreground and terminating :param mgr: Manager object to execute commands :param port: Console port to run commands on :returns: None .. py:method:: _cleanup_files(mgr, port) Cleanup generated certificate files :param mgr: Manager object to execute commands :param port: Console port to run commands on :returns: None .. py:method:: _extract_time_fields(output) Extract timing information from the 'time' command output. Returns a dictionary with 'real', 'user', and 'sys' timing values. :param output: The output string from the 'time' command :returns: A dictionary with keys 'real', 'user', 'sys' and their corresponding timing values in seconds .. py:method:: _download(mgr, port, enable_crypto, timeout = 60) Download data from the SSL server using openssl s_client with specified cipher and return timing information. :param mgr: Manager object to execute commands :param port: Console port to run commands on :param enable_crypto: Flag to enable or disable cryptographic operations :param timeout: Timeout for the download command :returns: A dictionary with keys 'real', 'user', 'sys' and their corresponding timing values in seconds