Searched refs:psklen (Results 1 – 10 of 10) sorted by relevance
/openssl/crypto/hpke/ |
H A D | hpke.c | 69 size_t psklen; member 741 ctx->psk, ctx->psklen) != 1) { in hpke_do_middle() 857 OPENSSL_clear_free(ctx->psk, ctx->psklen); in OSSL_HPKE_CTX_free() 871 const unsigned char *psk, size_t psklen) in OSSL_HPKE_CTX_set1_psk() argument 877 if (psklen > OSSL_HPKE_MAX_PARMLEN) { in OSSL_HPKE_CTX_set1_psk() 881 if (psklen < OSSL_HPKE_MIN_PSKLEN) { in OSSL_HPKE_CTX_set1_psk() 899 OPENSSL_clear_free(ctx->psk, ctx->psklen); in OSSL_HPKE_CTX_set1_psk() 900 ctx->psk = OPENSSL_memdup(psk, psklen); in OSSL_HPKE_CTX_set1_psk() 903 ctx->psklen = psklen; in OSSL_HPKE_CTX_set1_psk() 907 OPENSSL_clear_free(ctx->psk, ctx->psklen); in OSSL_HPKE_CTX_set1_psk() [all …]
|
/openssl/test/ |
H A D | hpke_test.c | 45 size_t psklen; member 149 base->psk, base->psklen))) in do_testhpke() 180 && base->psklen > 0)) in do_testhpke() 183 base->psk, base->psklen))) in do_testhpke() 922 size_t psklen = 32; in test_hpke_modes_suites() local 955 memset(lpsk, 'P', psklen); in test_hpke_modes_suites() 957 memset(lpskid, 'I', psklen - 1); in test_hpke_modes_suites() 958 lpskid[psklen - 1] = '\0'; in test_hpke_modes_suites() 960 psklen = 0; in test_hpke_modes_suites() 1015 pskp, psklen))) in test_hpke_modes_suites() [all …]
|
H A D | sslapitest.c | 3294 unsigned int psklen = 0; in psk_client_cb() local 3311 psklen = SSL_SESSION_get_master_key(clientpsk, psk, max_psk_len); in psk_client_cb() 3314 return psklen; in psk_client_cb() 3348 unsigned int psklen = 0; in psk_server_cb() local 3367 psklen = SSL_SESSION_get_master_key(serverpsk, psk, max_psk_len); in psk_server_cb() 3369 return psklen; in psk_server_cb()
|
/openssl/include/openssl/ |
H A D | hpke.h | 146 const unsigned char *psk, size_t psklen);
|
/openssl/ssl/statem/ |
H A D | statem_clnt.c | 2999 size_t psklen = 0; in tls_construct_cke_psk_preamble() local 3008 psklen = s->psk_client_callback(SSL_CONNECTION_GET_USER_SSL(s), in tls_construct_cke_psk_preamble() 3013 if (psklen > PSK_MAX_PSK_LEN) { in tls_construct_cke_psk_preamble() 3015 psklen = PSK_MAX_PSK_LEN; /* Avoid overrunning the array on cleanse */ in tls_construct_cke_psk_preamble() 3017 } else if (psklen == 0) { in tls_construct_cke_psk_preamble() 3028 tmppsk = OPENSSL_memdup(psk, psklen); in tls_construct_cke_psk_preamble() 3037 s->s3.tmp.psklen = psklen; in tls_construct_cke_psk_preamble() 3051 OPENSSL_cleanse(psk, psklen); in tls_construct_cke_psk_preamble() 3053 OPENSSL_clear_free(tmppsk, psklen); in tls_construct_cke_psk_preamble() 3571 OPENSSL_clear_free(s->s3.tmp.psk, s->s3.tmp.psklen); in tls_construct_client_key_exchange() [all …]
|
H A D | extensions_clnt.c | 804 size_t psklen = 0; in tls_construct_ctos_early_data() local 807 psklen = s->psk_client_callback(ussl, NULL, in tls_construct_ctos_early_data() 811 if (psklen > PSK_MAX_PSK_LEN) { in tls_construct_ctos_early_data() 814 } else if (psklen > 0) { in tls_construct_ctos_early_data() 838 || !SSL_SESSION_set1_master_key(psksess, psk, psklen) in tls_construct_ctos_early_data() 842 OPENSSL_cleanse(psk, psklen); in tls_construct_ctos_early_data() 845 OPENSSL_cleanse(psk, psklen); in tls_construct_ctos_early_data()
|
H A D | statem_srvr.c | 2903 size_t psklen; in tls_process_cke_psk_preamble() local 2924 psklen = s->psk_server_callback(SSL_CONNECTION_GET_USER_SSL(s), in tls_process_cke_psk_preamble() 2928 if (psklen > PSK_MAX_PSK_LEN) { in tls_process_cke_psk_preamble() 2931 } else if (psklen == 0) { in tls_process_cke_psk_preamble() 2940 s->s3.tmp.psk = OPENSSL_memdup(psk, psklen); in tls_process_cke_psk_preamble() 2941 OPENSSL_cleanse(psk, psklen); in tls_process_cke_psk_preamble() 2944 s->s3.tmp.psklen = 0; in tls_process_cke_psk_preamble() 2949 s->s3.tmp.psklen = psklen; in tls_process_cke_psk_preamble() 3445 OPENSSL_clear_free(s->s3.tmp.psk, s->s3.tmp.psklen); in tls_process_client_key_exchange() 3447 s->s3.tmp.psklen = 0; in tls_process_client_key_exchange()
|
/openssl/ssl/ |
H A D | s3_lib.c | 4740 size_t psklen = s->s3.tmp.psklen; in ssl_generate_master_secret() local 4747 pmslen = psklen; in ssl_generate_master_secret() 4749 pskpmslen = 4 + pmslen + psklen; in ssl_generate_master_secret() 4760 s2n(psklen, t); in ssl_generate_master_secret() 4761 memcpy(t, s->s3.tmp.psk, psklen); in ssl_generate_master_secret() 4763 OPENSSL_clear_free(s->s3.tmp.psk, psklen); in ssl_generate_master_secret() 4765 s->s3.tmp.psklen = 0; in ssl_generate_master_secret()
|
H A D | ssl_local.h | 1346 size_t psklen; member
|
/openssl/doc/man3/ |
H A D | OSSL_HPKE_CTX_new.pod | 62 const unsigned char *psk, size_t psklen); 219 implementation we apply a limit of 66 octets for the I<ikmlen>, I<psklen>, and 227 pre-shared key, passed in I<psklen>. 373 I<psk> of size I<psklen> into the I<ctx>. If required this must be called
|
Completed in 97 milliseconds