Lines Matching refs:sig
1197 ECDSA_SIG *sig = OPENSSL_zalloc(sizeof(*sig)); in DECLARE_ASN1_ENCODE_FUNCTIONS_name() local
1199 return sig; in DECLARE_ASN1_ENCODE_FUNCTIONS_name()
1202 void ECDSA_SIG_free(ECDSA_SIG *sig) in ECDSA_SIG_free() argument
1204 if (sig == NULL) in ECDSA_SIG_free()
1206 BN_clear_free(sig->r); in ECDSA_SIG_free()
1207 BN_clear_free(sig->s); in ECDSA_SIG_free()
1208 OPENSSL_free(sig); in ECDSA_SIG_free()
1213 ECDSA_SIG *sig; in d2i_ECDSA_SIG() local
1218 sig = *psig; in d2i_ECDSA_SIG()
1220 sig = ECDSA_SIG_new(); in d2i_ECDSA_SIG()
1221 if (sig == NULL) in d2i_ECDSA_SIG()
1224 if (sig->r == NULL) in d2i_ECDSA_SIG()
1225 sig->r = BN_new(); in d2i_ECDSA_SIG()
1226 if (sig->s == NULL) in d2i_ECDSA_SIG()
1227 sig->s = BN_new(); in d2i_ECDSA_SIG()
1228 if (sig->r == NULL || sig->s == NULL in d2i_ECDSA_SIG()
1229 || ossl_decode_der_dsa_sig(sig->r, sig->s, ppin, (size_t)len) == 0) { in d2i_ECDSA_SIG()
1231 ECDSA_SIG_free(sig); in d2i_ECDSA_SIG()
1235 *psig = sig; in d2i_ECDSA_SIG()
1236 return sig; in d2i_ECDSA_SIG()
1239 int i2d_ECDSA_SIG(const ECDSA_SIG *sig, unsigned char **ppout) in i2d_ECDSA_SIG() argument
1259 if (!ossl_encode_der_dsa_sig(&pkt, sig->r, sig->s) in i2d_ECDSA_SIG()
1280 void ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps) in ECDSA_SIG_get0() argument
1283 *pr = sig->r; in ECDSA_SIG_get0()
1285 *ps = sig->s; in ECDSA_SIG_get0()
1288 const BIGNUM *ECDSA_SIG_get0_r(const ECDSA_SIG *sig) in ECDSA_SIG_get0_r() argument
1290 return sig->r; in ECDSA_SIG_get0_r()
1293 const BIGNUM *ECDSA_SIG_get0_s(const ECDSA_SIG *sig) in ECDSA_SIG_get0_s() argument
1295 return sig->s; in ECDSA_SIG_get0_s()
1298 int ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s) in ECDSA_SIG_set0() argument
1302 BN_clear_free(sig->r); in ECDSA_SIG_set0()
1303 BN_clear_free(sig->s); in ECDSA_SIG_set0()
1304 sig->r = r; in ECDSA_SIG_set0()
1305 sig->s = s; in ECDSA_SIG_set0()
1312 ECDSA_SIG sig; in ECDSA_size() local
1326 sig.r = sig.s = (BIGNUM *)bn; in ECDSA_size()
1327 ret = i2d_ECDSA_SIG(&sig, NULL); in ECDSA_size()