mark RSA_ENCRYPT and RSA_SIGN as deprecated

This commit is contained in:
Paul Schaub 2020-12-11 18:15:54 +01:00
parent 5f289f4fe1
commit 799265f332
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
1 changed files with 10 additions and 0 deletions

View File

@ -23,9 +23,19 @@ import org.bouncycastle.bcpg.PublicKeyAlgorithmTags;
public enum PublicKeyAlgorithm {
RSA_GENERAL (PublicKeyAlgorithmTags.RSA_GENERAL),
/**
* @deprecated see https://tools.ietf.org/html/rfc4880#section-13.5
*/
RSA_ENCRYPT (PublicKeyAlgorithmTags.RSA_ENCRYPT),
/**
* @deprecated see https://tools.ietf.org/html/rfc4880#section-13.5
*/
RSA_SIGN (PublicKeyAlgorithmTags.RSA_SIGN),
ELGAMAL_ENCRYPT (PublicKeyAlgorithmTags.ELGAMAL_ENCRYPT),
DSA (PublicKeyAlgorithmTags.DSA),
/**
* EC is deprecated.