secureswitools/swisistools/source/sisxlibrary/sishash.cpp
changeset 26 04d4a7bbc3e0
parent 0 ba25891c3a9e
equal deleted inserted replaced
25:98b66e4fb0be 26:04d4a7bbc3e0
    67 	const TUint8* data = aHash.Blob().Data();
    67 	const TUint8* data = aHash.Blob().Data();
    68 	int size = aHash.Blob().Size();
    68 	int size = aHash.Blob().Size();
    69 	iBlob.Assign (data, size);
    69 	iBlob.Assign (data, size);
    70 	}
    70 	}
    71 
    71 
    72 void CSISHash::AddPackageEntry(std::wostream& aStream, bool aVerbose) const
    72 void CSISHash::AddPackageEntry(std::wostream& aStream, bool aVerbose, bool aCompatible) const
    73 	{
    73 	{
    74 	if(aVerbose)
    74 	if(aVerbose)
    75 		{
    75 		{
    76 		aStream << L"; " << ((iAlgorithm.Value()==EHashSHA)?L"SHA-1: ":L"Unknown hash: ");
    76 		aStream << L"; " << ((iAlgorithm.Value()==EHashSHA)?L"SHA-1: ":L"Unknown hash: ");
    77 		iBlob.AddPackageEntry(aStream, aVerbose);
    77 		iBlob.AddPackageEntry(aStream, aVerbose, aCompatible);
    78 		aStream << std::endl;
    78 		aStream << std::endl;
    79 		}
    79 		}
    80 	}
    80 	}
    81 
    81 
    82 void CSISHash::SetHash(const TUint8* aHash, TUint32 aHashSize)
    82 void CSISHash::SetHash(const TUint8* aHash, TUint32 aHashSize)