xref: /PHP-7.3/ext/hash/tests/sha512-256.phpt (revision 49a7be06)
1--TEST--
2sha512/256 algorithm
3--SKIPIF--
4<?php if(!extension_loaded("hash")) print "skip"; ?>
5--FILE--
6<?php
7echo hash('sha512/256', '') . "\n";
8echo hash('sha512/256', 'abc') . "\n";
9echo hash('sha512/256', 'abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu') . "\n";
10--EXPECT--
11c672b8d1ef56ed28ab87c3622c5114069bdd3ad7b8f9737498d0c01ecef0967a
1253048e2681941ef99b2e29b76b4c7dabe4c2d0c634fc6d46e0e2f13107e7af23
133928e184fb8690f840da3988121d31be65cb9d3ef83ee6146feac861e19b563a
14