Skip to content

Commit eb97aef

Browse files
committed
Deprecated RSA_SIGN, RSA_ENCRYPT, ELGAMAL_GENERAL
1 parent ca40bd6 commit eb97aef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pg/src/main/java/org/bouncycastle/bcpg/PublicKeyAlgorithmTags.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ public interface PublicKeyAlgorithmTags
1919
/**
2020
* Deprecated tag for encrypt-only RSA.
2121
* MUST NOT be generated.
22+
* @deprecated use {@link #RSA_GENERAL} instead.
2223
*/
2324
int RSA_ENCRYPT = 2; // RSA Encrypt-Only
2425
/**
2526
* Deprecated tag for sign-only RSA.
2627
* MUST NOT be generated.
28+
* @deprecated use {@link #RSA_GENERAL} instead.
2729
*/
2830
int RSA_SIGN = 3; // RSA Sign-Only
2931
/**
@@ -51,6 +53,7 @@ public interface PublicKeyAlgorithmTags
5153
* Reserved tag for sign+encrypt ElGamal.
5254
* MUST NOT be generated.
5355
* An implementation MUST NOT generate ElGamal signatures.
56+
* @deprecated use {@link #ELGAMAL_ENCRYPT} instead.
5457
*/
5558
int ELGAMAL_GENERAL = 20; // Reserved Elgamal (Encrypt or Sign)
5659
/**

0 commit comments

Comments
 (0)