Differences From Artifact [1adbe2ccf4]:
- File
src/OFSHA224Or256Hash.m
— part of check-in
[7c27db9fe0]
at
2015-02-01 00:47:18
on branch trunk
— Add -[OFHash reset]
This is useful to calculate many hashes without allocating new objects. (user: js, size: 4763) [annotate] [blame] [check-ins using]
To Artifact [d23742f855]:
- File src/OFSHA224Or256Hash.m — part of check-in [6a3c47863d] at 2015-11-02 19:27:41 on branch trunk — OFSHA*Hash: Minor cleanup (user: js, size: 4600) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
12 13 14 15 16 17 18 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" #include <string.h> #import "OFSHA224Or256Hash.h" #import "OFHashAlreadyCalculatedException.h" static const uint32_t table[] = { |
︙ | ︙ | |||
124 125 126 127 128 129 130 | + (instancetype)hash { return [[[self alloc] init] autorelease]; } - init { | < < < < | < | | < | < | | 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | + (instancetype)hash { return [[[self alloc] init] autorelease]; } - init { self = [super init]; [self OF_resetState]; return self; } - (void)updateWithBuffer: (const void*)buffer_ length: (size_t)length { const uint8_t *buffer = buffer_; |
︙ | ︙ |