Path: blob/main/crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.h
104874 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__owur ML_KEM_KEY *ossl_ml_kem_d2i_PUBKEY(const uint8_t *pubenc, int publen,20int evp_type, PROV_CTX *provctx,21const char *propq);22__owur ML_KEM_KEY *ossl_ml_kem_d2i_PKCS8(const uint8_t *prvenc, int prvlen,23int evp_type, PROV_CTX *provctx,24const char *propq);25__owur int ossl_ml_kem_key_to_text(BIO *out, const ML_KEM_KEY *key, int selection);26__owur27__owur int28ossl_ml_kem_i2d_pubkey(const ML_KEM_KEY *key, unsigned char **out);29__owur30__owur int31ossl_ml_kem_i2d_prvkey(const ML_KEM_KEY *key, unsigned char **out,32PROV_CTX *provctx);3334#endif /* OPENSSL_NO_ML_KEM */35#endif /* PROV_ML_KEM_CODECS_H */363738