diff options
author | Werner Koch <[email protected]> | 2023-11-08 16:09:04 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2023-11-08 16:09:22 +0000 |
commit | 3572b19fbd8f6eea1edcaa8f753a7c9654702bed (patch) | |
tree | 26e3bc1245f0171eb429862b22689d0ddd0c79fc /common/compliance.h | |
parent | common: Declare two LibrePGP constants for future use (diff) | |
download | gnupg-3572b19fbd8f6eea1edcaa8f753a7c9654702bed.tar.gz gnupg-3572b19fbd8f6eea1edcaa8f753a7c9654702bed.zip |
gpgsm: Support ECDSA in de-vs mode.
* common/compliance.h (PK_ALGO_FLAG_ECC18): New.
* common/compliance.c (gnupg_pk_is_allowed): Implement.
* sm/decrypt.c (gpgsm_decrypt): Pass new flag.
* sm/sign.c (gpgsm_sign): Ditto.
* sm/verify.c (gpgsm_verify): Ditto.
--
GnuPG-bug-id: 6802
Diffstat (limited to 'common/compliance.h')
-rw-r--r-- | common/compliance.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/compliance.h b/common/compliance.h index ead11472c..111fdc74b 100644 --- a/common/compliance.h +++ b/common/compliance.h @@ -50,6 +50,7 @@ enum pk_use_case /* Flags to distinguish public key algorithm variants. */ #define PK_ALGO_FLAG_RSAPSS 1 /* Use rsaPSS padding. */ +#define PK_ALGO_FLAG_ECC18 256 /* GCRY_PK_ECC is used in a generic way. */ int gnupg_pk_is_compliant (enum gnupg_compliance_mode compliance, int algo, |