mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] crypto: asymmetric_keys/pkcs7.asn1 - remove the duplicated contentType pkcs7_note_OID processing logic
@ 2023-11-11  5:55 YiLin.Li
  2023-12-01  7:44 ` YiLin.Li
  0 siblings, 1 reply; 3+ messages in thread
From: YiLin.Li @ 2023-11-11  5:55 UTC (permalink / raw)
  To: David Howells, Herbert Xu, David S. Miller, keyrings,
	linux-crypto, linux-kernel
  Cc: YiLin.Li, tianjia.zhang

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.

Signed-off-by: YiLin.Li <YiLin.Li@linux.alibaba.com>
---
 crypto/asymmetric_keys/pkcs7.asn1 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/asymmetric_keys/pkcs7.asn1 b/crypto/asymmetric_keys/pkcs7.asn1
index 28e1f4a41c14..3f7adec38245 100644
--- a/crypto/asymmetric_keys/pkcs7.asn1
+++ b/crypto/asymmetric_keys/pkcs7.asn1
@@ -28,7 +28,7 @@ SignedData ::= SEQUENCE {
 }
 
 ContentInfo ::= SEQUENCE {
-	contentType	ContentType ({ pkcs7_note_OID }),
+	contentType	ContentType,
 	content		[0] EXPLICIT Data OPTIONAL
 }
 
-- 
2.31.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] crypto: asymmetric_keys/pkcs7.asn1 - remove the duplicated contentType pkcs7_note_OID processing logic
  2023-11-11  5:55 [PATCH] crypto: asymmetric_keys/pkcs7.asn1 - remove the duplicated contentType pkcs7_note_OID processing logic YiLin.Li
@ 2023-12-01  7:44 ` YiLin.Li
  2024-01-06  7:41   ` YiLin.Li
  0 siblings, 1 reply; 3+ messages in thread
From: YiLin.Li @ 2023-12-01  7:44 UTC (permalink / raw)
  To: David Howells, Herbert Xu, David S. Miller, keyrings,
	linux-crypto, linux-kernel
  Cc: tianjia.zhang, YiLin.Li


gently ping...
> 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.
>
> Signed-off-by: YiLin.Li <YiLin.Li@linux.alibaba.com>
> ---
>   crypto/asymmetric_keys/pkcs7.asn1 | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/crypto/asymmetric_keys/pkcs7.asn1 b/crypto/asymmetric_keys/pkcs7.asn1
> index 28e1f4a41c14..3f7adec38245 100644
> --- a/crypto/asymmetric_keys/pkcs7.asn1
> +++ b/crypto/asymmetric_keys/pkcs7.asn1
> @@ -28,7 +28,7 @@ SignedData ::= SEQUENCE {
>   }
>   
>   ContentInfo ::= SEQUENCE {
> -	contentType	ContentType ({ pkcs7_note_OID }),
> +	contentType	ContentType,
>   	content		[0] EXPLICIT Data OPTIONAL
>   }
>   

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] crypto: asymmetric_keys/pkcs7.asn1 - remove the duplicated contentType pkcs7_note_OID processing logic
  2023-12-01  7:44 ` YiLin.Li
@ 2024-01-06  7:41   ` YiLin.Li
  0 siblings, 0 replies; 3+ messages in thread
From: YiLin.Li @ 2024-01-06  7:41 UTC (permalink / raw)
  To: David Howells, Herbert Xu, David S. Miller, keyrings,
	linux-crypto, linux-kernel
  Cc: tianjia.zhang, YiLin.Li

gently ping...

在 2023/12/1 15:44, YiLin.Li 写道:
> gently ping...

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-01-06  7:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-11  5:55 [PATCH] crypto: asymmetric_keys/pkcs7.asn1 - remove the duplicated contentType pkcs7_note_OID processing logic YiLin.Li
2023-12-01  7:44 ` YiLin.Li
2024-01-06  7:41   ` YiLin.Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®