|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WolfSSLEccSignCallback
wolfSSL ECC Signing Callback Interface. This interface specifies how applicaitons should implement the ECC signing callback class to be used by wolfSSL.
After implementing this interface, it should be passed as a parameter
to the WolfSSLContext.setEccSignCb()
method to be registered with the native
wolfSSL library.
Method Summary | |
---|---|
int |
eccSignCallback(WolfSSLSession ssl,
java.nio.ByteBuffer in,
long inSz,
java.nio.ByteBuffer out,
long[] outSz,
java.nio.ByteBuffer keyDer,
long keySz,
java.lang.Object ctx)
ECC signing callback method. |
Method Detail |
---|
int eccSignCallback(WolfSSLSession ssl, java.nio.ByteBuffer in, long inSz, java.nio.ByteBuffer out, long[] outSz, java.nio.ByteBuffer keyDer, long keySz, java.lang.Object ctx)
ssl
- the current SSL session object from which the
callback was initiated.in
- input buffer to signinSz
- the length of the input buffer, inout
- output buffer where the result of the signature should
be storedoutSz
- an input/output variable that specifies the size of
the output buffer upon invocation and the actual size
of the signature should be stored here before returning.
Use the first element of the array for both
usage (input) and storage (output)keyDer
- ECC Private key in ASN1 formatkeySz
- length of the key, keyDer, in bytesctx
- custom user-registered ECC signing context
0
upon success,
otherwise a negative value on error.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |