Package org.conscrypt

Class CryptoUpcalls


  • public 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.
    • Method Detail

      • rawSignDigestWithPrivateKey

        public static byte[] rawSignDigestWithPrivateKey​(PrivateKey javaKey,
                                                         byte[] message)
      • rsaDecryptWithPrivateKey

        public static byte[] rsaDecryptWithPrivateKey​(PrivateKey javaKey,
                                                      int openSSLPadding,
                                                      byte[] input)