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
 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 verify
sigSz - length of the signature, sig
out - the verification/output buffer after the decryption process and padding.
outSz - size of the output buffer, out
keyDer - the RSA Public key in ASN1 format
keySz - the length of the key, keyDer, in bytes
ctx - custom user-registered ECC signing context
Returns:
0 upon success, otherwise a negative value on error.