Top Description Fields Constructors Methods
org.conscrypt

pack-priv final Class CryptoUpcalls

extends Object
Class Inheritance
Imports
java.security.InvalidKeyException, .NoSuchAlgorithmException, .PrivateKey, .Provider, .Security, .Signature, java.util.ArrayList, java.util.logging.Level, .Logger, javax.crypto.Cipher, .NoSuchPaddingException

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

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static byte[]
ecSignDigestWithPrivateKey(PrivateKey javaKey, byte[] message)

private static ArrayList<Provider>
getExternalProviders(String algorithm)

Finds providers that are not us that provide the requested algorithms.

pack-priv static byte[]
rsaDecryptWithPrivateKey(PrivateKey javaKey, int openSSLPadding, byte[] input)

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

pack-priv static byte[]
rsaSignDigestWithPrivateKey(PrivateKey javaKey, int openSSLPadding, byte[] message)

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

loggerback to summary
private static final Logger logger

Constructor Detail

CryptoUpcallsback to summary
private CryptoUpcalls()

Method Detail

ecSignDigestWithPrivateKeyback to summary
pack-priv static byte[] ecSignDigestWithPrivateKey(PrivateKey javaKey, byte[] message)
getExternalProvidersback to summary
private static ArrayList<Provider> getExternalProviders(String algorithm)

Finds providers that are not us that provide the requested algorithms.

rsaDecryptWithPrivateKeyback to summary
pack-priv static byte[] rsaDecryptWithPrivateKey(PrivateKey javaKey, int openSSLPadding, byte[] input)
rsaOpWithPrivateKeyback to summary
private static byte[] rsaOpWithPrivateKey(PrivateKey javaKey, int openSSLPadding, int cipherMode, byte[] input)
rsaSignDigestWithPrivateKeyback to summary
pack-priv static byte[] rsaSignDigestWithPrivateKey(PrivateKey javaKey, int openSSLPadding, byte[] message)
signDigestWithPrivateKeyback to summary
private static byte[] signDigestWithPrivateKey(PrivateKey javaKey, byte[] message, String algorithm)