Path: blob/main/crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.h
48383 views
/*1* Copyright 2025 The OpenSSL Project Authors. All Rights Reserved.2*3* Licensed under the Apache License 2.0 (the "License"). You may not use4* this file except in compliance with the License. You can obtain a copy5* in the file LICENSE in the source distribution or at6* https://www.openssl.org/source/license.html7*/89#ifndef PROV_ML_KEM_CODECS_H10# define PROV_ML_KEM_CODECS_H11# pragma once1213# ifndef OPENSSL_NO_ML_KEM14# include <openssl/e_os2.h>15# include "crypto/ml_kem.h"16# include "prov/provider_ctx.h"17# include "ml_common_codecs.h"1819__owur20ML_KEM_KEY *ossl_ml_kem_d2i_PUBKEY(const uint8_t *pubenc, int publen,21int evp_type, PROV_CTX *provctx,22const char *propq);23__owur24ML_KEM_KEY *ossl_ml_kem_d2i_PKCS8(const uint8_t *prvenc, int prvlen,25int evp_type, PROV_CTX *provctx,26const char *propq);27__owur28int ossl_ml_kem_key_to_text(BIO *out, const ML_KEM_KEY *key, int selection);29__owur30__owur31int ossl_ml_kem_i2d_pubkey(const ML_KEM_KEY *key, unsigned char **out);32__owur33__owur34int ossl_ml_kem_i2d_prvkey(const ML_KEM_KEY *key, unsigned char **out,35PROV_CTX *provctx);3637# endif /* OPENSSL_NO_ML_KEM */38#endif /* PROV_ML_KEM_CODECS_H */394041