1 /* 2 Copyright (c) 2021 Fraunhofer AISEC. See the COPYRIGHT 3 file at the top-level directory of this distribution. 4 5 Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or 6 http://www.apache.org/licenses/LICENSE-2.0> or the MIT license 7 <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your 8 option. This file may not be copied, modified, or distributed 9 except according to those terms. 10 */ 11 12 #include <stdint.h> 13 #include <stdio.h> 14 15 #include "common/print_util.h" 16 print_array(const uint8_t * in_data,uint32_t in_len)17void print_array(const uint8_t *in_data, uint32_t in_len) 18 { 19 printf(" (size %lu):", (unsigned long)in_len); 20 for (uint32_t i = 0; i < in_len; i++) { 21 if (i % 16 == 0) 22 printf("\n\t%02X ", in_data[i]); 23 else 24 printf("%02X ", in_data[i]); 25 } 26 printf("\n"); 27 } 28