Jump to content

XML Encryption

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Luckas-bot (talk | contribs) at 11:55, 19 July 2010 (robot Adding: zh:XML Encryption). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

XML Encryption, also known as XML-Enc, is a specification, governed by a W3C recommendation, that defines how to encrypt the contents of an XML element.

Although XML Encryption can be used to encrypt any kind of data, it is nonetheless known as "XML Encryption" because an XML element (either an EncryptedData or EncryptedKey element) contains or refers to the cipher text, keying information, and algorithms.

Both XML Signature and XML Encryption use the KeyInfo element, which appears as the child of a SignedInfo, EncryptedData, or EncryptedKey element and provides information to a recipient about what keying material to use in validating a signature or decrypting encrypted data.

The KeyInfo element is optional: it can be attached in the message, or be delivered through a secure channel.