Package org.conscrypt

Class CryptoUpcalls

java.lang.Object
org.conscrypt.CryptoUpcalls

final class CryptoUpcalls extends Object
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 Details

    • logger

      private static final Logger logger
  • Constructor Details

    • CryptoUpcalls

      private CryptoUpcalls()
  • Method Details

    • getExternalProviders

      private static ArrayList<Provider> getExternalProviders(String algorithm)
      Finds providers that are not us that provide the requested algorithms.
    • ecSignDigestWithPrivateKey

      static byte[] ecSignDigestWithPrivateKey(PrivateKey javaKey, byte[] message)
    • signDigestWithPrivateKey

      private static byte[] signDigestWithPrivateKey(PrivateKey javaKey, byte[] message, String algorithm)
    • rsaSignDigestWithPrivateKey

      static byte[] rsaSignDigestWithPrivateKey(PrivateKey javaKey, int openSSLPadding, byte[] message)
    • rsaDecryptWithPrivateKey

      static byte[] rsaDecryptWithPrivateKey(PrivateKey javaKey, int openSSLPadding, byte[] input)
    • rsaOpWithPrivateKey

      private static byte[] rsaOpWithPrivateKey(PrivateKey javaKey, int openSSLPadding, int cipherMode, byte[] input)