Home
last modified time | relevance | path

Searched refs:psk (Results 1 – 15 of 15) sorted by relevance

/net-tools-3.4.0/tinydtls-0.8.2/examples/contiki/
Ddtls-server.c130 } psk[3] = { in get_psk_info() local
145 for (i = 0; i < sizeof(psk)/sizeof(struct keymap_t); i++) { in get_psk_info()
146 if (id_len == psk[i].id_length && memcmp(id, psk[i].id, id_len) == 0) { in get_psk_info()
147 if (result_length < psk[i].key_length) { in get_psk_info()
152 memcpy(result, psk[i].key, psk[i].key_length); in get_psk_info()
153 return psk[i].key_length; in get_psk_info()
/net-tools-3.4.0/tinydtls-0.8.2/tests/
Ddtls-server.c64 } psk[3] = { in get_psk_info() local
79 for (i = 0; i < sizeof(psk)/sizeof(struct keymap_t); i++) { in get_psk_info()
80 if (id_len == psk[i].id_length && memcmp(id, psk[i].id, id_len) == 0) { in get_psk_info()
81 if (result_length < psk[i].key_length) { in get_psk_info()
86 memcpy(result, psk[i].key, psk[i].key_length); in get_psk_info()
87 return psk[i].key_length; in get_psk_info()
/net-tools-3.4.0/mbedtls-2.4.0/programs/ssl/
Dmini_client.c94 const unsigned char psk[] = { variable
216 mbedtls_ssl_conf_psk( &conf, psk, sizeof( psk ), in main()
Dssl_client2.c292 const char *psk; /* the pre-shared key */ member
406 unsigned char psk[MBEDTLS_PSK_MAX_LEN]; in main() local
483 opt.psk = DFL_PSK; in main()
571 opt.psk = q; in main()
862 if( strlen( opt.psk ) ) in main()
867 if( strlen( opt.psk ) % 2 != 0 ) in main()
873 psk_len = strlen( opt.psk ) / 2; in main()
875 for( j = 0; j < strlen( opt.psk ); j += 2 ) in main()
877 c = opt.psk[j]; in main()
889 psk[ j / 2 ] = c << 4; in main()
[all …]
Dssl_server2.c370 const char *psk; /* the pre-shared key */ member
786 unsigned char psk[MBEDTLS_PSK_MAX_LEN]; in main() local
913 opt.psk = DFL_PSK; in main()
997 opt.psk = q; in main()
1338 if( unhexify( psk, opt.psk, &psk_len ) != 0 ) in main()
1791 if( strlen( opt.psk ) != 0 && strlen( opt.psk_identity ) != 0 ) in main()
1793 ret = mbedtls_ssl_conf_psk( &conf, psk, psk_len, in main()
/net-tools-3.4.0/mbedtls-2.4.0/scripts/
Dfootprint.sh112 doit psk configs/config-ccm-psk-tls1_2.h
/net-tools-3.4.0/tinydtls-0.8.2/
Ddtls.c523 int psk; in known_cipher() local
526 psk = is_psk_supported(ctx); in known_cipher()
528 return (psk && is_tls_psk_with_aes_128_ccm_8(code)) || in known_cipher()
618 unsigned char psk[DTLS_PSK_MAX_KEY_LEN]; in calculate_key_block() local
622 handshake->keyx.psk.identity, in calculate_key_block()
623 handshake->keyx.psk.id_length, in calculate_key_block()
624 psk, DTLS_PSK_MAX_KEY_LEN); in calculate_key_block()
630 pre_master_len = dtls_psk_pre_master_secret(psk, len, in calculate_key_block()
634 dtls_debug_hexdump("psk", psk, len); in calculate_key_block()
636 memset(psk, 0, DTLS_PSK_MAX_KEY_LEN); in calculate_key_block()
[all …]
Dconfigure.in66 AC_ARG_WITH(psk, optwith
67 [AS_HELP_STRING([--without-psk],[disable support for TLS_PSK_WITH_AES_128_CCM_8])],
Dcrypto.h135 dtls_handshake_parameters_psk_t psk; member
Dconfigure1310 --without-psk disable support for TLS_PSK_WITH_AES_128_CCM_8
/net-tools-3.4.0/mbedtls-2.4.0/library/
Dssl_tls.c1087 const unsigned char *psk = ssl->conf->psk; in mbedtls_ssl_psk_derive_premaster() local
1091 if( ssl->handshake->psk != NULL ) in mbedtls_ssl_psk_derive_premaster()
1093 psk = ssl->handshake->psk; in mbedtls_ssl_psk_derive_premaster()
1193 memcpy( p, psk, psk_len ); in mbedtls_ssl_psk_derive_premaster()
5823 const unsigned char *psk, size_t psk_len, in mbedtls_ssl_conf_psk() argument
5826 if( psk == NULL || psk_identity == NULL ) in mbedtls_ssl_conf_psk()
5839 if( conf->psk != NULL || conf->psk_identity != NULL ) in mbedtls_ssl_conf_psk()
5841 mbedtls_free( conf->psk ); in mbedtls_ssl_conf_psk()
5843 conf->psk = NULL; in mbedtls_ssl_conf_psk()
5847 if( ( conf->psk = mbedtls_calloc( 1, psk_len ) ) == NULL || in mbedtls_ssl_conf_psk()
[all …]
Dssl_srv.c771 ( ssl->conf->psk == NULL || ssl->conf->psk_identity == NULL || in ssl_ciphersuite_match()
3216 ( ssl->conf->psk == NULL || ssl->conf->psk_identity == NULL ||
Dssl_cli.c2825 if( ssl->conf->psk == NULL || ssl->conf->psk_identity == NULL )
/net-tools-3.4.0/mbedtls-2.4.0/include/mbedtls/
Dssl.h671 unsigned char *psk; /*!< pre-shared key */ member
1642 const unsigned char *psk, size_t psk_len,
1659 const unsigned char *psk, size_t psk_len );
Dssl_internal.h188 unsigned char *psk; /*!< PSK from the callback */ member