Project

General

Profile

Actions

Bug #83664

closed

PHP Warning: hash_hmac(): Unknown hashing algorithm: sha1

Added by Inge Khodjasteh over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-01-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
7.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi!
I've got lot's of two types of error messages after update from 6.2.26 to 7.6.23 / php 7.1.8:

Core: Error handler (BE): PHP Warning: hash_hmac(): Unknown hashing algorithm: sha1 in \typo3_src-7.6.23\typo3\sysext\extbase\Classes\Security\Cryptography\HashService.php line 42

Core: Error handler (FE): PHP Warning: hash_hmac(): Unknown hashing algorithm: sha1 in \typo3_src-7.6.23\typo3\sysext\extbase\Classes\Security\Cryptography\HashService.php line 42

Best regards
alexinge

Actions #1

Updated by Christian Kuhn over 6 years ago

  • Status changed from New to Needs Feedback

Sounds more like a server issue than a core bug.

Googling that i found various sources on it, could you check that?

https://github.com/owncloud/core/issues/26802

https://stackoverflow.com/questions/33978535/php7-unknown-hashing-algorithm-sha256

https://help.nextcloud.com/t/unknown-hashing-algorithm-sha1/1031

And maybe more hits search engine reveal.

Actions #2

Updated by Inge Khodjasteh over 6 years ago

Hi,

it's a windows server 2008 R2 with XAMPP / Apache/2.4.27 (Win32) OpenSSL/1.0.2l PHP/7.1.8

I found in the install tool that hash support is enabled with the following Hashing Engines:

md2 SMTP md5 25 sha224 sha256 sha384 sha512/224 nav_title title mount_pid sha3-256 sha3-384 sha3-512 nav_hide ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 doktype author_email hidden crc32 crc32b fnv132 fnv1a32 fnv164 fnv1a64 joaat haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5

mhash support is also enabled, api version emulated support

Is it possible to change hashing algorithm or to add sha1?

I'm sorry but I can't understand or apply the information provided in the links...

Actions #3

Updated by Christian Kuhn over 6 years ago

I'm still unsure on how to help there. This still seems to be an issue on the server side and my windows knowledge is very limited in this area to be of help here. Unsure on how to continue.

Actions #4

Updated by Inge Khodjasteh over 6 years ago

Hi,
I don't know why, but the problem is solved, we had several errors yesterday with "the given string was not appended with a valid HMAC", but now sha1 is included in the list of hashing engines and since yesterday there are no more errors!
Best regards
alexinge

Actions #5

Updated by Inge Khodjasteh over 6 years ago

It's strange, problem isn't solved. The errors are shown again and in the install tool no hashing engine is listed at all!?

Actions #6

Updated by Wouter Wolters about 6 years ago

  • Status changed from Needs Feedback to Closed

This is a server related problem. TYPO3 can't solve this problem for you. Please search further on Google for more help or workarounds around your issue. Windows works fine by the way on my side.

Actions

Also available in: Atom PDF