16 unsigned char tmpsig[64] = {0};
23 if (pos ==
inputlen || input[pos] != 0x30) {
42 if (pos ==
inputlen || input[pos] != 0x02) {
57 while (
lenbyte > 0 && input[pos] == 0) {
61 if (
lenbyte >=
sizeof(
size_t)) {
80 if (pos ==
inputlen || input[pos] != 0x02) {
95 while (
lenbyte > 0 && input[pos] == 0) {
99 if (
lenbyte >=
sizeof(
size_t)) {
117 while (
rlen > 0 && input[
rpos] == 0) {
129 while (
slen > 0 && input[
spos] == 0) {
int ecdsa_signature_parse_der_lax(const secp256k1_context *ctx, secp256k1_ecdsa_signature *sig, const unsigned char *input, size_t inputlen)
Parse a signature in "lax DER" format.
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
SECP256K1_API int secp256k1_ecdsa_signature_parse_compact(const secp256k1_context *ctx, secp256k1_ecdsa_signature *sig, const unsigned char *input64) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3)
Parse an ECDSA signature in compact (64 bytes) format.
Opaque data structured that holds a parsed ECDSA signature.