note 115233 added to function.openssl-digest

From: Date: Tue, 17 Jun 2014 18:07:58 +0000
Subject: note 115233 added to function.openssl-digest
Groups: php.notes 
Request: Send a blank email to php-notes+get-199704@lists.php.net to get a copy of this message
Hmm.. really @mwgamera? openssl_get_cipher_methods() returns cipher methods but openssl_digest() expects a digest method in the second parameter. However even the docu on this page links to the openssl_get_cipher_methods() method in the "See also" section (however this can be a coincidence). Shouldn't it be a digest method from openssl_get_md_methods() instead openssl_get_cipher_methods()? I'm not very experienced in cryptography but I don't really understand why you would pass a cipher method to a hash function instead of a digest method. ---- Server IP: 72.52.91.14 Probable Submitter: 78.52.101.102 ---- Manual Page -- http://php.net/manual/en/function.openssl-digest.php Edit -- https://master.php.net/note/edit/115233 Del: integrated -- https://master.php.net/note/delete/115233/integrated Del: useless -- https://master.php.net/note/delete/115233/useless Del: bad code -- https://master.php.net/note/delete/115233/bad+code Del: spam -- https://master.php.net/note/delete/115233/spam Del: non-english -- https://master.php.net/note/delete/115233/non-english Del: in docs -- https://master.php.net/note/delete/115233/in+docs Del: other reasons-- https://master.php.net/note/delete/115233 Reject -- https://master.php.net/note/reject/115233 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#199704) next »