Skip to contentSkip to conversation

crypto: asymmetric_keys/pkcs7.asn1 - remove the duplicated contentType pkcs7_note_OID processing logic

PATCH In review YiLin.Li 1 participant 3 messages Nov 11, 2023 – Jan 6, 2024

Subsystems (3)
lore
Share & tools
lore

YiLin.Li

author
#0 lore raw

PATCH 1/1 crypto: asymmetric_keys/pkcs7.asn1 - remove the duplicated contentType pkcs7_note_OID processing logic

The OID of contentType has been recorded in ContentType ::= OBJECT IDENTIFIER ({ pkcs7_note_OID }), so there is no need to re-extract the OID of contentType in contentType ContentType ({ pkcs7_note_OID }). Therefore, we need to remove the duplicated contentType pkcs7_note_OID processing logic.

---
 crypto/asymmetric_keys/pkcs7.asn1 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
crypto/asymmetric_keys/pkcs7.asn1 +1 -1
index 28e1f4a41c14..3f7adec38245 100644
@@ -28,7 +28,7 @@ SignedData ::= SEQUENCE {
 }
 
 ContentInfo ::= SEQUENCE {
-	contentType	ContentType ({ pkcs7_note_OID }),
+	contentType	ContentType,
 	content		[0] EXPLICIT Data OPTIONAL
 }
 
Signature · 1 line
2.31.1
author
#1 lore raw

gently ping...

Quoted 25 lines

The OID of contentType has been recorded in ContentType ::= OBJECT IDENTIFIER ({ pkcs7_note_OID }), so there is no need to re-extract the OID of contentType in contentType ContentType ({ pkcs7_note_OID }). Therefore, we need to remove the duplicated contentType pkcs7_note_OID processing logic.

---
  crypto/asymmetric_keys/pkcs7.asn1 | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
crypto/asymmetric_keys/pkcs7.asn1 +1 -1
index 28e1f4a41c14..3f7adec38245 100644
@@ -28,7 +28,7 @@ SignedData ::= SEQUENCE {
  }
 
  ContentInfo ::= SEQUENCE {
-	contentType	ContentType ({ pkcs7_note_OID }),
+	contentType	ContentType,
  	content		[0] EXPLICIT Data OPTIONAL
  }
 
author
#2 lore raw

gently ping...

Quoted 1 line · YiLin.Li

gently ping...