2018-10-24 23:18:05 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Copyright (C) 2018 Merlok
|
|
|
|
//
|
|
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
|
|
|
// at your option, any later version. See the LICENSE.txt file for the text of
|
|
|
|
// the license.
|
|
|
|
//-----------------------------------------------------------------------------
|
2018-11-08 00:05:02 +08:00
|
|
|
// asn.1 utils
|
2018-10-24 23:18:05 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2018-11-08 00:05:02 +08:00
|
|
|
#ifndef ASN1UTILS_H
|
|
|
|
#define ASN1UTILS_H
|
2018-10-24 23:18:05 +08:00
|
|
|
|
|
|
|
#include <stdint.h>
|
2018-11-08 00:05:02 +08:00
|
|
|
#include <stdbool.h>
|
2018-10-24 23:18:05 +08:00
|
|
|
#include <stddef.h>
|
|
|
|
|
2018-11-15 00:44:17 +08:00
|
|
|
extern int asn1_print(uint8_t *asn1buf, size_t asn1buflen, char *indent);
|
2018-11-08 00:05:02 +08:00
|
|
|
extern int ecdsa_asn1_get_signature(uint8_t *signature, size_t signaturelen, uint8_t *rval, uint8_t *sval);
|
2018-10-24 23:18:05 +08:00
|
|
|
|
2018-11-08 00:05:02 +08:00
|
|
|
#endif /* asn1utils.h */
|