Lines Matching defs:mode
46 struct lws_context *context, enum enum_genrsa_mode mode,
55 ctx->mode = mode;
57 if (mode >= LGRSAM_COUNT)
61 mbedtls_rsa_init(ctx->ctx, mode_map[mode], 0);
64 mbedtls_rsa_set_padding(ctx->ctx, mode_map[mode], 0);
67 ctx->ctx->MBEDTLS_PRIVATE(padding) = mode_map[mode];
131 enum enum_genrsa_mode mode, struct lws_gencrypto_keyelem *el,
142 ctx->mode = mode;
144 if (mode >= LGRSAM_COUNT)
148 mbedtls_rsa_init(ctx->ctx, mode_map[mode], 0);
151 mbedtls_rsa_set_padding(ctx->ctx, mode_map[mode], 0);
210 switch(ctx->mode) {
254 switch(ctx->mode) {
295 switch(ctx->mode) {
336 switch(ctx->mode) {
381 switch(ctx->mode) {
406 lwsl_notice("%s: (mode %d) -0x%x\n", __func__, ctx->mode, -n);
435 switch(ctx->mode) {