Lines Matching refs:mode
509 int mode, in mbedtls_rsa_rsaes_oaep_encrypt() argument
522 if( mode == MBEDTLS_RSA_PRIVATE && ctx->padding != MBEDTLS_RSA_PKCS_V21 ) in mbedtls_rsa_rsaes_oaep_encrypt()
573 return( ( mode == MBEDTLS_RSA_PUBLIC ) in mbedtls_rsa_rsaes_oaep_encrypt()
586 int mode, size_t ilen, in mbedtls_rsa_rsaes_pkcs1_v15_encrypt() argument
594 if( mode == MBEDTLS_RSA_PRIVATE && ctx->padding != MBEDTLS_RSA_PKCS_V15 ) in mbedtls_rsa_rsaes_pkcs1_v15_encrypt()
610 if( mode == MBEDTLS_RSA_PUBLIC ) in mbedtls_rsa_rsaes_pkcs1_v15_encrypt()
640 return( ( mode == MBEDTLS_RSA_PUBLIC ) in mbedtls_rsa_rsaes_pkcs1_v15_encrypt()
652 int mode, size_t ilen, in mbedtls_rsa_pkcs1_encrypt() argument
660 return mbedtls_rsa_rsaes_pkcs1_v15_encrypt( ctx, f_rng, p_rng, mode, ilen, in mbedtls_rsa_pkcs1_encrypt()
666 return mbedtls_rsa_rsaes_oaep_encrypt( ctx, f_rng, p_rng, mode, NULL, 0, in mbedtls_rsa_pkcs1_encrypt()
682 int mode, in mbedtls_rsa_rsaes_oaep_decrypt() argument
701 if( mode == MBEDTLS_RSA_PRIVATE && ctx->padding != MBEDTLS_RSA_PKCS_V21 ) in mbedtls_rsa_rsaes_oaep_decrypt()
722 ret = ( mode == MBEDTLS_RSA_PUBLIC ) in mbedtls_rsa_rsaes_oaep_decrypt()
806 int mode, size_t *olen, in mbedtls_rsa_rsaes_pkcs1_v15_decrypt() argument
816 if( mode == MBEDTLS_RSA_PRIVATE && ctx->padding != MBEDTLS_RSA_PKCS_V15 ) in mbedtls_rsa_rsaes_pkcs1_v15_decrypt()
824 ret = ( mode == MBEDTLS_RSA_PUBLIC ) in mbedtls_rsa_rsaes_pkcs1_v15_decrypt()
840 if( mode == MBEDTLS_RSA_PRIVATE ) in mbedtls_rsa_rsaes_pkcs1_v15_decrypt()
892 int mode, size_t *olen, in mbedtls_rsa_pkcs1_decrypt() argument
901 return mbedtls_rsa_rsaes_pkcs1_v15_decrypt( ctx, f_rng, p_rng, mode, olen, in mbedtls_rsa_pkcs1_decrypt()
907 return mbedtls_rsa_rsaes_oaep_decrypt( ctx, f_rng, p_rng, mode, NULL, 0, in mbedtls_rsa_pkcs1_decrypt()
924 int mode, in mbedtls_rsa_rsassa_pss_sign() argument
939 if( mode == MBEDTLS_RSA_PRIVATE && ctx->padding != MBEDTLS_RSA_PKCS_V21 ) in mbedtls_rsa_rsassa_pss_sign()
1009 return( ( mode == MBEDTLS_RSA_PUBLIC ) in mbedtls_rsa_rsassa_pss_sign()
1025 int mode, in mbedtls_rsa_rsassa_pkcs1_v15_sign() argument
1040 if( mode == MBEDTLS_RSA_PRIVATE && ctx->padding != MBEDTLS_RSA_PKCS_V15 ) in mbedtls_rsa_rsassa_pkcs1_v15_sign()
1101 if( mode == MBEDTLS_RSA_PUBLIC ) in mbedtls_rsa_rsassa_pkcs1_v15_sign()
1149 int mode, in mbedtls_rsa_pkcs1_sign() argument
1159 return mbedtls_rsa_rsassa_pkcs1_v15_sign( ctx, f_rng, p_rng, mode, md_alg, in mbedtls_rsa_pkcs1_sign()
1165 return mbedtls_rsa_rsassa_pss_sign( ctx, f_rng, p_rng, mode, md_alg, in mbedtls_rsa_pkcs1_sign()
1181 int mode, in mbedtls_rsa_rsassa_pss_verify_ext() argument
1200 if( mode == MBEDTLS_RSA_PRIVATE && ctx->padding != MBEDTLS_RSA_PKCS_V21 ) in mbedtls_rsa_rsassa_pss_verify_ext()
1208 ret = ( mode == MBEDTLS_RSA_PUBLIC ) in mbedtls_rsa_rsassa_pss_verify_ext()
1307 int mode, in mbedtls_rsa_rsassa_pss_verify() argument
1317 return( mbedtls_rsa_rsassa_pss_verify_ext( ctx, f_rng, p_rng, mode, in mbedtls_rsa_rsassa_pss_verify()
1332 int mode, in mbedtls_rsa_rsassa_pkcs1_v15_verify() argument
1346 if( mode == MBEDTLS_RSA_PRIVATE && ctx->padding != MBEDTLS_RSA_PKCS_V15 ) in mbedtls_rsa_rsassa_pkcs1_v15_verify()
1354 ret = ( mode == MBEDTLS_RSA_PUBLIC ) in mbedtls_rsa_rsassa_pkcs1_v15_verify()
1450 int mode, in mbedtls_rsa_pkcs1_verify() argument
1460 return mbedtls_rsa_rsassa_pkcs1_v15_verify( ctx, f_rng, p_rng, mode, md_alg, in mbedtls_rsa_pkcs1_verify()
1466 return mbedtls_rsa_rsassa_pss_verify( ctx, f_rng, p_rng, mode, md_alg, in mbedtls_rsa_pkcs1_verify()