What does RFC 4880 sec 5.1 mean under this "
The value "m" in the above formulas is derived from the session key as follows. First, the session key is prefixed with a single octet algorithm identifier, which sets the symmetric encryption algorithm used to encrypt the next Symmetically Encrypted Data Packet. Then a two-octet checksum is added, which is equal to the sum of the previous octets of the session key, not including the algorithm identifier, modulo 65536. This value is then encoded as described in the PKCS # 1 block encoding EME-PKCS1-v1_5 in section 7.2.1 [RFC3447] to generate "m" is the value used in the above formulas. See Section 13.1 of this document for notes on OpenPGPs using PKCS # 1.
Is this a 2 octet checksum? is it all "one octet prefix + session key + checksum"?
source share