leakage resilient lib for crypto alg