Skip to content

Commit

Permalink
Cleanup from rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
skmcgrail committed Aug 21, 2024
1 parent f29a993 commit f9af638
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion aws-lc-rs/src/agreement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ impl AsBigEndian<EcPublicKeyCompressedBin<'static>> for PublicKey {

let mut buffer = vec![0u8; self.algorithm().id.compressed_pub_key_len()];

let out_len = unsafe { ec::marshal_ec_public_key_to_buffer(&mut buffer, &ec_key, true) }?;
let out_len = ec::marshal_ec_public_key_to_buffer(&mut buffer, &ec_key, true)?;

debug_assert_eq!(buffer.len(), out_len);

Expand Down
8 changes: 4 additions & 4 deletions aws-lc-rs/src/ec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ use aws_lc::EC_KEY_check_fips;
#[cfg(not(feature = "fips"))]
use aws_lc::EC_KEY_check_key;
use aws_lc::{
d2i_PrivateKey, point_conversion_form_t, BN_bn2bin_padded, BN_num_bytes, CBS_init, ECDSA_SIG_from_bytes,
ECDSA_SIG_get0_r, ECDSA_SIG_get0_s, ECDSA_SIG_new, ECDSA_SIG_set0, ECDSA_SIG_to_bytes,
EC_GROUP_get_curve_name, EC_GROUP_new_by_curve_name, EC_KEY_get0_group,
d2i_PrivateKey, point_conversion_form_t, BN_bn2bin_padded, BN_num_bytes, CBS_init,
ECDSA_SIG_from_bytes, ECDSA_SIG_get0_r, ECDSA_SIG_get0_s, ECDSA_SIG_new, ECDSA_SIG_set0,
ECDSA_SIG_to_bytes, EC_GROUP_get_curve_name, EC_GROUP_new_by_curve_name, EC_KEY_get0_group,
EC_KEY_get0_private_key, EC_KEY_get0_public_key, EC_KEY_new, EC_KEY_set_group,
EC_KEY_set_private_key, EC_KEY_set_public_key, EC_POINT_mul, EC_POINT_new, EC_POINT_oct2point,
EC_POINT_point2oct, EVP_DigestVerify, EVP_DigestVerifyInit, EVP_PKEY_CTX_new_id,
Expand Down Expand Up @@ -176,7 +176,7 @@ impl AsBigEndian<EcPublicKeyCompressedBin<'static>> for PublicKey {

let mut buffer = vec![0u8; self.algorithm.0.id.compressed_pub_key_len()];

let out_len = unsafe { marshal_ec_public_key_to_buffer(&mut buffer, &ec_key, true) }?;
let out_len = marshal_ec_public_key_to_buffer(&mut buffer, &ec_key, true)?;

debug_assert_eq!(buffer.len(), out_len);

Expand Down

0 comments on commit f9af638

Please sign in to comment.