fix little endian vs big endian in the macros... again... but this time correct
[RRG-proxmark3.git] / client / src / crypto / asn1utils.h
blob029741bc621a09710773193ba51f9aac89ac49c2
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2018 Merlok
3 //
4 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
5 // at your option, any later version. See the LICENSE.txt file for the text of
6 // the license.
7 //-----------------------------------------------------------------------------
8 // asn.1 utils
9 //-----------------------------------------------------------------------------
11 #ifndef ASN1UTILS_H
12 #define ASN1UTILS_H
14 #include <stdint.h>
15 #include <stdbool.h>
16 #include <stddef.h>
18 int asn1_print(uint8_t *asn1buf, size_t asn1buflen, const char *indent);
19 int ecdsa_asn1_get_signature(uint8_t *signature, size_t signaturelen, uint8_t *rval, uint8_t *sval);
21 #endif /* asn1utils.h */