[lib.scha] updated size type (uint16)

This commit is contained in:
xdrm-brackets 2018-04-21 00:02:23 +02:00
parent b48b7c378b
commit b23acf97f8
2 changed files with 3 additions and 3 deletions

View File

@ -9,8 +9,8 @@ import (
/* (0) Static
---------------------------------------------------------*/
/* (1) Constants */
const HBITSIZE uint = 512;
const HSIZE uint = HBITSIZE / 8;
const HBITSIZE uint32 = 512;
const HSIZE uint16 = uint16(HBITSIZE / 8);

View File

@ -20,7 +20,7 @@ func TestSimpleHash(t *testing.T){
}
/* (2) Fail on wrong size */
if digestLength != HSIZE {
if uint16(digestLength) != HSIZE {
t.Errorf("Expected hash digest of %d bytes ; %d bytes received", HSIZE, digestLength);
}