On 3/7/12 12:04 PM, "Frank Ursel" <[email protected]> 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
