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>
|
|
|
|
|
2019-04-10 16:21:42 +08:00
|
|
|
int asn1_print(uint8_t *asn1buf, size_t asn1buflen, const char *indent);
|
2019-04-06 06:38:22 +08:00
|
|
|
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 */
|