From a3a6708b1d08ad25ef2a074f80bba717b82693b7 Mon Sep 17 00:00:00 2001 From: Bernd Krietenstein Date: Mon, 4 Dec 2023 08:32:17 +0100 Subject: [PATCH] Link RFC 3211 Co-authored-by: Arthur Gautier --- cms/src/builder.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cms/src/builder.rs b/cms/src/builder.rs index d29201b3e..b4f2e2a43 100644 --- a/cms/src/builder.rs +++ b/cms/src/builder.rs @@ -764,10 +764,12 @@ where }) } - /// Wrap the content-encryption key according to RFC 3211, §2.3.1: + /// Wrap the content-encryption key according to [RFC 3211, §2.3.1]: /// .... /// The formatted CEK block then looks as follows: /// CEK byte count || check value || CEK || padding (if required) + /// + /// [RFC 3211, §2.3.1]: https://www.rfc-editor.org/rfc/rfc3211#section-2.3.1 fn wrap_content_encryption_key(&mut self, content_encryption_key: &[u8]) -> Result> { let content_encryption_key_length = content_encryption_key.len(); let wrapped_key_length_wo_padding = 1 + 3 + content_encryption_key_length;