|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
---|---|
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 |
---|
int decryptVerifyCallback(WolfSSLSession ssl, java.nio.ByteBuffer decOut, byte[] decIn, long decSz, int content, int verify, long[] padSz, java.lang.Object ctx)
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
0
upon success,
otherwise a negative value on failure.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |