CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
sha256_unit_tests.py File Reference

Namespaces

namespace  sha256_unit_tests
 

Variables

int sha256_unit_tests.NUM_TESTS = 20
 
list sha256_unit_tests.random_strings = []
 
list sha256_unit_tests.lines = []
 
 sha256_unit_tests.hash_bytes = hashlib.sha256(bytes(random_strings[i], "utf8")).digest()
 
str sha256_unit_tests.hex_values = ", ".join(f"0x{byte:02x}" for byte in hash_bytes)
 
str sha256_unit_tests.expected = f"static const uint8_t random_expected_{i}[] = " + "{" + hex_values + "};"