forked from wolfSSL/wolfssl
add CyaSSL_GetHmacMaxSize for JNI wrapper
This commit is contained in:
@@ -487,5 +487,10 @@ static void HmacCaviumSetKey(Hmac* hmac, int type, const byte* key,
|
|||||||
|
|
||||||
#endif /* HAVE_CAVIUM */
|
#endif /* HAVE_CAVIUM */
|
||||||
|
|
||||||
|
int CyaSSL_GetHmacMaxSize(void)
|
||||||
|
{
|
||||||
|
return MAX_DIGEST_SIZE;
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* NO_HMAC */
|
#endif /* NO_HMAC */
|
||||||
|
|
||||||
|
|||||||
@@ -147,6 +147,7 @@ CYASSL_API void HmacFinal(Hmac*, byte*);
|
|||||||
CYASSL_API void HmacFreeCavium(Hmac*);
|
CYASSL_API void HmacFreeCavium(Hmac*);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
CYASSL_API int CyaSSL_GetHmacMaxSize(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} /* extern "C" */
|
} /* extern "C" */
|
||||||
|
|||||||
Reference in New Issue
Block a user