[xmlsec] [PATCH] Load keys from memory and question about keys
Joachim Bauch
bauch@struktur.de
Fri, 08 Aug 2003 14:45:06 +0200
------------pooJrTWiul1ln1WNQCVp6d
Content-Type: text/plain; charset=utf-8; format=flowed
Hi Aleksey,
here is a patch that allows loading of keys from memory.
Now my question:
Is there a way to determine the xmlSecKeyDataId from the "Algorithm" attribute
in an encrypted XML file?
Assuming I have a node that looks like this:
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/>
how can I get the xmlSecKeyDataId for DES3 from it?
I already tried using the "xmlSecKeyDataIdListFindByHref" function but that
always returnes NULL.
On the other hand, I can call "xmlSecTransformIdListFindByHref" on it and receive
the "xmlSecTransformDes3CbcId" constant.
Any hints?
Joachim
--
Joachim Bauch
struktur AG Fon.: +49 (0)711 896656 69
Junghansstr. 5 Fax.: +49 (0)711 896656 10
D-70469 Stuttgart eMail: bauch@struktur.de solutions for
Germany Web: http://www.struktur.de digital business
Download icoya OpenContent 1.3 for FREE! visit http://www.icoya.de/iOC4free <-
------------pooJrTWiul1ln1WNQCVp6d
Content-Disposition: attachment;
filename="load_key_from_memory.diff.gz"
Content-Type: application/x-gzip;
name="load_key_from_memory.diff.gz"
Content-Transfer-Encoding: Base64
H4sICI6ZMz8AA2xvYWRfa2V5X2Zyb21fbWVtb3J5LmRpZmYAzVhbT9tIFH52
pPyHszxUJolzbUKUbCWyNHSzDVDFrVRptUKuMwYLZ0zHDiW74r/v3GyPb0mA
hW4eGNvzncuc+zDDS3Q/Ahfb3nqJWvcrL0B26wZtguZ1tfLu+b9qZXFiguN6
aAQt+y5oXWF/FQsqlNu4q1YIComL7lx8BYQugetj6DR7g2pl6ToOGGswCHuH
SFXDMIpPoXU78Mfag2673YN2b9TpjnpHYLTpTxMc6/V6CekQJusrQUnJ3rYp
saCsVo6Pwej0h40h1NnS6cHxcbUCmviB7eMgBMrt5NoiUMPWCjWUbbphIvsj
2izQ908hYaegT4djCqH6fD2bm9OTy+nXTxeLzw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