mundane/
insecure.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

//! WARNING: INSECURE CRYPTOGRAPHIC OPERATIONS.
//!
//! This module contains cryptographic operations which are considered insecure.
//! These operations should only be used for compatibility with legacy systems -
//! never in new systems!
//!
//! *This module is available if Mundane is built with the `insecure` feature.*

#![deprecated(note = "insecure cryptographic operations")]

#[allow(deprecated)]
#[cfg(feature = "insecure")]
pub use hash::insecure_md5_digest::InsecureMd5Digest;
#[allow(deprecated)]
#[cfg(feature = "insecure")]
pub use hash::insecure_sha1_digest::InsecureSha1Digest;

#[allow(deprecated)]
#[cfg(feature = "insecure")]
pub use hmac::insecure_hmac::{InsecureHmacMd5, InsecureHmacSha1};

#[allow(deprecated)]
#[cfg(all(feature = "kdf", feature = "insecure"))]
pub use kdf::insecure_pbkdf2_hmac_sha1::insecure_pbkdf2_hmac_sha1;

#[allow(deprecated)]
#[cfg(feature = "insecure")]
pub use insecure_rc4::InsecureRc4Key;