Package com.wolfssl
Interface WolfSSLRsaDecCallback
-
public interface WolfSSLRsaDecCallback
wolfSSL RSA Private Decrypt Callback Interface. This interface specifies how applicaitons should implement the RSA private decrypt callback class to be used by wolfSSL.After implementing this interface, it should be passed as a parameter to the
WolfSSLContext.setRsaDecCb()
method to be registered with the native wolfSSL library.- Version:
- 1.0, August 2013
- Author:
- wolfSSL
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
rsaDecCallback(WolfSSLSession ssl, java.nio.ByteBuffer in, long inSz, java.nio.ByteBuffer out, long outSz, java.nio.ByteBuffer keyDer, long keySz, java.lang.Object ctx)
RSA private decrypt callback method.
-
-
-
Method Detail
-
rsaDecCallback
int rsaDecCallback(WolfSSLSession ssl, java.nio.ByteBuffer in, long inSz, java.nio.ByteBuffer out, long outSz, java.nio.ByteBuffer keyDer, long keySz, java.lang.Object ctx)
RSA private decrypt callback method. This method acts as RSA private decrypt callback.- Parameters:
ssl
- the current SSL session object from which the callback was initiated.in
- input buffer to decryptinSz
- length of the input, inout
- output buffer where the result of decryption should be stored.outSz
- size of the output buffer, outkeyDer
- RSA Private key in ASN1 formatkeySz
- length of the key, keyDer, in bytesctx
- custom user-registered ECC signing context- Returns:
0
upon success, otherwise a negative value on error.
-
-