mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
common: Improve checking for compliance with CO_DE_VS.
* common/compliance.c (gnupg_pk_is_compliant): Only certain RSA key sizes are compliant. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
8a012280e0
commit
3b70f62423
@ -86,7 +86,9 @@ gnupg_pk_is_compliant (enum gnupg_compliance_mode compliance, int algo,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case is_rsa:
|
case is_rsa:
|
||||||
result = (keylength >= 2048);
|
result = (keylength == 2048
|
||||||
|
|| keylength == 3072
|
||||||
|
|| keylength == 4096);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case is_ecc:
|
case is_ecc:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user