Package org.conscrypt
Class CryptoUpcalls
java.lang.Object
org.conscrypt.CryptoUpcalls
Provides a place where NativeCrypto can call back up to do Java language
calls to work on delegated key types from native code. Delegated keys are
usually backed by hardware so we don't have access directly to the private
key material. If it were a key where we can get to the private key, we
would not ever call into this class.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static byte[]
ecSignDigestWithPrivateKey
(PrivateKey javaKey, byte[] message) getExternalProviders
(String algorithm) Finds providers that are not us that provide the requested algorithms.(package private) static byte[]
rsaDecryptWithPrivateKey
(PrivateKey javaKey, int openSSLPadding, byte[] input) private static byte[]
rsaOpWithPrivateKey
(PrivateKey javaKey, int openSSLPadding, int cipherMode, byte[] input) (package private) static byte[]
rsaSignDigestWithPrivateKey
(PrivateKey javaKey, int openSSLPadding, byte[] message) private static byte[]
signDigestWithPrivateKey
(PrivateKey javaKey, byte[] message, String algorithm)
-
Field Details
-
logger
-
-
Constructor Details
-
CryptoUpcalls
private CryptoUpcalls()
-
-
Method Details
-
getExternalProviders
Finds providers that are not us that provide the requested algorithms. -
ecSignDigestWithPrivateKey
-
signDigestWithPrivateKey
private static byte[] signDigestWithPrivateKey(PrivateKey javaKey, byte[] message, String algorithm) -
rsaSignDigestWithPrivateKey
-
rsaDecryptWithPrivateKey
-
rsaOpWithPrivateKey
private static byte[] rsaOpWithPrivateKey(PrivateKey javaKey, int openSSLPadding, int cipherMode, byte[] input)
-