derick          Sun Jan 18 14:25:40 2004 EDT

  Modified files:              
    /phpdoc/en/reference/mcrypt/functions       mcrypt-create-iv.xml 
                                                mcrypt-module-open.xml 
  Log:
  - Some more fixes
  
  
Index: phpdoc/en/reference/mcrypt/functions/mcrypt-create-iv.xml
diff -u phpdoc/en/reference/mcrypt/functions/mcrypt-create-iv.xml:1.5 
phpdoc/en/reference/mcrypt/functions/mcrypt-create-iv.xml:1.6
--- phpdoc/en/reference/mcrypt/functions/mcrypt-create-iv.xml:1.5       Mon Dec 15 
11:52:01 2003
+++ phpdoc/en/reference/mcrypt/functions/mcrypt-create-iv.xml   Sun Jan 18 14:25:40 
2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
 <!-- splitted from ./en/functions/mcrypt.xml, last change in rev 1.2 -->
   <refentry id="function.mcrypt-create-iv">
    <refnamediv>
@@ -28,7 +28,8 @@
      MCRYPT_DEV_RANDOM (read data from /dev/random) and
      MCRYPT_DEV_URANDOM (read data from /dev/urandom). If you use
      MCRYPT_RAND, make sure to call srand() before to initialize the
-     random number generator.
+     random number generator. MCRYPT_RAND is the only one supported on Windows
+     because Windows (of course) doesn't have /dev/random or /dev/urandom.
     </para>
     <para>
      <example>
Index: phpdoc/en/reference/mcrypt/functions/mcrypt-module-open.xml
diff -u phpdoc/en/reference/mcrypt/functions/mcrypt-module-open.xml:1.8 
phpdoc/en/reference/mcrypt/functions/mcrypt-module-open.xml:1.9
--- phpdoc/en/reference/mcrypt/functions/mcrypt-module-open.xml:1.8     Thu Dec 18 
12:45:18 2003
+++ phpdoc/en/reference/mcrypt/functions/mcrypt-module-open.xml Sun Jan 18 14:25:40 
2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
 <!-- splitted from ./en/functions/mcrypt.xml, last change in rev 1.7 -->
   <refentry id="function.mcrypt-module-open">
    <refnamediv>
@@ -51,7 +51,7 @@
      The first line in the example above will try to open the DES cipher from
      the default directory and the EBC mode from the directory
      <filename>/usr/lib/mcrypt-modes</filename>. The second example uses
-     strings as name for the cipher an dmode, this only works when the
+     strings as name for the cipher and mode, this only works when the
      extension is linked against libmcrypt 2.4.x or 2.5.x.
     </para>
     <para>
@@ -63,7 +63,8 @@
     /* Open the cipher */
     $td = mcrypt_module_open('rijndael-256', '', 'ofb', '');
 
-    /* Create the IV and determine the keysize length */
+    /* Create the IV and determine the keysize length, used MCRYPT_RAND
+     * on Windows instead */
     $iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($td), MCRYPT_DEV_RANDOM);
     $ks = mcrypt_enc_get_key_size($td);
 

Reply via email to