Lines Matching refs:p1
449 static int pkey_rsa_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) in pkey_rsa_ctrl() argument
456 if ((p1 >= RSA_PKCS1_PADDING) && (p1 <= RSA_PKCS1_PSS_PADDING)) { in pkey_rsa_ctrl()
457 if (!check_padding_md(rctx->md, p1)) in pkey_rsa_ctrl()
459 if (p1 == RSA_PKCS1_PSS_PADDING) { in pkey_rsa_ctrl()
468 if (p1 == RSA_PKCS1_OAEP_PADDING) { in pkey_rsa_ctrl()
474 rctx->pad_mode = p1; in pkey_rsa_ctrl()
494 if (p1 < RSA_PSS_SALTLEN_MAX) in pkey_rsa_ctrl()
497 if (p1 == RSA_PSS_SALTLEN_AUTO in pkey_rsa_ctrl()
507 if ((p1 == RSA_PSS_SALTLEN_DIGEST in pkey_rsa_ctrl()
509 || (p1 >= 0 && p1 < rctx->min_saltlen)) { in pkey_rsa_ctrl()
514 rctx->saltlen = p1; in pkey_rsa_ctrl()
519 if (p1 < RSA_MIN_MODULUS_BITS) { in pkey_rsa_ctrl()
523 rctx->nbits = p1; in pkey_rsa_ctrl()
536 if (p1 < RSA_DEFAULT_PRIME_NUM || p1 > RSA_MAX_PRIME_NUM) { in pkey_rsa_ctrl()
540 rctx->primes = p1; in pkey_rsa_ctrl()
600 if (p2 && p1 > 0) { in pkey_rsa_ctrl()
602 rctx->oaep_labellen = p1; in pkey_rsa_ctrl()
626 rctx->implicit_rejection = p1; in pkey_rsa_ctrl()