noxtls_psa/lib.rs
1// Copyright (c) 2019-2026, Argenox Technologies LLC
2// All rights reserved.
3//
4// SPDX-License-Identifier: GPL-2.0-only OR LicenseRef-Argenox-Commercial-License
5//
6// This file is part of the NoxTLS Library.
7//
8// This program is free software: you can redistribute it and/or modify
9// it under the terms of the GNU General Public License as published by the
10// Free Software Foundation; version 2 of the License.
11//
12// Alternatively, this file may be used under the terms of a commercial
13// license from Argenox Technologies LLC.
14//
15// See `noxtls/LICENSE` and `noxtls/LICENSE.md` in this repository for full details.
16// CONTACT: info@argenox.com
17
18#![cfg_attr(not(feature = "std"), no_std)]
19#![forbid(unsafe_code)]
20
21extern crate alloc;
22
23mod error;
24mod ffi;
25mod provider;
26
27pub use error::{map_status_to_result, normalize_psa_status, PsaError, PsaResultCode};
28pub use ffi::FfiPsaBackend;
29pub use provider::{
30 AeadEncryptRequest, AeadEncryptResponse, KeyDecryptRequest, KeyDeriveRequest, KeySignRequest,
31 PsaCryptoBackend, PsaDecryptAlgorithm, PsaDeriveAlgorithm, PsaExternalKeyHandle, PsaProvider,
32 PsaSignAlgorithm, PsaSoftwareBackend, PsaSoftwareProvider,
33};