Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detect PEM headers in decode_vec #19

Merged
merged 1 commit into from
Sep 14, 2021

Conversation

dwhjames
Copy link
Contributor

Missed in PR #13

  • add test coverage for new cases
  • refactor out decoding of encapsulated text
  • compromise here on estimating buffer size
    • slightly more overestimation, due to counting whitespace
    • faster due to no two-pass
    • required to ensure that we attempt a base64 decode of the first line
      before chopping the second line

Missed in PR RustCrypto#13

- add test coverage for new cases
- refactor out decoding of encapsulated text
- compromise here on estimating buffer size
  - slightly more overestimation, due to counting whitespace
  - faster due to no two-pass
  - required to ensure that we attempt a base64 decode of the first line
    before chopping the second line
@tarcieri tarcieri merged commit 7300320 into RustCrypto:master Sep 14, 2021
@dwhjames dwhjames deleted the detect-pem-header-fields branch September 14, 2021 20:23
@tarcieri tarcieri mentioned this pull request Sep 14, 2021
Sign up for free to 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