Differences From Artifact [2324ca56a2]:
- File
src/OFSHA224Or256Hash.m
— part of check-in
[19f7dc67af]
at
2016-07-24 12:14:41
on branch trunk
— -[OFCryptoHash digest]: uint8_t -> unsigned char
While in practice they are usually the same, the C standard says that
only char does not have any alignment requirements. As (u)int*_t is
defined to be an integer type of the specified size, it does not mean
(u)int8_t needs to be char. (user: js, size: 4781) [annotate] [blame] [check-ins using]
To Artifact [3f98abf1a7]:
- File src/OFSHA224Or256Hash.m — part of check-in [b1cd76a8cd] at 2016-07-24 18:54:10 on branch trunk — OFCryptoHash: Conform to OFCopying (user: js, size: 5058) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
140 141 142 143 144 145 146 147 148 149 150 151 152 153 | } @catch (id e) { [self release]; @throw e; } return self; } - (void)updateWithBuffer: (const void*)buffer_ length: (size_t)length { const uint8_t *buffer = buffer_; if (_calculated) | > > > > > > > > > > > > > | 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | } @catch (id e) { [self release]; @throw e; } return self; } - copy { OFSHA224Or256Hash *copy = [[[self class] alloc] init]; memcpy(copy->_state, _state, sizeof(_state)); copy->_bits = _bits; memcpy(©->_buffer, &_buffer, sizeof(_buffer)); copy->_bufferLength = _bufferLength; copy->_calculated = _calculated; return copy; } - (void)updateWithBuffer: (const void*)buffer_ length: (size_t)length { const uint8_t *buffer = buffer_; if (_calculated) |
︙ | ︙ |