You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Frank Ursel <li...@gmx.net> on 2012/03/07 18:04:00 UTC
knowing algorithms and key lengths from xml
All,
I'm trying to use Santuario C++ for the first time and encrypting or
signing a document is working just fine using the c programming
examples.
But on decryption/verifying: how do I know the signature or encryption
algorithm or digest algorithm or keywrap algorithm and key lengths and
that kind used in a XML document so I can ask the user for a password or
public key and so on only if this information is needed? Is there a
Santuarion' way to get this information?
Thanks
Frank
Re: knowing algorithms and key lengths from xml
Posted by "Cantor, Scott" <ca...@osu.edu>.
On 3/7/12 12:04 PM, "Frank Ursel" <li...@gmx.net> wrote:
>But on decryption/verifying: how do I know the signature or encryption
>algorithm or digest algorithm or keywrap algorithm and key lengths and
>that kind used in a XML document so I can ask the user for a password or
>public key and so on only if this information is needed? Is there a
>Santuarion' way to get this information?
Some of the newer APIs include calls to access the algorithms and other
information such as key sizes. They are not consistently there, they were
added only when the underlying implementations allowed for it. I think
there are APIs to get key sizes for RSA keys, but possibly not others, and
there should be calls now to access the algorithm constants used in
references and the signature.
-- Scott