1// Copyright 2019 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
45pub mod akm;
6pub mod cipher;
7pub mod fake_rsnes;
8mod pmkid;
9pub mod rsne;
10pub mod suite_filter;
11pub mod suite_selector;
1213pub use fake_rsnes::*;
14pub use suite_selector::OUI;
1516use thiserror::Error;
1718#[derive(Debug, Error)]
19pub enum Error {
20#[error("unexpected IO error: {}", _0)]
21UnexpectedIoError(std::io::Error),
22#[error("invalid OUI length; expected 3 bytes but received {}", _0)]
23InvalidOuiLength(usize),
24#[error("invalid PMKID length; expected 16 bytes but received {}", _0)]
25InvalidPmkidLength(usize),
26}
2728impl From<std::io::Error> for Error {
29fn from(e: std::io::Error) -> Self {
30 Error::UnexpectedIoError(e)
31 }
32}