Package com.wolfssl
Interface WolfSSLRsaVerifyCallback
-
public interface WolfSSLRsaVerifyCallback
wolfSSL RSA Verification Callback Interface. This interface specifies how applicaitons should implement the RSA verification callback class to be used by wolfSSL.After implementing this interface, it should be passed as a parameter to the
WolfSSLContext.setRsaVerifyCb()
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
rsaVerifyCallback(WolfSSLSession ssl, java.nio.ByteBuffer sig, long sigSz, java.nio.ByteBuffer out, long outSz, java.nio.ByteBuffer keyDer, long keySz, java.lang.Object ctx)
RSA verification callback method.
-
-
-
Method Detail
-
rsaVerifyCallback
int rsaVerifyCallback(WolfSSLSession ssl, java.nio.ByteBuffer sig, long sigSz, java.nio.ByteBuffer out, long outSz, java.nio.ByteBuffer keyDer, long keySz, java.lang.Object ctx)
RSA verification callback method. This method acts as RSA verification callback.- Parameters:
ssl
- the current SSL session object from which the callback was initiated.sig
- the signature to verifysigSz
- length of the signature, sigout
- the verification/output buffer after the decryption process and padding.outSz
- size of the output buffer, outkeyDer
- the RSA Public key in ASN1 formatkeySz
- the length of the key, keyDer, in bytesctx
- custom user-registered ECC signing context- Returns:
0
upon success, otherwise a negative value on error.
-
-