encoder.h 909 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright 2025 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_INTERNAL_ENCODER_H
  10. # define OSSL_INTERNAL_ENCODER_H
  11. # pragma once
  12. # include <openssl/bio.h>
  13. # include <openssl/buffer.h>
  14. # include <openssl/types.h>
  15. # include "internal/ffc.h"
  16. int ossl_bio_print_labeled_bignum(BIO *out, const char *label,
  17. const BIGNUM *bn);
  18. int ossl_bio_print_labeled_buf(BIO *out, const char *label,
  19. const unsigned char *buf, size_t buflen);
  20. # if !defined(OPENSSL_NO_DH) || !defined(OPENSSL_NO_DSA)
  21. int ossl_bio_print_ffc_params(BIO *out, const FFC_PARAMS *ffc);
  22. # endif
  23. #endif