Added keystore optional argument to signing/verification APIs.