Lines Matching refs:sig
88 ECDSA_SIG *sig = OPENSSL_malloc(sizeof(ECDSA_SIG)); in ECDSA_SIG_new() local
89 if (sig == NULL) { in ECDSA_SIG_new()
92 sig->r = BN_new(); in ECDSA_SIG_new()
93 sig->s = BN_new(); in ECDSA_SIG_new()
94 if (sig->r == NULL || sig->s == NULL) { in ECDSA_SIG_new()
95 ECDSA_SIG_free(sig); in ECDSA_SIG_new()
98 return sig; in ECDSA_SIG_new()
101 void ECDSA_SIG_free(ECDSA_SIG *sig) { in ECDSA_SIG_free() argument
102 if (sig == NULL) { in ECDSA_SIG_free()
106 BN_free(sig->r); in ECDSA_SIG_free()
107 BN_free(sig->s); in ECDSA_SIG_free()
108 OPENSSL_free(sig); in ECDSA_SIG_free()
140 int ECDSA_SIG_marshal(CBB *cbb, const ECDSA_SIG *sig) { in ECDSA_SIG_marshal() argument
143 !BN_bn2cbb(&child, sig->r) || in ECDSA_SIG_marshal()
144 !BN_bn2cbb(&child, sig->s) || in ECDSA_SIG_marshal()
153 const ECDSA_SIG *sig) { in ECDSA_SIG_to_bytes() argument
157 !ECDSA_SIG_marshal(&cbb, sig) || in ECDSA_SIG_to_bytes()
218 int i2d_ECDSA_SIG(const ECDSA_SIG *sig, uint8_t **outp) { in i2d_ECDSA_SIG() argument
221 if (!ECDSA_SIG_to_bytes(&der, &der_len, sig)) { in i2d_ECDSA_SIG()