Differences From Artifact [bac63969c0]:
- File
tests/OFHMACTests.m
— part of check-in
[1483709ab2]
at
2022-08-01 21:20:54
on branch trunk
— Add support for embedding files into binaries
Embedded files are available via the objfw-embedded: URL scheme. (user: js, size: 5570) [annotate] [blame] [check-ins using] [more...]
To Artifact [38283dce16]:
- File tests/OFHMACTests.m — part of check-in [338d452f33] at 2022-08-11 20:54:05 on branch trunk — OFURLHandler: Add +[openItemAtURL:mode:] (user: js, size: 5544) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
48 49 50 51 52 53 54 | "\xB7\xE8\x87\xC1\x73\x19\x63\xF6\xA2\x91\x8D\x7E\x2E\xCC\xEC\x99"; @implementation TestsAppDelegate (OFHMACTests) - (void)HMACTests { void *pool = objc_autoreleasePoolPush(); OFURL *URL = [OFURL URLWithString: @"objfw-embedded:///testfile.bin"]; | < | | 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | "\xB7\xE8\x87\xC1\x73\x19\x63\xF6\xA2\x91\x8D\x7E\x2E\xCC\xEC\x99"; @implementation TestsAppDelegate (OFHMACTests) - (void)HMACTests { void *pool = objc_autoreleasePoolPush(); OFURL *URL = [OFURL URLWithString: @"objfw-embedded:///testfile.bin"]; OFStream *file = [OFURLHandler openItemAtURL: URL mode: @"r"]; OFHMAC *HMACMD5, *HMACSHA1, *HMACRMD160; OFHMAC *HMACSHA256, *HMACSHA384, *HMACSHA512; TEST(@"+[HMACWithHashClass:] with MD5", (HMACMD5 = [OFHMAC HMACWithHashClass: [OFMD5Hash class] allowsSwappableMemory: true])) TEST(@"+[HMACWithHashClass:] with SHA-1", |
︙ | ︙ |