Differences From Artifact [139ebf49f1]:
- File
src/OFSHA384Or512Hash.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: 5658) [annotate] [blame] [check-ins using]
To Artifact [aff18d378f]:
- File src/OFSHA384Or512Hash.m — part of check-in [6a3c47863d] at 2015-11-02 19:27:41 on branch trunk — OFSHA*Hash: Minor cleanup (user: js, size: 5495) [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 "OFSHA384Or512Hash.h" #import "OFHashAlreadyCalculatedException.h" static const uint64_t table[] = { |
︙ | ︙ | |||
135 136 137 138 139 140 141 | + (instancetype)hash { return [[[self alloc] init] autorelease]; } - init { | < < < < | < | | < | < | | 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | + (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_; |
︙ | ︙ |