|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WolfSSLEccVerifyCallback
wolfSSL ECC Verification Callback Interface. This interface specifies how applicaitons should implement the ECC verification callback class to be used by wolfSSL.
After implementing this interface, it should be passed as a parameter
to the WolfSSLContext.setEccVerifyCb()
method to be registered with the native
wolfSSL library.
Method Summary | |
---|---|
int |
eccVerifyCallback(WolfSSLSession ssl,
java.nio.ByteBuffer sig,
long sigSz,
java.nio.ByteBuffer hash,
long hashSz,
java.nio.ByteBuffer keyDer,
long keySz,
int[] result,
java.lang.Object ctx)
ECC verification callback method. |
Method Detail |
---|
int eccVerifyCallback(WolfSSLSession ssl, java.nio.ByteBuffer sig, long sigSz, java.nio.ByteBuffer hash, long hashSz, java.nio.ByteBuffer keyDer, long keySz, int[] result, java.lang.Object ctx)
ssl
- the current SSL session object from which the
callback was initiated.sig
- signature to verifysigSz
- length of the signature, sighash
- input buffer containing the digest of the messagehashSz
- length in bytes of the hash, hashkeyDer
- the ECC Private key in ASN1 formatkeySz
- length of the key, keyDer, in bytesresult
- output variable where the result of verification
should be stored, 1 for success, 0 for
failure. Use the first element of the array for
storage.ctx
- 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 |