Lines Matching refs:psklen
69 size_t psklen; member
695 if (ctx->psk == NULL || ctx->psklen == 0 || ctx->pskid == NULL) { in hpke_do_middle()
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
873 if (ctx == NULL || pskid == NULL || psk == NULL || psklen == 0) { in OSSL_HPKE_CTX_set1_psk()
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()
909 ctx->psklen = 0; in OSSL_HPKE_CTX_set1_psk()