mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 12:16:20 +08:00
pkcs7: change EncryptedContent to implicit #270
This commit is contained in:
parent
0e616425aa
commit
6e742e69ef
@ -272,8 +272,7 @@ func newEncryptedContent(contentType asn1.ObjectIdentifier, alg *pkix.AlgorithmI
|
||||
}
|
||||
|
||||
func marshalEncryptedContent(content []byte) asn1.RawValue {
|
||||
asn1Content, _ := asn1.Marshal(content)
|
||||
return asn1.RawValue{Tag: 0, Class: asn1.ClassContextSpecific, Bytes: asn1Content, IsCompound: true}
|
||||
return asn1.RawValue{Tag: 0, Class: asn1.ClassContextSpecific, Bytes: content}
|
||||
}
|
||||
|
||||
func encryptKey(key []byte, recipient *smx509.Certificate, isCFCA bool) ([]byte, error) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user