Skip to content

Commit 76bcc06

Browse files
authored
Fix RustRover insight (#671)
1 parent 734f8de commit 76bcc06

37 files changed

+99
-97
lines changed

aws-lc-rs/src/aead/aead_ctx.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ use core::ptr::null_mut;
66

77
use crate::cipher::chacha;
88

9-
use crate::cipher::aes::{AES_128_KEY_LEN, AES_192_KEY_LEN, AES_256_KEY_LEN};
10-
use crate::error::Unspecified;
11-
use crate::ptr::LcPtr;
12-
use aws_lc::{
9+
use crate::aws_lc::{
1310
evp_aead_direction_t, evp_aead_direction_t_evp_aead_open, evp_aead_direction_t_evp_aead_seal,
1411
EVP_AEAD_CTX_init, EVP_AEAD_CTX_init_with_direction, EVP_AEAD_CTX_zero, EVP_aead_aes_128_gcm,
1512
EVP_aead_aes_128_gcm_randnonce, EVP_aead_aes_128_gcm_siv, EVP_aead_aes_128_gcm_tls12,
1613
EVP_aead_aes_128_gcm_tls13, EVP_aead_aes_192_gcm, EVP_aead_aes_256_gcm,
1714
EVP_aead_aes_256_gcm_randnonce, EVP_aead_aes_256_gcm_siv, EVP_aead_aes_256_gcm_tls12,
1815
EVP_aead_aes_256_gcm_tls13, EVP_aead_chacha20_poly1305, OPENSSL_malloc, EVP_AEAD_CTX,
1916
};
17+
use crate::cipher::aes::{AES_128_KEY_LEN, AES_192_KEY_LEN, AES_256_KEY_LEN};
18+
use crate::error::Unspecified;
19+
use crate::ptr::LcPtr;
2020

2121
pub(crate) enum AeadDirection {
2222
Open,

aws-lc-rs/src/aead/poly1305.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
// TODO: enforce maximum input length.
77

88
use super::{Tag, TAG_LEN};
9+
use crate::aws_lc::{CRYPTO_poly1305_finish, CRYPTO_poly1305_init, CRYPTO_poly1305_update};
910
use crate::cipher::block::BLOCK_LEN;
10-
use aws_lc::{CRYPTO_poly1305_finish, CRYPTO_poly1305_init, CRYPTO_poly1305_update};
1111
use core::mem::MaybeUninit;
1212

1313
/// A Poly1305 key.

aws-lc-rs/src/aead/unbound_key.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ use super::{aead_ctx::AeadCtx, Algorithm, Nonce, MAX_KEY_LEN, MAX_TAG_LEN, NONCE
55
use super::{
66
Tag, AES_128_GCM, AES_128_GCM_SIV, AES_192_GCM, AES_256_GCM, AES_256_GCM_SIV, CHACHA20_POLY1305,
77
};
8-
use crate::iv::FixedLength;
9-
use crate::{error::Unspecified, fips::indicator_check, hkdf};
10-
use aws_lc::{
8+
use crate::aws_lc::{
119
EVP_AEAD_CTX_open, EVP_AEAD_CTX_open_gather, EVP_AEAD_CTX_seal, EVP_AEAD_CTX_seal_scatter,
1210
};
11+
use crate::iv::FixedLength;
12+
use crate::{error::Unspecified, fips::indicator_check, hkdf};
1313
use core::fmt::Debug;
1414
use core::{mem::MaybeUninit, ops::RangeFrom, ptr::null};
1515

aws-lc-rs/src/agreement.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,20 @@ mod ephemeral;
5353

5454
pub use ephemeral::{agree_ephemeral, EphemeralPrivateKey};
5555

56-
use crate::cbb::LcCBB;
57-
use crate::ec::{ec_group_from_nid, evp_key_generate};
58-
use crate::error::{KeyRejected, Unspecified};
59-
use crate::fips::indicator_check;
60-
use crate::ptr::{ConstPointer, LcPtr};
61-
use crate::{ec, hex};
62-
use aws_lc::{
56+
use crate::aws_lc::{
6357
CBS_init, EVP_PKEY_CTX_new_id, EVP_PKEY_bits, EVP_PKEY_derive, EVP_PKEY_derive_init,
6458
EVP_PKEY_derive_set_peer, EVP_PKEY_get0_EC_KEY, EVP_PKEY_get_raw_private_key,
6559
EVP_PKEY_get_raw_public_key, EVP_PKEY_id, EVP_PKEY_keygen, EVP_PKEY_keygen_init,
6660
EVP_PKEY_new_raw_private_key, EVP_PKEY_new_raw_public_key, EVP_marshal_public_key,
6761
EVP_parse_public_key, NID_X9_62_prime256v1, NID_secp384r1, NID_secp521r1, BIGNUM, CBS,
6862
EVP_PKEY, EVP_PKEY_X25519, NID_X25519,
6963
};
64+
use crate::cbb::LcCBB;
65+
use crate::ec::{ec_group_from_nid, evp_key_generate};
66+
use crate::error::{KeyRejected, Unspecified};
67+
use crate::fips::indicator_check;
68+
use crate::ptr::{ConstPointer, LcPtr};
69+
use crate::{ec, hex};
7070

7171
use crate::encoding::{
7272
AsBigEndian, AsDer, Curve25519SeedBin, EcPrivateKeyBin, EcPrivateKeyRfc5915Der,

aws-lc-rs/src/bn.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR ISC
33

4+
use crate::aws_lc::{BN_bin2bn, BN_bn2bin, BN_new, BN_num_bits, BN_num_bytes, BN_set_u64, BIGNUM};
45
use crate::ptr::{ConstPointer, DetachableLcPtr, LcPtr};
5-
use aws_lc::{BN_bin2bn, BN_bn2bin, BN_new, BN_num_bits, BN_num_bytes, BN_set_u64, BIGNUM};
66
use core::ptr::null_mut;
77

88
impl TryFrom<&[u8]> for LcPtr<BIGNUM> {

aws-lc-rs/src/cbb.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR ISC
33

4+
use crate::aws_lc::{CBB_cleanup, CBB_finish, CBB_init, CBB_init_fixed, CBB};
45
use crate::buffer::Buffer;
56
use crate::error::Unspecified;
67
use crate::ptr::LcPtr;
7-
use aws_lc::{CBB_cleanup, CBB_finish, CBB_init, CBB_init_fixed, CBB};
88
use core::marker::PhantomData;
99
use core::mem::MaybeUninit;
1010
use core::ptr::null_mut;
@@ -76,7 +76,7 @@ impl Drop for LcCBB<'_> {
7676
#[cfg(test)]
7777
mod tests {
7878
use super::LcCBB;
79-
use aws_lc::CBB_add_asn1_bool;
79+
use crate::aws_lc::CBB_add_asn1_bool;
8080

8181
#[test]
8282
fn dynamic_buffer() {

aws-lc-rs/src/cbs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR ISC
33

4-
use aws_lc::{CBS_init, CBS};
4+
use crate::aws_lc::{CBS_init, CBS};
55
use core::mem::MaybeUninit;
66

77
#[inline]

aws-lc-rs/src/cipher.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -228,17 +228,17 @@ mod streaming;
228228
pub use padded::{PaddedBlockDecryptingKey, PaddedBlockEncryptingKey};
229229
pub use streaming::{BufferUpdate, StreamingDecryptingKey, StreamingEncryptingKey};
230230

231+
use crate::aws_lc::{
232+
EVP_aes_128_cbc, EVP_aes_128_cfb128, EVP_aes_128_ctr, EVP_aes_128_ecb, EVP_aes_192_cbc,
233+
EVP_aes_192_cfb128, EVP_aes_192_ctr, EVP_aes_192_ecb, EVP_aes_256_cbc, EVP_aes_256_cfb128,
234+
EVP_aes_256_ctr, EVP_aes_256_ecb, EVP_CIPHER,
235+
};
231236
use crate::buffer::Buffer;
232237
use crate::error::Unspecified;
233238
use crate::hkdf;
234239
use crate::hkdf::KeyType;
235240
use crate::iv::{FixedLength, IV_LEN_128_BIT};
236241
use crate::ptr::ConstPointer;
237-
use aws_lc::{
238-
EVP_aes_128_cbc, EVP_aes_128_cfb128, EVP_aes_128_ctr, EVP_aes_128_ecb, EVP_aes_192_cbc,
239-
EVP_aes_192_cfb128, EVP_aes_192_ctr, EVP_aes_192_ecb, EVP_aes_256_cbc, EVP_aes_256_cfb128,
240-
EVP_aes_256_ctr, EVP_aes_256_ecb, EVP_CIPHER,
241-
};
242242
use core::fmt::Debug;
243243
use key::SymmetricCipherKey;
244244

aws-lc-rs/src/cipher/aes.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
// Modifications copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
// SPDX-License-Identifier: Apache-2.0 OR ISC
55

6-
use crate::{cipher::block::Block, error::Unspecified, fips::indicator_check};
7-
use aws_lc::{
6+
use crate::aws_lc::{
87
AES_cbc_encrypt, AES_cfb128_encrypt, AES_ctr128_encrypt, AES_ecb_encrypt, AES_DECRYPT,
98
AES_ENCRYPT, AES_KEY,
109
};
10+
use crate::{cipher::block::Block, error::Unspecified, fips::indicator_check};
1111
use zeroize::Zeroize;
1212

1313
use super::{DecryptionContext, EncryptionContext, OperatingMode, SymmetricCipherKey};

aws-lc-rs/src/cipher/chacha.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
// Modifications copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
55
// SPDX-License-Identifier: Apache-2.0 OR ISC
66

7+
use crate::aws_lc::CRYPTO_chacha_20;
78
use crate::cipher::block::{Block, BLOCK_LEN};
8-
use aws_lc::CRYPTO_chacha_20;
99
use zeroize::Zeroize;
1010

1111
use crate::error;

aws-lc-rs/src/cipher/key.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR ISC
33

4+
use crate::aws_lc::{AES_set_decrypt_key, AES_set_encrypt_key, AES_KEY};
45
use crate::cipher::block::Block;
56
use crate::cipher::chacha::ChaCha20Key;
67
use crate::cipher::{AES_128_KEY_LEN, AES_192_KEY_LEN, AES_256_KEY_LEN};
78
use crate::error::Unspecified;
8-
use aws_lc::{AES_set_decrypt_key, AES_set_encrypt_key, AES_KEY};
99
use core::mem::{size_of, MaybeUninit};
1010
use core::ptr::copy_nonoverlapping;
1111
// TODO: Uncomment when MSRV >= 1.64

aws-lc-rs/src/cipher/streaming.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR ISC
33

4+
use crate::aws_lc::{
5+
EVP_CIPHER_CTX_new, EVP_CIPHER_iv_length, EVP_CIPHER_key_length, EVP_DecryptFinal_ex,
6+
EVP_DecryptInit_ex, EVP_DecryptUpdate, EVP_EncryptFinal_ex, EVP_EncryptInit_ex,
7+
EVP_EncryptUpdate, EVP_CIPHER, EVP_CIPHER_CTX,
8+
};
49
use crate::cipher::{
510
Algorithm, DecryptionContext, EncryptionContext, OperatingMode, UnboundCipherKey,
611
};
712
use crate::error::Unspecified;
813
use crate::fips::indicator_check;
914
use crate::ptr::LcPtr;
10-
use aws_lc::{
11-
EVP_CIPHER_CTX_new, EVP_CIPHER_iv_length, EVP_CIPHER_key_length, EVP_DecryptFinal_ex,
12-
EVP_DecryptInit_ex, EVP_DecryptUpdate, EVP_EncryptFinal_ex, EVP_EncryptInit_ex,
13-
EVP_EncryptUpdate, EVP_CIPHER, EVP_CIPHER_CTX,
14-
};
1515
use std::ptr::{null, null_mut};
1616

1717
use super::ConstPointer;

aws-lc-rs/src/constant_time.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
//! Constant-time operations.
77
8+
use crate::aws_lc::CRYPTO_memcmp;
89
use crate::error;
9-
use aws_lc::CRYPTO_memcmp;
1010

1111
/// Returns `Ok(())` if `a == b` and `Err(error::Unspecified)` otherwise.
1212
///

aws-lc-rs/src/digest.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ use crate::{debug, derive_debug_via_id};
3333

3434
pub(crate) mod digest_ctx;
3535
mod sha;
36-
use crate::error::Unspecified;
37-
use crate::ptr::ConstPointer;
38-
use aws_lc::{
36+
use crate::aws_lc::{
3937
EVP_DigestFinal, EVP_DigestUpdate, EVP_sha1, EVP_sha224, EVP_sha256, EVP_sha384, EVP_sha3_256,
4038
EVP_sha3_384, EVP_sha3_512, EVP_sha512, EVP_sha512_256, EVP_MD,
4139
};
40+
use crate::error::Unspecified;
41+
use crate::ptr::ConstPointer;
4242
use core::mem::MaybeUninit;
4343
use digest_ctx::DigestContext;
4444
pub use sha::{

aws-lc-rs/src/digest/digest_ctx.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR ISC
33

4+
use crate::aws_lc::{
5+
EVP_DigestInit_ex, EVP_MD_CTX_cleanup, EVP_MD_CTX_copy, EVP_MD_CTX_init, EVP_MD_CTX,
6+
};
47
use crate::digest::{match_digest_type, Algorithm};
58
use crate::error::Unspecified;
6-
use aws_lc::{EVP_DigestInit_ex, EVP_MD_CTX_cleanup, EVP_MD_CTX_copy, EVP_MD_CTX_init, EVP_MD_CTX};
79
use core::mem::MaybeUninit;
810
use core::ptr::null_mut;
911

aws-lc-rs/src/ec.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ use core::ptr::null_mut;
1212
use std::os::raw::c_int;
1313

1414
#[cfg(feature = "fips")]
15-
use aws_lc::EC_KEY_check_fips;
15+
use crate::aws_lc::EC_KEY_check_fips;
1616
#[cfg(not(feature = "fips"))]
17-
use aws_lc::EC_KEY_check_key;
18-
use aws_lc::{
17+
use crate::aws_lc::EC_KEY_check_key;
18+
use crate::aws_lc::{
1919
d2i_PrivateKey, point_conversion_form_t, BN_bn2bin_padded, BN_num_bytes, CBS_init,
2020
ECDSA_SIG_from_bytes, ECDSA_SIG_get0_r, ECDSA_SIG_get0_s, EC_GROUP_get_curve_name,
2121
EC_GROUP_new_by_curve_name, EC_KEY_get0_group, EC_KEY_get0_private_key, EC_KEY_get0_public_key,

aws-lc-rs/src/ec/key_pair.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use core::fmt::{Debug, Formatter};
88
use core::mem::MaybeUninit;
99
use core::ptr::{null, null_mut};
1010

11-
use aws_lc::{EVP_DigestSign, EVP_DigestSignInit, EVP_PKEY_get0_EC_KEY, EVP_PKEY};
11+
use crate::aws_lc::{EVP_DigestSign, EVP_DigestSignInit, EVP_PKEY_get0_EC_KEY, EVP_PKEY};
1212

1313
use crate::digest::digest_ctx::DigestContext;
1414
use crate::ec::evp_key_generate;

aws-lc-rs/src/ec/signature.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR ISC
33

4-
use aws_lc::{
4+
use crate::aws_lc::{
55
i2d_EC_PUBKEY, ECDSA_SIG_new, ECDSA_SIG_set0, ECDSA_SIG_to_bytes, EC_GROUP_new_by_curve_name,
66
EC_KEY_new, EC_KEY_set_group, EC_KEY_set_public_key, EVP_DigestVerify, EVP_DigestVerifyInit,
77
EVP_PKEY_get0_EC_KEY, NID_X9_62_prime256v1, NID_secp256k1, NID_secp384r1, NID_secp521r1,

aws-lc-rs/src/ed25519.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use std::marker::PhantomData;
1212
#[cfg(feature = "ring-sig-verify")]
1313
use untrusted::Input;
1414

15-
use aws_lc::{
15+
use crate::aws_lc::{
1616
CBS_init, EVP_DigestSign, EVP_DigestSignInit, EVP_DigestVerify, EVP_DigestVerifyInit,
1717
EVP_PKEY_CTX_new_id, EVP_PKEY_get_raw_private_key, EVP_PKEY_get_raw_public_key, EVP_PKEY_id,
1818
EVP_PKEY_keygen, EVP_PKEY_keygen_init, EVP_PKEY_new_raw_private_key,

aws-lc-rs/src/evp_pkey.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR ISC
33

4+
use crate::aws_lc::{
5+
EVP_PKEY_CTX_new, EVP_PKEY_bits, EVP_PKEY_get1_EC_KEY, EVP_PKEY_get1_RSA, EVP_PKEY_id,
6+
EVP_PKEY_up_ref, EVP_marshal_private_key, EVP_marshal_private_key_v2, EVP_parse_private_key,
7+
EC_KEY, EVP_PKEY, EVP_PKEY_CTX, RSA,
8+
};
49
use crate::cbb::LcCBB;
510
use crate::cbs;
611
use crate::ec::PKCS8_DOCUMENT_MAX_LEN;
712
use crate::error::{KeyRejected, Unspecified};
813
use crate::pkcs8::Version;
914
use crate::ptr::LcPtr;
10-
use aws_lc::{
11-
EVP_PKEY_CTX_new, EVP_PKEY_bits, EVP_PKEY_get1_EC_KEY, EVP_PKEY_get1_RSA, EVP_PKEY_id,
12-
EVP_PKEY_up_ref, EVP_marshal_private_key, EVP_marshal_private_key_v2, EVP_parse_private_key,
13-
EC_KEY, EVP_PKEY, EVP_PKEY_CTX, RSA,
14-
};
1515
// TODO: Uncomment when MSRV >= 1.64
1616
// use core::ffi::c_int;
1717
use std::os::raw::c_int;

aws-lc-rs/src/hkdf.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@
3737
//! let aead_unbound_key = aead::UnboundKey::from(aes_keying_material);
3838
//! ```
3939
40+
use crate::aws_lc::{HKDF_expand, HKDF};
4041
use crate::error::Unspecified;
4142
use crate::fips::indicator_check;
4243
use crate::{digest, hmac};
4344
use alloc::sync::Arc;
44-
use aws_lc::{HKDF_expand, HKDF};
4545
use core::fmt;
4646
use zeroize::Zeroize;
4747

aws-lc-rs/src/hmac.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@
9595
//! ```
9696
//! [RFC 2104]: https://tools.ietf.org/html/rfc2104
9797
98-
use crate::error::Unspecified;
99-
use crate::fips::indicator_check;
100-
use crate::{constant_time, digest, hkdf};
101-
use aws_lc::{
98+
use crate::aws_lc::{
10299
HMAC_CTX_cleanup, HMAC_CTX_copy_ex, HMAC_CTX_init, HMAC_Final, HMAC_Init_ex, HMAC_Update,
103100
HMAC_CTX,
104101
};
102+
use crate::error::Unspecified;
103+
use crate::fips::indicator_check;
104+
use crate::{constant_time, digest, hkdf};
105105
use core::mem::MaybeUninit;
106106
use core::ptr::null_mut;
107107
// TODO: Uncomment when MSRV >= 1.64

aws-lc-rs/src/kdf/kbkdf.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
#![allow(clippy::module_name_repetitions)]
55

6-
use aws_lc::KBKDF_ctr_hmac;
7-
use aws_lc::EVP_MD;
6+
use crate::aws_lc::KBKDF_ctr_hmac;
7+
use crate::aws_lc::EVP_MD;
88

99
use crate::{
1010
digest::{match_digest_type, AlgorithmID},

aws-lc-rs/src/kdf/sskdf.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
#![allow(clippy::module_name_repetitions)]
55

6-
use aws_lc::EVP_MD;
7-
use aws_lc::{SSKDF_digest, SSKDF_hmac};
6+
use crate::aws_lc::EVP_MD;
7+
use crate::aws_lc::{SSKDF_digest, SSKDF_hmac};
88

99
use crate::{
1010
digest::{match_digest_type, AlgorithmID},

aws-lc-rs/src/kem.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,18 @@
4545
//!
4646
//! # Ok::<(), aws_lc_rs::error::Unspecified>(())
4747
//! ```
48+
use crate::aws_lc::{
49+
EVP_PKEY_CTX_kem_set_params, EVP_PKEY_CTX_new_id, EVP_PKEY_decapsulate, EVP_PKEY_encapsulate,
50+
EVP_PKEY_get_raw_private_key, EVP_PKEY_get_raw_public_key, EVP_PKEY_kem_new_raw_public_key,
51+
EVP_PKEY_keygen, EVP_PKEY_keygen_init, EVP_PKEY, EVP_PKEY_KEM,
52+
};
4853
use crate::{
4954
buffer::Buffer,
5055
encoding::generated_encodings,
5156
error::{KeyRejected, Unspecified},
5257
ptr::LcPtr,
5358
};
5459
use alloc::borrow::Cow;
55-
use aws_lc::{
56-
EVP_PKEY_CTX_kem_set_params, EVP_PKEY_CTX_new_id, EVP_PKEY_decapsulate, EVP_PKEY_encapsulate,
57-
EVP_PKEY_get_raw_private_key, EVP_PKEY_get_raw_public_key, EVP_PKEY_kem_new_raw_public_key,
58-
EVP_PKEY_keygen, EVP_PKEY_keygen_init, EVP_PKEY, EVP_PKEY_KEM,
59-
};
6060
use core::{cmp::Ordering, ptr::null_mut};
6161
use zeroize::Zeroize;
6262

@@ -102,7 +102,7 @@ pub const ML_KEM_1024: Algorithm<AlgorithmId> = Algorithm {
102102
shared_secret_size: ML_KEM_1024_SHARED_SECRET_LENGTH,
103103
};
104104

105-
use aws_lc::{NID_MLKEM1024, NID_MLKEM512, NID_MLKEM768};
105+
use crate::aws_lc::{NID_MLKEM1024, NID_MLKEM512, NID_MLKEM768};
106106

107107
/// An identifier for a KEM algorithm.
108108
pub trait AlgorithmIdentifier:

0 commit comments

Comments
 (0)