From f06c0e12d8eb1e12c38e363229f536ea23566d0e Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Wed, 26 Dec 2007 13:30:44 +0000 Subject: [PATCH] MFB: Upgrade to the new-reference-structure - (Created missing setup sections in setup.xml, if any) - Moved the intro to book.xml - Changed the intro ID from .intro to intro. - Moved the constants entity to book.xml - Changed constants.xml to be an appendix - Moved mhash.examples into its own chapter (examples.xml) - Moved the requirements, configuration and resources sections to setup.xml - Moved the configure entity to setup.xml git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@248999 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mhash/book.xml | 60 +++++++++++++++++++++++ reference/mhash/constants.xml | 6 +-- reference/mhash/examples.xml | 53 ++++++++++++++++++++ reference/mhash/reference.xml | 91 +++-------------------------------- reference/mhash/setup.xml | 58 ++++++++++++++++++++++ 5 files changed, 180 insertions(+), 88 deletions(-) create mode 100644 reference/mhash/book.xml create mode 100644 reference/mhash/examples.xml create mode 100644 reference/mhash/setup.xml diff --git a/reference/mhash/book.xml b/reference/mhash/book.xml new file mode 100644 index 0000000000..bf2a2fa409 --- /dev/null +++ b/reference/mhash/book.xml @@ -0,0 +1,60 @@ + + + + + + + Mhash + + + + &reftitle.intro; + + These functions are intended to work with mhash. Mhash can be used to create checksums, + message digests, message authentication codes, and more. + + + This is an interface to the mhash library. mhash supports a wide + variety of hash algorithms such as MD5, SHA1, GOST, and many + others. For a complete list of supported hashes, refer to the + documentation of mhash. The general rule is that you can access + the hash algorithm from PHP with MHASH_HASHNAME. For example, to + access TIGER you use the PHP constant MHASH_TIGER. + + + + This extension is obsoleted by Hash. + + + + + + &reference.mhash.setup; + &reference.mhash.constants; + &reference.mhash.examples; + &reference.mhash.reference; + + + + + diff --git a/reference/mhash/constants.xml b/reference/mhash/constants.xml index ab5c5bcaa2..8d2e88e996 100644 --- a/reference/mhash/constants.xml +++ b/reference/mhash/constants.xml @@ -1,6 +1,6 @@ - -
+ + &reftitle.constants; &extension.constants; @@ -90,7 +90,7 @@ -
+ + + + &reftitle.examples; + + + Compute the MD5 digest and hmac and print it out as hex + +\n"; +$hash = mhash(MHASH_MD5, $input, "Jefe"); +echo "The hmac is " . bin2hex($hash) . "
\n"; +?> +]]> +
+ + This will produce: + + + + +
+
+
+ + + diff --git a/reference/mhash/reference.xml b/reference/mhash/reference.xml index 756fad6620..59085cfb40 100644 --- a/reference/mhash/reference.xml +++ b/reference/mhash/reference.xml @@ -1,93 +1,14 @@ - - - + - - Mhash Functions - mhash - - -
- &reftitle.intro; - - These functions are intended to work with mhash. Mhash can be used to create checksums, - message digests, message authentication codes, and more. - - - This is an interface to the mhash library. mhash supports a wide - variety of hash algorithms such as MD5, SHA1, GOST, and many - others. For a complete list of supported hashes, refer to the - documentation of mhash. The general rule is that you can access - the hash algorithm from PHP with MHASH_HASHNAME. For example, to - access TIGER you use the PHP constant MHASH_TIGER. - - - - &pecl.moved-ver;5.3.0. - This extension is obsoleted by Hash. - - -
+ + Mhash &Functions; + mhash -
- &reftitle.required; - - To use it, download the mhash distribution from its web site and follow the included - installation instructions. - -
+ &reference.mhash.entities.functions; - &reference.mhash.configure; +
-
- &reftitle.runtime; - &no.config; -
- -
- &reftitle.resources; - &no.resource; -
- - &reference.mhash.constants; - -
- &reftitle.examples; - - - Compute the MD5 digest and hmac and print it out as hex - -\n"; -$hash = mhash(MHASH_MD5, $input, "Jefe"); -echo "The hmac is " . bin2hex($hash) . "
\n"; -?> -]]> -
- - This will produce: - - - - -
-
-
- -
- -&reference.mhash.entities.functions; - -
+ + + &reftitle.setup; + + +
+ &reftitle.required; + + To use it, download the mhash distribution from its web site and follow the included + installation instructions. + +
+ + + + &reference.mhash.configure; + + + +
+ &reftitle.runtime; + &no.config; +
+ + + +
+ &reftitle.resources; + &no.resource; +
+ + +
+ + +