Skip to content

Rename integer serialization functions to i2osp* - #718

Merged
tarcieri merged 1 commit into
masterfrom
i2osp
Oct 18, 2026
Merged

tarcieri merged 1 commit into
masterfrom
i2osp

Conversation

@tarcieri

@tarcieri tarcieri commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

The Integer-to-Octet-String Primitive (I2OSP) is defined in RFC8017 §4.1.

This renames the following:

  • algorithms::pad::uint_to_be_pad => ...::i2osp
  • algorithms::pad::uint_to_zeroizing_be_pad => ...::i2osp_zeroizing

This better reflects the algorithm descriptions from draft-irtf-cfrg-rsa-guidance

The Integer-to-Octet-String Primitive (I2OSP) is defined in RFC8017 §4.1

This renames the following:
- `algorithms::pad::uint_to_be_pad` => `...::i2osp`
- `algorithms::pad::uint_to_zeroizing_be_pad` => `...::i2osp_zeroizing`

This better reflects the algorithm descriptions from
`draft-irtf-cfrg-rsa-guidance`
@tarcieri
tarcieri merged commit 7f62acf into master Oct 18, 2026
12 checks passed
@tarcieri
tarcieri deleted the i2osp branch October 18, 2026 17:27
tarcieri added a commit that referenced this pull request Oct 18, 2026
Followup to #718 which extracts an Octet-String-to-Integer Primitive
helper function(s) as described in [RFC8017
§4.2](https://www.rfc-editor.org/rfc/rfc8017.html#section-4.2).

This makes it possible to write code that looks more like the
algorithmic specifications, e.g. `draft-irtf-cfrg-rsa-guidance`
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.

1 participant