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-0a1.xsd < prev    next >
Extensible Markup Language  |  2014-05-02  |  3KB  |  84 lines

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