Lines Matching defs:oid_size
2315 size_t oid_size = 0;
2327 if (mbedtls_oid_get_oid_by_md(md_alg, &oid, &oid_size) != 0) {
2335 /* Double-check that 8 + hashlen + oid_size can be used as a
2337 if (8 + hashlen + oid_size >= 0x80 ||
2339 10 + hashlen + oid_size < 10 + hashlen) {
2349 * - Need oid_size bytes for hash alg OID.
2351 if (nb_pad < 10 + hashlen + oid_size) {
2354 nb_pad -= 10 + hashlen + oid_size;
2400 *p++ = (unsigned char) (0x08 + oid_size + hashlen);
2402 *p++ = (unsigned char) (0x04 + oid_size);
2404 *p++ = (unsigned char) oid_size;
2405 memcpy(p, oid, oid_size);
2406 p += oid_size;