Package org.bouncycastle.tls
Class SignatureScheme
java.lang.Object
org.bouncycastle.tls.SignatureScheme
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
from
(short hashAlgorithm, short signatureAlgorithm) static int
from
(SignatureAndHashAlgorithm sigAndHashAlg) static int
getCryptoHashAlgorithm
(int signatureScheme) static int
getCryptoHashAlgorithm
(SignatureAndHashAlgorithm signatureAndHashAlgorithm) static short
getHashAlgorithm
(int signatureScheme) static String
getName
(int signatureScheme) static int
getNamedGroup
(int signatureScheme) For TLS 1.3+ usage, some signature schemes are constrained to use a particular (NamedGroup
.static int
getRSAPSSCryptoHashAlgorithm
(int signatureScheme) Deprecated.static short
getSignatureAlgorithm
(int signatureScheme) static SignatureAndHashAlgorithm
getSignatureAndHashAlgorithm
(int signatureScheme) static String
getText
(int signatureScheme) static boolean
isECDSA
(int signatureScheme) static boolean
isPrivate
(int signatureScheme) static boolean
isRSAPSS
(int signatureScheme)
-
Field Details
-
rsa_pkcs1_sha1
public static final int rsa_pkcs1_sha1- See Also:
-
ecdsa_sha1
public static final int ecdsa_sha1- See Also:
-
rsa_pkcs1_sha256
public static final int rsa_pkcs1_sha256- See Also:
-
rsa_pkcs1_sha384
public static final int rsa_pkcs1_sha384- See Also:
-
rsa_pkcs1_sha512
public static final int rsa_pkcs1_sha512- See Also:
-
ecdsa_secp256r1_sha256
public static final int ecdsa_secp256r1_sha256- See Also:
-
ecdsa_secp384r1_sha384
public static final int ecdsa_secp384r1_sha384- See Also:
-
ecdsa_secp521r1_sha512
public static final int ecdsa_secp521r1_sha512- See Also:
-
rsa_pss_rsae_sha256
public static final int rsa_pss_rsae_sha256- See Also:
-
rsa_pss_rsae_sha384
public static final int rsa_pss_rsae_sha384- See Also:
-
rsa_pss_rsae_sha512
public static final int rsa_pss_rsae_sha512- See Also:
-
ed25519
public static final int ed25519- See Also:
-
ed448
public static final int ed448- See Also:
-
rsa_pss_pss_sha256
public static final int rsa_pss_pss_sha256- See Also:
-
rsa_pss_pss_sha384
public static final int rsa_pss_pss_sha384- See Also:
-
rsa_pss_pss_sha512
public static final int rsa_pss_pss_sha512- See Also:
-
ecdsa_brainpoolP256r1tls13_sha256
public static final int ecdsa_brainpoolP256r1tls13_sha256- See Also:
-
ecdsa_brainpoolP384r1tls13_sha384
public static final int ecdsa_brainpoolP384r1tls13_sha384- See Also:
-
ecdsa_brainpoolP512r1tls13_sha512
public static final int ecdsa_brainpoolP512r1tls13_sha512- See Also:
-
sm2sig_sm3
public static final int sm2sig_sm3- See Also:
-
-
Constructor Details
-
SignatureScheme
public SignatureScheme()
-
-
Method Details
-
from
-
from
public static int from(short hashAlgorithm, short signatureAlgorithm) -
getCryptoHashAlgorithm
public static int getCryptoHashAlgorithm(int signatureScheme) -
getCryptoHashAlgorithm
-
getName
-
getNamedGroup
public static int getNamedGroup(int signatureScheme) For TLS 1.3+ usage, some signature schemes are constrained to use a particular (NamedGroup
. Not relevant for TLS 1.2 and below. -
getRSAPSSCryptoHashAlgorithm
public static int getRSAPSSCryptoHashAlgorithm(int signatureScheme) Deprecated.UsegetCryptoHashAlgorithm(int)
instead. -
getHashAlgorithm
public static short getHashAlgorithm(int signatureScheme) -
getSignatureAlgorithm
public static short getSignatureAlgorithm(int signatureScheme) -
getSignatureAndHashAlgorithm
-
getText
-
isPrivate
public static boolean isPrivate(int signatureScheme) -
isECDSA
public static boolean isECDSA(int signatureScheme) -
isRSAPSS
public static boolean isRSAPSS(int signatureScheme)
-
getCryptoHashAlgorithm(int)
instead.