ふらっとC#,C♯,C#(初心者用) Part38at TECH
ふらっとC#,C♯,C#(初心者用) Part38 - 暇つぶし2ch87:83
09/03/02 22:43:53
// Create a new KeyInfo element.
edElement.KeyInfo = new KeyInfo();
               
// Add the encrypted key to the
// EncryptedData object.
edElement.KeyInfo.AddClause(new KeyInfoEncryptedKey(ek));

この順序にしたら、出力が
<root>
  <EncryptedData Id="EncryptedElement1"  ほにゃらら>
    <EncryptionMethod Algorithm="URLリンク(www.w3.org)" />
    <KeyInfo ほにゃらら>
      <EncryptedKey ほにゃらら>
        <EncryptionMethod Algorithm="URLリンク(www.w3.org)" />
        <KeyInfo ほにゃらら>  
          <KeyName>rsaKey</KeyName>
        </KeyInfo>
        <CipherData><CipherValue>ほにゃらら</CipherValue></CipherData>
        <ReferenceList>
          <DataReference URI="#EncryptedElement1" />
        </ReferenceList>
      </EncryptedKey>
    </KeyInfo>
    <CipherData>
      <CipherValue>ほにゃらら</CipherValue>  
    </CipherData>
  </EncryptedData>
</root>
ってなった。これで、キーが埋め込まれたっぽくない?


次ページ
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch