Optional fields: count and requirements
[Original link (not stable): https://gitlab.com/openpgp-wg/rfc4880bis/-/blob/main/crypto-refresh.md#L1742]
Better link showing the document at the time this issue was created: https://gitlab.com/openpgp-wg/rfc4880bis/-/blob/8a50df74c69c6d53f6019320d9506b739c9bd9fb/crypto-refresh.md#L1742
Only for a version 5 packet, a one-octet scalar octet count of the next 4 optional fields.
There are only 3 optional fields listed below is line about the next 4 optional fields
. Is it 3 or is the composite s2k two fields? Example correct values for different situations would be very helpful since it seems like it might be an all-or-nothing thing where the count is used in anticipation of more fields in the future?
Also, I found it unclear what optional means here. They are optional because they MAY be included under the stated conditions, or because they MUST be included under those conditions.
Edit: Fixed links.