asn1_dsa.h 855 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright 2019-2020 The OpenSSL Project Authors. All Rights Reserved.
  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. #ifndef OSSL_CRYPTO_ASN1_DSA_H
  10. # define OSSL_CRYPTO_ASN1_DSA_H
  11. #include "internal/packet.h"
  12. int encode_der_length(WPACKET *pkt, size_t cont_len);
  13. int encode_der_integer(WPACKET *pkt, const BIGNUM *n);
  14. int encode_der_dsa_sig(WPACKET *pkt, const BIGNUM *r, const BIGNUM *s);
  15. int ossl_decode_der_length(PACKET *pkt, PACKET *subpkt);
  16. int ossl_decode_der_integer(PACKET *pkt, BIGNUM *n);
  17. size_t ossl_decode_der_dsa_sig(BIGNUM *r, BIGNUM *s, const unsigned char **ppin,
  18. size_t len);
  19. #endif