2 * Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
4 * Licensed under the Apache License 2.0 (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
10 #ifndef HEADER_ASN1_DSA_H
11 # define HEADER_ASN1_DSA_H
13 size_t encode_der_length(size_t cont_len, unsigned char **ppout, size_t len);
14 size_t encode_der_integer(const BIGNUM *n, unsigned char **ppout, size_t len);
15 size_t encode_der_dsa_sig(const BIGNUM *r, const BIGNUM *s,
16 unsigned char **ppout, size_t len);
17 size_t decode_der_length(size_t *pcont_len, const unsigned char **ppin,
19 size_t decode_der_integer(BIGNUM *n, const unsigned char **ppin, size_t len);
20 size_t decode_der_dsa_sig(BIGNUM *r, BIGNUM *s, const unsigned char **ppin,