Lines Matching refs:psk
68 unsigned char *psk; member
695 if (ctx->psk == NULL || ctx->psklen == 0 || ctx->pskid == NULL) { in hpke_do_middle()
705 pskidlen = (ctx->psk == NULL ? 0 : strlen(ctx->pskid)); 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()
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()
901 if (ctx->psk == NULL) in OSSL_HPKE_CTX_set1_psk()
907 OPENSSL_clear_free(ctx->psk, ctx->psklen); in OSSL_HPKE_CTX_set1_psk()
908 ctx->psk = NULL; in OSSL_HPKE_CTX_set1_psk()