Skip to content

Fix POD documentation: synopsis, PEM headers, sign/verify#202

Open
toddr-bot wants to merge 1 commit into
cpan-authors:mainfrom
toddr-bot:koan.toddr.bot/fix-pod-documentation
Open

Fix POD documentation: synopsis, PEM headers, sign/verify#202
toddr-bot wants to merge 1 commit into
cpan-authors:mainfrom
toddr-bot:koan.toddr.bot/fix-pod-documentation

Conversation

@toddr-bot
Copy link
Copy Markdown
Contributor

@toddr-bot toddr-bot commented May 27, 2026

What

Fixes several documentation bugs in the POD that have accumulated over time.

Why

The SYNOPSIS is the first thing users see, and it had broken variable names
($rsa used where $rsa_pub/$rsa_priv should be), making copy-paste
examples fail. PEM header examples showed wrong dash counts. sign() and
verify() lacked basic usage information (return values, parameter order).

How

  • SYNOPSIS: $rsa->encrypt()$rsa_pub->encrypt(), $rsa->decrypt()$rsa_priv->decrypt(), $rsa->verify()$rsa_pub->verify()
  • Key size: Example updated from insecure 1024-bit to 2048-bit
  • PEM headers: Fixed 6 trailing dashes to correct 5 (-----------) in three headers
  • sign(): Documents return value (binary signature string) and private-key requirement
  • verify(): Documents parameter order (plaintext, signature) and return value (boolean)
  • Hash defaults: Removes misleading "when available" qualifier — SHA-256 is always the default

Testing

make test passes (667 tests). podchecker clean (only pre-existing empty ACKNOWLEDGEMENTS warning).

🤖 Generated with Claude Code


Quality Report

Changes: 1 file changed, 22 insertions(+), 18 deletions(-)

Code scan: clean

Tests: passed (OK)

Branch hygiene: clean

Generated by Kōan post-mission quality pipeline

…fy docs

The SYNOPSIS used undefined $rsa instead of $rsa_pub/$rsa_priv for
encrypt/decrypt/verify, making copy-paste examples fail. PEM header
examples had 6 trailing dashes instead of 5. sign() and verify() docs
lacked return value and parameter descriptions. Also updates key size
example from insecure 1024 to 2048 and clarifies SHA-256 as the
unconditional default hash.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@timlegge timlegge marked this pull request as ready for review May 28, 2026 02:16
Copy link
Copy Markdown
Member

@timlegge timlegge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. I wonder how long the wrong number of dashes were there.

@timlegge timlegge added the documentation Documentation only fixes label May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation only fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants