solo1/fido2/util.h

23 wiersze
563 B
C

2019-02-12 22:18:17 +00:00
// Copyright 2019 SoloKeys Developers
//
// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
// http://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.
2018-04-28 17:40:28 +00:00
#ifndef _UTIL_H
#define _UTIL_H
2018-09-10 20:27:15 +00:00
#include <stdint.h>
2018-04-28 17:40:28 +00:00
void dump_hex(uint8_t * buf, int size);
2018-06-02 18:44:12 +00:00
#ifndef MIN
2018-05-01 03:27:26 +00:00
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
2018-06-02 18:44:12 +00:00
#endif
#ifndef MAX
2018-05-01 03:27:26 +00:00
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
2018-06-02 18:44:12 +00:00
#endif
2018-05-01 03:27:26 +00:00
2018-04-28 17:40:28 +00:00
#endif