changeset 471:dd54c02fc28a

Hex != base64
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 23 Apr 2014 16:34:46 +0000
parents a166d740cb5a
children cf25bb040186
files ui/tests/createcertlisttest.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ui/tests/createcertlisttest.cpp	Wed Apr 23 16:34:10 2014 +0000
+++ b/ui/tests/createcertlisttest.cpp	Wed Apr 23 16:34:46 2014 +0000
@@ -56,12 +56,12 @@
 {
     QByteArray input = "foo\n";
     QByteArray output = sha256sum(input);
-    QVERIFY(output.toBase64() == QByteArray("b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c"));
+    QVERIFY(output == QByteArray::fromHex("b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c"));
 }
 
 void CreateCertListTest::testSignature()
 {
-    QByteArray hash = QByteArray::fromBase64("b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c");
+    QByteArray hash = QByteArray::fromHex("b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c");
 
     QTemporaryFile keyFile;
     QFile keyRes(":/testkey-priv.pem");

http://wald.intevation.org/projects/trustbridge/