зеркало из https://github.com/mozilla/rust-ece.git
Fix `cargo fmt` formatting.
This commit is contained in:
Родитель
51e7fb6238
Коммит
60c17141ff
|
@ -27,7 +27,7 @@ const ECE_AES128GCM_NONCE_INFO: &str = "Content-Encoding: nonce\0";
|
|||
// As for now it makes it easier to Ctrl + F into ecec :)
|
||||
|
||||
/// Web Push encryption structure for the AES128GCM encoding scheme ([RFC8591](https://tools.ietf.org/html/rfc8291))
|
||||
///
|
||||
///
|
||||
/// This structure is meant for advanced use. For simple encryption/decryption, use the top-level [`encrypt`](crate::encrypt) and [`decrypt`](crate::decrypt) functions.
|
||||
pub struct Aes128GcmEceWebPush;
|
||||
impl Aes128GcmEceWebPush {
|
||||
|
|
|
@ -88,7 +88,7 @@ impl AesGcmEncryptedBlock {
|
|||
}
|
||||
}
|
||||
/// Web Push encryption structure for the legacy AESGCM encoding scheme ([Web Push Encryption Draft 4](https://tools.ietf.org/html/draft-ietf-webpush-encryption-04))
|
||||
///
|
||||
///
|
||||
/// This structure is meant for advanced use. For simple encryption/decryption, use the top-level [`encrypt_aesgcm`](crate::legacy::encrypt_aesgcm) and [`decrypt_aesgcm`](crate::legacy::decrypt_aesgcm) functions.
|
||||
pub struct AesGcmEceWebPush;
|
||||
impl AesGcmEceWebPush {
|
||||
|
|
|
@ -177,7 +177,6 @@ mod aesgcm_tests {
|
|||
);
|
||||
}
|
||||
|
||||
|
||||
#[test]
|
||||
fn test_decrypt_ietf_rfc() {
|
||||
// Test data from [IETF Web Push Encryption Draft 5](https://tools.ietf.org/html/draft-ietf-webpush-encryption-04#section-5)
|
||||
|
|
Загрузка…
Ссылка в новой задаче