Home
last modified time | relevance | path

Searched refs:len_len (Results 1 – 6 of 6) sorted by relevance

/freebsd/crypto/heimdal/lib/asn1/
H A Dextra.c52 size_t len_len, length, l; in decode_heim_any() local
64 e = der_get_length(p + l, len - l, &length, &len_len); in decode_heim_any()
67 if (len < len_len + l) in decode_heim_any()
69 length = len - (len_len + l); in decode_heim_any()
71 if (len < length + len_len + l) in decode_heim_any()
75 data->data = malloc(length + len_len + l); in decode_heim_any()
78 data->length = length + len_len + l; in decode_heim_any()
79 memcpy(data->data, p, length + len_len + l); in decode_heim_any()
82 *size = length + len_len + l; in decode_heim_any()
H A Dcheck-der.c104 size_t len_len, len; in test_one_int() local
114 ret = der_put_integer(buf + 1 + len - 1, len, &val, &len_len); in test_one_int()
119 if (len != len_len) { in test_one_int()
121 val, ret, (unsigned long)len, (unsigned long)len_len); in test_one_int()
125 ret = der_get_integer(buf + 1, len, &dval, &len_len); in test_one_int()
130 if (len != len_len) { in test_one_int()
132 val, (unsigned long)len, (unsigned long)len_len); in test_one_int()
H A DChangeLog744 * check-der.c (test_one_int): len and len_len is size_t
/freebsd/crypto/heimdal/lib/gssapi/krb5/
H A Dencapsulate.c42 size_t len_len; in _gssapi_encap_length() local
46 len_len = der_length_len(*len); in _gssapi_encap_length()
48 *total_len = 1 + len_len + *len; in _gssapi_encap_length()
80 size_t len_len, foo; in _gssapi_make_mech_header() local
83 len_len = der_length_len(len); in _gssapi_make_mech_header()
84 e = der_put_length (p + len_len - 1, len_len, len, &foo); in _gssapi_make_mech_header()
85 if(e || foo != len_len) in _gssapi_make_mech_header()
87 p += len_len; in _gssapi_make_mech_header()
H A Ddecapsulate.c46 size_t len, len_len, mech_len, foo; in _gsskrb5_get_mech() local
54 e = der_get_length (p, total_len - 1, &len, &len_len); in _gsskrb5_get_mech()
55 if (e || 1 + len_len + len != total_len) in _gsskrb5_get_mech()
57 if (total_len < 1 + len_len + 1) in _gsskrb5_get_mech()
59 p += len_len; in _gsskrb5_get_mech()
62 e = der_get_length (p, total_len - 1 - len_len - 1, in _gsskrb5_get_mech()
/freebsd/sys/kgssapi/krb5/
H A Dkrb5_mech.c557 size_t inside_len, len_len, tlen; in krb5_make_token() local
564 len_len = 1; in krb5_make_token()
566 len_len = 2; in krb5_make_token()
568 len_len = 3; in krb5_make_token()
570 len_len = 4; in krb5_make_token()
572 len_len = 5; in krb5_make_token()
574 tlen = 1 + len_len + 2 + oid->length + hlen; in krb5_make_token()
582 switch (len_len) { in krb5_make_token()
648 size_t tlen, hlen, len_len, inside_len; in krb5_verify_token() local
675 len_len = 1; in krb5_verify_token()
[all …]