home *** CD-ROM | disk | FTP | other *** search
/ ftp.rsa.com / 2014.05.ftp.rsa.com.tar / ftp.rsa.com / pub / pkcs / pkcs-5v2 / pkcs-5v2-0a1d2.xsd < prev    next >
Extensible Markup Language  |  2014-05-02  |  4KB  |  106 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Schema file for PKCS #5 v2.0 -->
  3. <!-- $Revision: 1.3 $ $Date: 2006/05/17 11:22:52 $ -->
  4.  
  5. <!-- Copyright (c) RSA Security Inc. 2006. All rights reserved. -->
  6. <!-- License to copy and use this schema file is granted provided that
  7.      it is identified as "RSA Security Inc. Public Key Cryptography
  8.      Standard #5 (PKCS #5): Password-based Encryption Version 2.0"
  9.      in all material mentioning or referencing it.
  10.  
  11.      RSA Security Inc. makes no representations concerning either the
  12.      merchantability of this schema or the suitability of this schema
  13.      for any particular purpose. It is provided "as is" without
  14.      express or implied warranty of any kind.
  15. -->
  16.  
  17. <xs:schema
  18.   targetNamespace="http://www.rsasecurity.com/rsalabs/pkcs/schemas/pkcs-5v2-0#"
  19.   xmlns="http://www.rsasecurity.com/rsalabs/pkcs/schemas/pkcs-5v2-0#"
  20.   xmlns:xs="http://www.w3.org/2001/XMLSchema"
  21.   xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
  22.   xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
  23.  
  24.   <xs:import namespace="http://www.w3.org/2000/09/xmldsig#"
  25.    schemaLocation="http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd"/>
  26.  
  27.   <xs:import namespace="http://www.w3.org/2001/04/xmlenc#"
  28.    schemaLocation="http://www.w3.org/TR/2002/REC-xmlenc-core-20021210/xenc-schema.xsd"/>
  29.  
  30. <!-- Basic types -->
  31. <xs:complexType name="AlgorithmIdentifierType">
  32.   <xs:sequence>
  33.     <xs:element name="Parameters" minOccurs="0"/>
  34.   </xs:sequence>
  35.   <xs:attribute name="Algorithm"/>
  36. </xs:complexType>
  37.  
  38. <xs:complexType name="SaltAlgorithmIdentifierType">
  39.   <xs:complexContent>
  40.     <xs:restriction base="AlgorithmIdentifierType">
  41.       <xs:attribute name="Algorithm" type="xs:anyURI"
  42.       default="http://www.w3.org/2000/09/xmldsig#hmac-sha1"/>
  43.     </xs:restriction>
  44.   </xs:complexContent>
  45. </xs:complexType>
  46.  
  47. <xs:complexType name="PRFAlgorithmIdentifierType">
  48.   <xs:complexContent>
  49.     <xs:restriction base="AlgorithmIdentifierType">
  50.       <xs:attribute name="Algorithm" type="xs:anyURI"
  51.       default="http://www.w3.org/2000/09/xmldsig#hmac-sha1"/>
  52.     </xs:restriction>
  53.   </xs:complexContent>
  54. </xs:complexType>
  55.  
  56. <xs:complexType name="PBEParameterType">
  57.   <xs:sequence>
  58.     <xs:element name="Salt">
  59.       <xs:simpleType>
  60.         <xs:restriction base="xs:base64Binary">
  61.           <xs:length value="8"/>
  62.         </xs:restriction>
  63.       </xs:simpleType>
  64.     </xs:element>
  65.     <xs:element name="IterationCount" type="xs:nonNegativeInteger"/>
  66.   </xs:sequence>
  67. </xs:complexType>
  68.  
  69. <xs:complexType name="PBKDF2ParameterType">
  70.   <xs:sequence>
  71.     <xs:element name="Salt">
  72.       <xs:complexType>
  73.         <xs:choice>
  74.           <xs:element name="Specified" type="xs:base64Binary"/>
  75.           <xs:element name="OtherSource" type="SaltAlgorithmIdentifierType"/>
  76.         </xs:choice>
  77.       </xs:complexType>
  78.     </xs:element>
  79.     <xs:element name="IterationCount" type="xs:positiveInteger"/>
  80.     <xs:element name="KeyLength" type="xs:positiveInteger"/>
  81.     <xs:element name="PRF" type="PRFAlgorithmIdentifierType"/>
  82.   </xs:sequence>
  83. </xs:complexType>
  84.  
  85. <xs:complexType name="PBES2ParameterType">
  86.   <xs:sequence>
  87.     <xs:element name="KeyDerivationFunc" type="AlgorithmIdentifierType"/>
  88.     <xs:element name="EncryptionScheme" type="xenc:EncryptionMethodType"/>
  89.   </xs:sequence>
  90. </xs:complexType>
  91.  
  92. <xs:complexType name="PBMAC1ParameterType">
  93.   <xs:sequence>
  94.     <xs:element name="KeyDerivationFunc" type="AlgorithmIdentifierType"/>
  95.     <xs:element name="MessageAuthScheme" type="ds:SignatureMethodType"/>
  96.   </xs:sequence>
  97. </xs:complexType>
  98.  
  99. <!-- Exports -->
  100. <xs:element name="PBEParameter"  type="PBEParameterType"/>
  101. <xs:element name="PBKDF2-params" type="PBKDF2ParameterType"/>
  102. <xs:element name="PBES2-params"  type="PBES2ParameterType"/>
  103. <xs:element name="PBMAC1-params" type="PBMAC1ParameterType"/>
  104.  
  105. </xs:schema>
  106.