Alice Wang | c8f88f5 | 2023-09-25 14:02:17 +0000 | [diff] [blame] | 1 | // Copyright 2023, The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | //! Safe wrappers around the BoringSSL API. |
| 16 | |
| 17 | #![cfg_attr(not(feature = "std"), no_std)] |
| 18 | |
Alice Wang | b3fcf63 | 2023-09-26 08:32:55 +0000 | [diff] [blame] | 19 | extern crate alloc; |
| 20 | |
Alice Wang | 69b088f | 2023-09-27 12:54:05 +0000 | [diff] [blame^] | 21 | mod aead; |
Alice Wang | c8f88f5 | 2023-09-25 14:02:17 +0000 | [diff] [blame] | 22 | mod cbb; |
Alice Wang | 709cce9 | 2023-09-26 10:30:21 +0000 | [diff] [blame] | 23 | mod digest; |
Alice Wang | b3fcf63 | 2023-09-26 08:32:55 +0000 | [diff] [blame] | 24 | mod ec_key; |
Alice Wang | 47287e7 | 2023-09-29 13:14:33 +0000 | [diff] [blame] | 25 | mod err; |
Alice Wang | f1a83b0 | 2023-09-26 12:39:17 +0000 | [diff] [blame] | 26 | mod hkdf; |
Alice Wang | 709cce9 | 2023-09-26 10:30:21 +0000 | [diff] [blame] | 27 | mod hmac; |
Alice Wang | 815d368 | 2023-09-28 08:30:40 +0000 | [diff] [blame] | 28 | mod util; |
Alice Wang | c8f88f5 | 2023-09-25 14:02:17 +0000 | [diff] [blame] | 29 | |
Alice Wang | 47287e7 | 2023-09-29 13:14:33 +0000 | [diff] [blame] | 30 | pub use bssl_avf_error::{ApiName, CipherError, Error, ReasonCode, Result}; |
| 31 | |
Alice Wang | 69b088f | 2023-09-27 12:54:05 +0000 | [diff] [blame^] | 32 | pub use aead::{Aead, AeadCtx}; |
Alice Wang | c8f88f5 | 2023-09-25 14:02:17 +0000 | [diff] [blame] | 33 | pub use cbb::CbbFixed; |
Alice Wang | f1a83b0 | 2023-09-26 12:39:17 +0000 | [diff] [blame] | 34 | pub use digest::Digester; |
Alice Wang | b3fcf63 | 2023-09-26 08:32:55 +0000 | [diff] [blame] | 35 | pub use ec_key::{EcKey, ZVec}; |
Alice Wang | f1a83b0 | 2023-09-26 12:39:17 +0000 | [diff] [blame] | 36 | pub use hkdf::hkdf; |
Alice Wang | 709cce9 | 2023-09-26 10:30:21 +0000 | [diff] [blame] | 37 | pub use hmac::hmac_sha256; |