cjose icon indicating copy to clipboard operation
cjose copied to clipboard

CPU usage for routine cjose_jws_verify

Open vtotad opened this issue 3 years ago • 1 comments

When the I am using ECDSA/RSA public key to verify the token its taking more time compare to secret key. Is there any way I can improve the performance. My application is single threaded signal based application and this routine is reducing the performance from 9000 TPS to 1000TPS.

Regards Veeranna

vtotad avatar Aug 27 '21 14:08 vtotad

RSA in general is quite slow. I'd recommend you switch to using a symmetric algorithm if you want performance.

veselov avatar Aug 27 '21 16:08 veselov