Page MenuHome GnuPG

Make sure only listed algorithms are used with --compliance=de-vs
Closed, ResolvedPublic

Description

The specification disallows the use of algorithms that are not explicitly listed in that document.

Details

Due Date
Jun 14 2017, 12:00 AM

Event Timeline

I found a bug in ST-Gpg4VSNfD-v0.6.pdf, page 21 incorrectly refers to RFC6337 instead of RFC6637.

FWIW, I think that document describes some nonsensical policies, but I will implement it to the letter for now, it is easy to change later on.

For example, for the verification of signatures it allows the use of RSA with key sizes { 2048, 3072, 4096, every x | x < 2048 }. But a key size of 4064 (which is allowed by OpenPGP and GnuPG) is forbidden. Not just "not VS-NfD conform", but forbidden.

4.2.2 lists session keys for ciphers that are not allowed.

4.4.1 does not allow the use of AES-128 CFB as a cipher to encrypt the body of messages, but 4.4.2 even lists AES-128 CFB as conforming to VS-NfD. Furthermore, 4.1.1 allows,the use of AES-128 CFB as a cipher to encrypt the body of messages. I'm going to assume that this is a bug in the specification and also allow it for symmetric encryption.

The document does not specify whether it is okay to mix symmetric and public key encryption. I'm going to implement an XOR for compliance.

Implemented. The policy should be easy to adjust later on.

Regarding CFB: This needs to be decided by the evaluators. They know about the CFB problematic in their own documents. Thanks for pointing out discrepancies in the specs. I'll open a new task for it.