Skip to content

Commit e254621

Browse files
authored
refactor: Split SafeBag serialization into its own function for PKCS#12 structures. (#12452)
* refactor: pkcs12's decode_encryption_algorithm now returns a type wrapping multiple return values * refactor: moved pkcs12 safebag serialization into its own function called by pkcs12.serialize_key_and_certificates * Added additional test for generating key-only pkcs12 files with encryption for coverage * Restructure match statement in serialize_bags to be more readable * PKCS12 passwords are now stored as PyBackedBytes again to avoid extra allocations
1 parent 3cf3918 commit e254621

File tree

2 files changed

+190
-149
lines changed

2 files changed

+190
-149
lines changed

0 commit comments

Comments
 (0)