Skip to content

Commit

Permalink
RS-018: Recommend RBG method when using GCM
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea committed Jul 29, 2024
1 parent 1e1c78b commit acc0869
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rs018-algorithms.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Implementations MUST support SHA-256 (OID `2.16.840.1.101.3.4.2.1`) and they SHO

Implementations MUST support AES-128, and they SHOULD also support AES-192 and AES-256. They MUST NOT support DES for security reasons.

More specifically, [Key Wrap mode](https://tools.ietf.org/html/rfc3394.html) MUST be used when encrypting cryptographic key materials and [GCM](https://tools.ietf.org/html/rfc5084) MUST be used when encrypting payloads. Consequently, the following ciphers are required or recommended:
More specifically, [Key Wrap mode](https://tools.ietf.org/html/rfc3394.html) MUST be used when encrypting cryptographic key materials and [Galois/Counter Mode GCM](https://tools.ietf.org/html/rfc5084) MUST be used when encrypting payloads. Consequently, the following ciphers are required or recommended:

- AES-128-KW (required, OID `2.16.840.1.101.3.4.1.5`).
- AES-192-KW (recommended, OID `2.16.840.1.101.3.4.1.25`).
Expand All @@ -55,6 +55,10 @@ More specifically, [Key Wrap mode](https://tools.ietf.org/html/rfc3394.html) MUS
- AES-192-GCM (recommended, OID `2.16.840.1.101.3.4.1.26`).
- AES-256-GCM (recommended, OID `2.16.840.1.101.3.4.1.46`).

When using GCM,
the implementation SHOULD use the Random Bit Generator (RBG) method for IV construction as defined in [NIST SP 800-38D](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf) (Section 8.2.2),
to avoid the operational overhead of securely persisting sensitive values as required by the alternative method.

### Asymmetric Ciphers

Implementations MUST support RSA-OAEP (OID `1.2.840.113549.1.1.7`). They SHOULD also support Curve25519 (OID `1.3.101.110`), and they MAY support Curve448 (OID `1.3.101.111`).
Expand Down

0 comments on commit acc0869

Please sign in to comment.