ECDSA implementation with JSBN library