/* Copyright (c) 2021 Fraunhofer AISEC. See the COPYRIGHT file at the top-level directory of this distribution. Licensed under the Apache License, Version 2.0 or the MIT license , at your option. This file may not be copied, modified, or distributed except according to those terms. */ #include #include #include "common/print_util.h" void print_array(const uint8_t *in_data, uint32_t in_len) { printf(" (size %lu):", (unsigned long)in_len); for (uint32_t i = 0; i < in_len; i++) { if (i % 16 == 0) printf("\n\t%02X ", in_data[i]); else printf("%02X ", in_data[i]); } printf("\n"); }