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