aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/codegen/asn1/asn1.h
blob: 691755c61690ec6728beae57871c3c50f8eb24b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef ASN1_H_
#define ASN1_H_

#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include "bn.h"

uint8_t *asn1_der_encode(const bn_t *r, const bn_t *s, size_t *result_len);

bool asn1_der_decode(const uint8_t *sig, size_t sig_len, bn_t *r, bn_t *s);

#endif //ASN1_H_