Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8297995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:36:29+00:00 2026-06-08T15:36:29+00:00

I have a Problem with checking an XMLSignature using BouncyCastle for verifying Sigantures that

  • 0

I have a Problem with checking an XMLSignature using BouncyCastle for verifying Sigantures that use ECDSA.

Here are the relevant lines of code:

BouncyCastleProvider provider = new BouncyCastleProvider();
Security.addProvider(provider);   
//some unrelated code
XMLSignatureFactory factory = XMLSignatureFactory.getInstance("DOM", provider);

At the last line, the following Exception in thrown:

javax.xml.crypto.NoSuchMechanismException: java.security.NoSuchAlgorithmException: no such algorithm: DOM for provider SC

If I change the line to

XMLSignatureFactory factory = XMLSignatureFactory.getInstance("DOM");

I get

javax.xml.crypto.MarshalException: unsupported SignatureMethod algorithm: http://www.w3.org/2007/05/xmldsig-more#ecdsa-ripemd160

Anyone got any Ideas what causes this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T15:36:30+00:00Added an answer on June 8, 2026 at 3:36 pm

    In your first error, you can read in the error description that “no such algorithm: DOM for provider SC”. That is weird, because it says “provider SC” (Sun PC/SC provider) and not “provider BC” (BouncyCastle Security Provider) as it should. It looks like you code (internally) is not using Bouncycastle as you want. You should find out why this is happening. It could be something regarding BC library and classpath (if you are working with an application server) or the providers order configuration.

    Second error. You change your approach getting XMLSignatureFactory. This one is better, because if you do not specify the provider, because:

    This method uses the standard JCA provider lookup mechanism to locate
    and instantiate an XMLSignatureFactory implementation of the desired
    mechanism type. It traverses the list of registered security
    Providers, starting with the most preferred Provider. A new
    XMLSignatureFactory object from the first Provider that supports the
    specified mechanism is returned.

    But now, algorithm is not there. so, why? Here, I would say that BC is not being used. It is there? Review your classpath.

    It may help to list all provider available:

    for (Provider p : Security.getProviders()) {
    
        log.debug(p.getName());
        log.debug(p.getInfo());
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem while checking a hashtable value. In the code below I
I have a problem with my JDBC code. This is the relevant code: /**
I have a problem checking a select that look like this: <select name=recipe[category]> <option
I have a little problem with checking my input. I know that there a
I have a problem which describes here app crashes after checking network reachability in
I have problem with function checking collision. No matter what I do it throws
My problem involves checking if I have a valid database connection before reading from
I have problem with my query on C, I’m using the oci8 driver. This
Again I have problem with checking whether DataReader object has data or not? Dim
I have a problem here... After a button is pressed I want a loop

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.