|
Hi Philip,
xenc:EncryptionMethod allows <any> parameters,
and the usage is xenc compliant. The usage is similar to PKCS#5 XML. Please
check this example from PKCS#5 page 7: ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-5v2/pkcs-5v2-0a1.pdf
<xenc:EncryptedData xmlns:pkcs-5=http://www.rsasecurity.com/rsalabs/pkcs/schemas/pkcs-5v2-0# xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:ds=http://www.w3.org/2000/09/xmldsig# xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"> <xenc:EncryptionMethod Algorithm="http://www.rsasecurity.com/rsalabs/pkcs/schemas/pkcs-5#pbes2"> <pkcs-5:PBES2-params> ... In PSKC, we make the KDF parameters out of the encryption method into the common EncryptionKey element. I consider pkcs-5#pbes2 is an encryption algorithm that is clearer. If we just use aes128-cbc in the encryption method, we don't have a good place to indicate pbes2. If we miss pbes2 flag, it isn't fully compliant with PKCS#5, I think. - Ming
|