ObjFW  Diff

Differences From Artifact [2c7782d9c6]:

To Artifact [c095da4e9b]:


32
33
34
35
36
37
38

39

40
41
42
43
44
45
46
32
33
34
35
36
37
38
39

40
41
42
43
44
45
46
47







+
-
+







- (void)SHA384HashTests
{
	void *pool = objc_autoreleasePoolPush();
	OFSHA384Hash *sha384, *copy;
	OFFile *f = [OFFile fileWithPath: @"testfile.bin"
				    mode: @"r"];

	TEST(@"+[cryptoHashWithAllowsSwappableMemory:]",
	TEST(@"+[cryptoHash]", (sha384 = [OFSHA384Hash cryptoHash]))
	    (sha384 = [OFSHA384Hash cryptoHashWithAllowsSwappableMemory: true]))

	while (!f.atEndOfStream) {
		char buf[128];
		size_t len = [f readIntoBuffer: buf
					length: 128];
		[sha384 updateWithBuffer: buf
				  length: len];