]> git.ipfire.org Git - thirdparty/openssl.git/blame - include/crypto/asn1_dsa.h
providers: Add SM4 XTS implementation
[thirdparty/openssl.git] / include / crypto / asn1_dsa.h
CommitLineData
54846b7c 1/*
a28d06f3 2 * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
54846b7c
DM
3 *
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
8 */
9
ae4186b0
DMSP
10#ifndef OSSL_CRYPTO_ASN1_DSA_H
11# define OSSL_CRYPTO_ASN1_DSA_H
80ce21fe 12# pragma once
54846b7c 13
8ae173bb
MC
14#include "internal/packet.h"
15
2858156e
SL
16int ossl_encode_der_length(WPACKET *pkt, size_t cont_len);
17int ossl_encode_der_integer(WPACKET *pkt, const BIGNUM *n);
18int ossl_encode_der_dsa_sig(WPACKET *pkt, const BIGNUM *r, const BIGNUM *s);
a55b00bd
P
19int ossl_decode_der_length(PACKET *pkt, PACKET *subpkt);
20int ossl_decode_der_integer(PACKET *pkt, BIGNUM *n);
21size_t ossl_decode_der_dsa_sig(BIGNUM *r, BIGNUM *s, const unsigned char **ppin,
22 size_t len);
54846b7c
DM
23
24#endif