Package com.wolfssl
Interface WolfSSLDecryptVerifyCallback
-
public interface WolfSSLDecryptVerifyCallback
wolfSSL Decrypt/Verify callback interface. This interface specifies how applicaitons should implement the decrypt/ verify callback class to be used by wolfSSL when using atomic record layer callbacks.After implementing this interface, it should be passed as a parameter to the
WolfSSLContext.setDecryptVerifyCb()
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
decryptVerifyCallback(WolfSSLSession ssl, java.nio.ByteBuffer decOut, byte[] decIn, long decSz, int content, int verify, long[] padSz, java.lang.Object ctx)
Atomic record layer decrypt/verify callback method.
-
-
-
Method Detail
-
decryptVerifyCallback
int decryptVerifyCallback(WolfSSLSession ssl, java.nio.ByteBuffer decOut, byte[] decIn, long decSz, int content, int verify, long[] padSz, java.lang.Object ctx)
Atomic record layer decrypt/verify callback method. This method acts as the decrypt/verify callback to be used with the wolfSSL atomic record layer processing.- Parameters:
ssl
- the current SSL session object from which the callback was initiated.decOut
- output buffer where the result of the decryption should be stored.decIn
- the encrypted input bufferdecSz
- the size of the input buffer, decIncontent
- used with setTlsHmacInner(), the type of messageverify
- used with setTlsHmacInner(), specifies whether this is a verification of a peer message.padSz
- output variable that should be set with the total value of the padding. When setting this, the first element of the the array should be used.ctx
- user-registered decrypt/verify context- Returns:
0
upon success, otherwise a negative value on failure.
-
-