You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by bl...@apache.org on 2003/10/03 11:54:20 UTC
cvs commit: xml-security/c/src/framework XSECAlgorithmHandler.hpp
blautenb 2003/10/03 02:54:20
Modified: c/src/framework XSECAlgorithmHandler.hpp
Log:
Updates to handle creating an EncryptedKey (AES KeyWrap)
Revision Changes Path
1.2 +24 -2 xml-security/c/src/framework/XSECAlgorithmHandler.hpp
Index: XSECAlgorithmHandler.hpp
===================================================================
RCS file: /home/cvs/xml-security/c/src/framework/XSECAlgorithmHandler.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- XSECAlgorithmHandler.hpp 15 Sep 2003 11:48:11 -0000 1.1
+++ XSECAlgorithmHandler.hpp 3 Oct 2003 09:54:20 -0000 1.2
@@ -179,14 +179,36 @@
* @param encryptionMethod Information about the algorithm to use
* @param key The key that has been determined via a resolver or
* that has been provided by the calling application.
+ * @returns The number of plain bytes placed in the safeBuffer
*/
- virtual bool decryptToSafeBuffer(
+ virtual unsigned int decryptToSafeBuffer(
TXFMChain * cipherText,
XENCEncryptionMethod * encryptionMethod,
XSECCryptoKey * key,
XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * doc,
safeBuffer & result
+ ) = 0;
+
+ //@}
+
+ /** @name Key handling */
+ //@{
+
+ /**
+ * \brief Create a key that will support a given URI
+ *
+ * Given a URI string and a raw bit string, create the associated key
+ *
+ * @param uri URI string to match key to
+ * @param keyBuffer Raw bits to set in the key
+ * @param keyLen Number of bytes in the key
+ */
+
+ virtual XSECCryptoKey * createKeyForURI(
+ const XMLCh * uri,
+ unsigned char * keyBuffer,
+ unsigned int keyLen
) = 0;
//@}