Differences From Artifact [e1d7855925]:
- File
src/OFSHA1Hash.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: 3790) [annotate] [blame] [check-ins using]
To Artifact [32e9d453f3]:
- File src/OFSHA1Hash.m — part of check-in [b1cd76a8cd] at 2016-07-24 18:54:10 on branch trunk — OFCryptoHash: Conform to OFCopying (user: js, size: 4058) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
108 109 110 111 112 113 114 115 116 117 118 119 120 121 | { self = [super init]; [self OF_resetState]; return self; } - (void)OF_resetState { _state[0] = 0x67452301; _state[1] = 0xEFCDAB89; _state[2] = 0x98BADCFE; _state[3] = 0x10325476; | > > > > > > > > > > > > > | 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | { self = [super init]; [self OF_resetState]; return self; } - copy { OFSHA1Hash *copy = [[OFSHA1Hash 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)OF_resetState { _state[0] = 0x67452301; _state[1] = 0xEFCDAB89; _state[2] = 0x98BADCFE; _state[3] = 0x10325476; |
︙ | ︙ |