Lines Matching refs:diff
39 ssize_t diff = vlen - keylen; in ecdsa_get_signature_rs() local
51 if (diff > 0) { in ecdsa_get_signature_rs()
55 diff--; in ecdsa_get_signature_rs()
58 if (diff) in ecdsa_get_signature_rs()
61 if (-diff >= keylen) in ecdsa_get_signature_rs()
64 if (diff) { in ecdsa_get_signature_rs()
66 memset(rs, 0, -diff); in ecdsa_get_signature_rs()
69 memcpy(&rs[-diff], d, vlen); in ecdsa_get_signature_rs()
148 ssize_t diff; in ecdsa_verify() local
168 diff = keylen - req->dst_len; in ecdsa_verify()
169 if (diff >= 0) { in ecdsa_verify()
170 if (diff) in ecdsa_verify()
171 memset(rawhash, 0, diff); in ecdsa_verify()
172 memcpy(&rawhash[diff], buffer + req->src_len, req->dst_len); in ecdsa_verify()
173 } else if (diff < 0) { in ecdsa_verify()