Lines Matching refs:off
58 size_t hlen, rlen, slen, zlen, off; in br_ecdsa_raw_to_asn1() local
84 off = 3; in br_ecdsa_raw_to_asn1()
87 off = 2; in br_ecdsa_raw_to_asn1()
93 tmp[off ++] = 0x02; in br_ecdsa_raw_to_asn1()
94 tmp[off ++] = rlen; in br_ecdsa_raw_to_asn1()
96 tmp[off] = 0x00; in br_ecdsa_raw_to_asn1()
97 memcpy(tmp + off + 1, buf, hlen); in br_ecdsa_raw_to_asn1()
99 memcpy(tmp + off, buf + hlen - rlen, rlen); in br_ecdsa_raw_to_asn1()
101 off += rlen; in br_ecdsa_raw_to_asn1()
106 tmp[off ++] = 0x02; in br_ecdsa_raw_to_asn1()
107 tmp[off ++] = slen; in br_ecdsa_raw_to_asn1()
109 tmp[off] = 0x00; in br_ecdsa_raw_to_asn1()
110 memcpy(tmp + off + 1, buf + hlen, hlen); in br_ecdsa_raw_to_asn1()
112 memcpy(tmp + off, buf + sig_len - slen, slen); in br_ecdsa_raw_to_asn1()
114 off += slen; in br_ecdsa_raw_to_asn1()
119 memcpy(sig, tmp, off); in br_ecdsa_raw_to_asn1()
120 return off; in br_ecdsa_raw_to_asn1()