Skip to content

Commit d1787e0

Browse files
committed
Fix formatting
1 parent c0ac9b1 commit d1787e0

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

aws-lc-rs/src/kem.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,8 @@ where
362362
let mut encapsulate_bytes = vec![0u8; self.algorithm.encapsulate_key_size()];
363363
let encapsulate_key_size = self
364364
.evp_pkey
365-
.as_const().marshal_raw_public_to_buffer(&mut encapsulate_bytes)?;
365+
.as_const()
366+
.marshal_raw_public_to_buffer(&mut encapsulate_bytes)?;
366367

367368
debug_assert_eq!(encapsulate_key_size, encapsulate_bytes.len());
368369
encapsulate_bytes.truncate(encapsulate_key_size);

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ impl AsDer<Pkcs8V1Der<'static>> for PqdsaPrivateKey<'_> {
7171
Ok(Pkcs8V1Der::new(
7272
self.0
7373
.evp_pkey
74-
.as_const().marshal_rfc5208_private_key(pkcs8::Version::V1)?,
74+
.as_const()
75+
.marshal_rfc5208_private_key(pkcs8::Version::V1)?,
7576
))
7677
}
7778
}
@@ -171,7 +172,9 @@ impl PqdsaKeyPair {
171172
/// Returns `Unspecified` if serialization fails.
172173
pub fn to_pkcs8(&self) -> Result<Document, Unspecified> {
173174
Ok(Document::new(
174-
self.evp_pkey.as_const().marshal_rfc5208_private_key(Version::V1)?,
175+
self.evp_pkey
176+
.as_const()
177+
.marshal_rfc5208_private_key(Version::V1)?,
175178
))
176179
}
177180

aws-lc-rs/src/rsa/encoding.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ pub(in crate::rsa) mod rfc8017 {
2121
let mut pubkey_bytes = null_mut::<u8>();
2222
let mut outlen: usize = 0;
2323
if 1 != unsafe {
24-
RSA_public_key_to_bytes(&mut pubkey_bytes, &mut outlen, *pubkey.as_const().get_rsa()?)
24+
RSA_public_key_to_bytes(
25+
&mut pubkey_bytes,
26+
&mut outlen,
27+
*pubkey.as_const().get_rsa()?,
28+
)
2529
} {
2630
return Err(Unspecified);
2731
}

0 commit comments

Comments
 (0)