Skip to content

pkcs12: initial types with decoders/encoders - #1165

Merged
tarcieri merged 31 commits into
RustCrypto:masterfrom
carl-wallace:pkcs12_encoder_decoder
Sep 8, 2023
Merged

pkcs12: initial types with decoders/encoders#1165
tarcieri merged 31 commits into
RustCrypto:masterfrom
carl-wallace:pkcs12_encoder_decoder

Conversation

@carl-wallace

Copy link
Copy Markdown
Contributor
  • Encoders and decoders only for PKCS 12 (decryption support and a builder will be submitted subsequently)
  • Does not support sdsiCerts or alternative CRL types
  • Copies the Pbkdf2Params and EncryptedPrivateKeyInfo definitions to avoid the lifetime requirement of the definitions in the pkcs5 crate
  • Copies the Pbes2Params definition to avoid EncryptionScheme requirement of the definition in the pkcs5 crate
  • Copies the PrivateKeyInfo definition to avoid the lifetime requirement of the definition in the pkcs8 crate
  • SafeBag is a bit unusual owing to the OR'ed list of options (this will largely be hidden behind decryption and builder support)

…crypt support to use it. added a test case with a pfx from PKITS to exercise the kdf. added implementation of EncryptedPrivateKeyInfo.
…key and cert with no mac that openssl can parse
@tarcieri

Copy link
Copy Markdown
Member

@carl-wallace can you rebase?

@carl-wallace

Copy link
Copy Markdown
ContributorAuthor

I can do that first thing tomorrow.

Comment threadpkcs12/src/lib.rs Outdated
Comment threadpkcs12/src/lib.rs
Comment threadpkcs12/src/safe_bag.rs Outdated
Comment threadpkcs12/src/safe_bag.rs
@tarcieritarcieri changed the title Pkcs12 encoders and decoderspkcs12: initial types with decoders/encodersSep 6, 2023
@tarcieri
tarcieri merged commit 7191ab1 into RustCrypto:masterSep 8, 2023
@carl-wallace
carl-wallace deleted the pkcs12_encoder_decoder branch September 11, 2023 14:47
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@carl-wallace@tarcieri