Home
last modified time | relevance | path

Searched refs:id_len (Results 1 – 9 of 9) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/custom_type/
A Dder_length_custom_type.c28 unsigned long size, x, y, i, inlen, id_len; in der_length_custom_type() local
35 if ((err = der_length_asn1_identifier(root, &id_len)) != CRYPT_OK) { in der_length_custom_type()
38 y = id_len; in der_length_custom_type()
184 *payloadlen = y - id_len; in der_length_custom_type()
188 if ((err = der_length_asn1_length(y - id_len, &x)) != CRYPT_OK) { in der_length_custom_type()
192 *payloadlen = y - id_len; in der_length_custom_type()
A Dder_encode_custom_type.c30 unsigned long size, x, y, z, i, inlen, id_len; in der_encode_custom_type() local
49 if ((err = der_length_asn1_identifier(root, &id_len)) != CRYPT_OK) return CRYPT_INVALID_ARG; in der_encode_custom_type()
50 x = id_len; in der_encode_custom_type()
219 if ((err = der_encode_asn1_identifier(root, out, &id_len)) != CRYPT_OK) { in der_encode_custom_type()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/sequence/
A Dder_decode_sequence_flexi.c42 unsigned long err, identifier, len, totlen, data_offset, id_len, len_len; in s_der_decode_sequence_flexi() local
66 id_len = *inlen; in s_der_decode_sequence_flexi()
67 if ((err = der_decode_asn1_identifier(in, &id_len, l)) != CRYPT_OK) { in s_der_decode_sequence_flexi()
75 len_len = *inlen - id_len; in s_der_decode_sequence_flexi()
80 if ((err = der_decode_asn1_length(&in[id_len], &len_len, &len)) != CRYPT_OK) { in s_der_decode_sequence_flexi()
85 } else if (len > (*inlen - id_len - len_len)) { in s_der_decode_sequence_flexi()
92 data_offset = id_len + len_len; in s_der_decode_sequence_flexi()
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Dssl_cache.c81 if( session->id_len != entry->session.id_len || in mbedtls_ssl_cache_get()
83 entry->session.id_len ) != 0 ) in mbedtls_ssl_cache_get()
170 if( memcmp( session->id, cur->session.id, cur->session.id_len ) == 0 ) in mbedtls_ssl_cache_set()
A Decjpake.c198 const size_t id_len = strlen( id ); in ecjpake_hash() local
209 MBEDTLS_PUT_UINT32_BE( id_len, p, 0 ); in ecjpake_hash()
212 if( end < p || (size_t)( end - p ) < id_len ) in ecjpake_hash()
215 memcpy( p, id, id_len ); in ecjpake_hash()
216 p += id_len; in ecjpake_hash()
A Dssl_srv.c687 session.id_len = ssl->session_negotiate->id_len; in ssl_parse_session_ticket_ext()
1310 ssl->session_negotiate->id_len = sess_len; in ssl_parse_client_hello_v2()
1779 ssl->session_negotiate->id_len = sess_len; in ssl_parse_client_hello()
1783 ssl->session_negotiate->id_len ); in ssl_parse_client_hello()
2805 if( session->id_len == 0 ) in ssl_handle_id_based_session_resumption()
2816 session_tmp.id_len = session->id_len; in ssl_handle_id_based_session_resumption()
2930 ssl->session_negotiate->id_len = n = 0; in ssl_write_server_hello()
2936 ssl->session_negotiate->id_len = n = 32; in ssl_write_server_hello()
2947 n = ssl->session_negotiate->id_len; in ssl_write_server_hello()
2965 *p++ = (unsigned char) ssl->session_negotiate->id_len; in ssl_write_server_hello()
[all …]
A Dssl_cli.c1079 n = ssl->session_negotiate->id_len; in ssl_write_client_hello()
1108 ssl->session_negotiate->id_len = n = 32; in ssl_write_client_hello()
2295 ssl->session_negotiate->id_len != n || in ssl_parse_server_hello()
2305 ssl->session_negotiate->id_len = n; in ssl_parse_server_hello()
4465 ssl->session_negotiate->id_len = 0; in ssl_parse_new_session_ticket()
A Dssl_tls.c3502 ssl->session->id_len != 0 && in mbedtls_ssl_handshake_wrapup()
5488 *p++ = MBEDTLS_BYTE_0( session->id_len ); in ssl_session_save()
5686 session->id_len = *p++; in ssl_session_load()
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/
A Dssl.h986 size_t id_len; /*!< session id length */ member

Completed in 37 milliseconds