Lines Matching refs:sig
89 ECDSA_SIG *sig = OPENSSL_malloc(sizeof(ECDSA_SIG)); in ECDSA_SIG_new() local
90 if (sig == NULL) { in ECDSA_SIG_new()
93 sig->r = BN_new(); in ECDSA_SIG_new()
94 sig->s = BN_new(); in ECDSA_SIG_new()
95 if (sig->r == NULL || sig->s == NULL) { in ECDSA_SIG_new()
96 ECDSA_SIG_free(sig); in ECDSA_SIG_new()
99 return sig; in ECDSA_SIG_new()
102 void ECDSA_SIG_free(ECDSA_SIG *sig) { in ECDSA_SIG_free() argument
103 if (sig == NULL) { in ECDSA_SIG_free()
107 BN_free(sig->r); in ECDSA_SIG_free()
108 BN_free(sig->s); in ECDSA_SIG_free()
109 OPENSSL_free(sig); in ECDSA_SIG_free()
141 int ECDSA_SIG_marshal(CBB *cbb, const ECDSA_SIG *sig) { in ECDSA_SIG_marshal() argument
144 !BN_marshal_asn1(&child, sig->r) || in ECDSA_SIG_marshal()
145 !BN_marshal_asn1(&child, sig->s) || in ECDSA_SIG_marshal()
154 const ECDSA_SIG *sig) { in ECDSA_SIG_to_bytes() argument
158 !ECDSA_SIG_marshal(&cbb, sig) || in ECDSA_SIG_to_bytes()
219 int i2d_ECDSA_SIG(const ECDSA_SIG *sig, uint8_t **outp) { in i2d_ECDSA_SIG() argument
222 !ECDSA_SIG_marshal(&cbb, sig)) { in i2d_ECDSA_SIG()