Package org.conscrypt
Class EvpMdRef
- java.lang.Object
-
- org.conscrypt.EvpMdRef
-
final class EvpMdRef extends java.lang.Object
Utility class to convert between BoringSSL- and JCE-style message digest identifiers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
EvpMdRef.MD5
(package private) static class
EvpMdRef.SHA1
(package private) static class
EvpMdRef.SHA224
(package private) static class
EvpMdRef.SHA256
(package private) static class
EvpMdRef.SHA384
(package private) static class
EvpMdRef.SHA512
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.String
MGF1_ALGORITHM_NAME
(package private) static java.lang.String
MGF1_OID
-
Constructor Summary
Constructors Modifier Constructor Description private
EvpMdRef()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static int
getDigestSizeBytesByJcaDigestAlgorithmStandardName(java.lang.String algorithm)
(package private) static long
getEVP_MDByJcaDigestAlgorithmStandardName(java.lang.String algorithm)
(package private) static java.lang.String
getJcaDigestAlgorithmStandardName(java.lang.String algorithm)
Returns the canonical JCA digest algorithm name for the provided digest algorithm name ornull
if the digest algorithm is not known.(package private) static java.lang.String
getJcaDigestAlgorithmStandardNameFromEVP_MD(long evpMdRef)
-
-
-
Field Detail
-
MGF1_ALGORITHM_NAME
static final java.lang.String MGF1_ALGORITHM_NAME
- See Also:
- Constant Field Values
-
MGF1_OID
static final java.lang.String MGF1_OID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getJcaDigestAlgorithmStandardName
static java.lang.String getJcaDigestAlgorithmStandardName(java.lang.String algorithm)
Returns the canonical JCA digest algorithm name for the provided digest algorithm name ornull
if the digest algorithm is not known.
-
getEVP_MDByJcaDigestAlgorithmStandardName
static long getEVP_MDByJcaDigestAlgorithmStandardName(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException
- Throws:
java.security.NoSuchAlgorithmException
-
getDigestSizeBytesByJcaDigestAlgorithmStandardName
static int getDigestSizeBytesByJcaDigestAlgorithmStandardName(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException
- Throws:
java.security.NoSuchAlgorithmException
-
getJcaDigestAlgorithmStandardNameFromEVP_MD
static java.lang.String getJcaDigestAlgorithmStandardNameFromEVP_MD(long evpMdRef)
-
-