Home | History | Annotate | Download | only in softkeymaster

Lines Matching full:sign_params

474 static int sign_dsa(EVP_PKEY* pkey, keymaster_dsa_sign_params_t* sign_params, const uint8_t* data,
476 if (sign_params->digest_type != DIGEST_NONE) {
477 ALOGW("Cannot handle digest type %d", sign_params->digest_type);
506 static int sign_ec(EVP_PKEY* pkey, keymaster_ec_sign_params_t* sign_params, const uint8_t* data,
508 if (sign_params->digest_type != DIGEST_NONE) {
509 ALOGW("Cannot handle digest type %d", sign_params->digest_type);
538 static int sign_rsa(EVP_PKEY* pkey, keymaster_rsa_sign_params_t* sign_params, const uint8_t* data,
540 if (sign_params->digest_type != DIGEST_NONE) {
541 ALOGW("Cannot handle digest type %d", sign_params->digest_type);
543 } else if (sign_params->padding_type != PADDING_NONE) {
544 ALOGW("Cannot handle padding type %d", sign_params->padding_type);
591 const keymaster_dsa_sign_params_t* sign_params =
593 return sign_dsa(pkey.get(), const_cast<keymaster_dsa_sign_params_t*>(sign_params), data,
596 const keymaster_ec_sign_params_t* sign_params =
598 return sign_ec(pkey.get(), const_cast<keymaster_ec_sign_params_t*>(sign_params), data,
601 const keymaster_rsa_sign_params_t* sign_params =
603 return sign_rsa(pkey.get(), const_cast<keymaster_rsa_sign_params_t*>(sign_params), data,
611 static int verify_dsa(EVP_PKEY* pkey, keymaster_dsa_sign_params_t* sign_params,
614 if (sign_params->digest_type != DIGEST_NONE) {
615 ALOGW("Cannot handle digest type %d", sign_params->digest_type);
633 static int verify_ec(EVP_PKEY* pkey, keymaster_ec_sign_params_t* sign_params,
636 if (sign_params->digest_type != DIGEST_NONE) {
637 ALOGW("Cannot handle digest type %d", sign_params->digest_type);
656 static int verify_rsa(EVP_PKEY* pkey, keymaster_rsa_sign_params_t* sign_params,
659 if (sign_params->digest_type != DIGEST_NONE) {
660 ALOGW("Cannot handle digest type %d", sign_params->digest_type);
662 } else if (sign_params->padding_type != PADDING_NONE) {
663 ALOGW("Cannot handle padding type %d", sign_params->padding_type);
712 const keymaster_dsa_sign_params_t* sign_params =
714 return verify_dsa(pkey.get(), const_cast<keymaster_dsa_sign_params_t*>(sign_params),
717 const keymaster_rsa_sign_params_t* sign_params =
719 return verify_rsa(pkey.get(), const_cast<keymaster_rsa_sign_params_t*>(sign_params),
722 const keymaster_ec_sign_params_t* sign_params =
724 return verify_ec(pkey.get(), const_cast<keymaster_ec_sign_params_t*>(sign_params),