Index: src/OFCryptoHash.h ================================================================== --- src/OFCryptoHash.h +++ src/OFCryptoHash.h @@ -65,11 +65,11 @@ * The size of the buffer depends on the hash used. The buffer is part of the * receiver's memory pool. * * @return A buffer containing the hash */ -- (const uint8_t*)digest OF_RETURNS_INNER_POINTER; +- (const unsigned char*)digest OF_RETURNS_INNER_POINTER; /*! * @brief Resets all state so that a new hash can be calculated. * * @warning This invalidates any pointer previously returned by @ref digest. If Index: src/OFDataArray+CryptoHashing.m ================================================================== --- src/OFDataArray+CryptoHashing.m +++ src/OFDataArray+CryptoHashing.m @@ -33,11 +33,11 @@ - (OFString*)OF_cryptoHashWithClass: (Class )class { void *pool = objc_autoreleasePoolPush(); id hash = [class cryptoHash]; size_t digestSize = [class digestSize]; - const uint8_t *digest; + const unsigned char *digest; char cString[digestSize * 2]; [hash updateWithBuffer: _items length: _count * _itemSize]; digest = [hash digest]; Index: src/OFHMAC.h ================================================================== --- src/OFHMAC.h +++ src/OFHMAC.h @@ -71,11 +71,11 @@ * The size of the buffer depends on the hash used. The buffer is part of the * receiver's memory pool. * * @return A buffer containing the hash */ -- (const uint8_t*)digest OF_RETURNS_INNER_POINTER; +- (const unsigned char*)digest OF_RETURNS_INNER_POINTER; /*! * @brief Returns the size of the digest. * * @return The size of the digest. Index: src/OFHMAC.m ================================================================== --- src/OFHMAC.m +++ src/OFHMAC.m @@ -106,11 +106,11 @@ [_innerHash updateWithBuffer: buffer length: length]; } -- (const uint8_t*)digest +- (const unsigned char*)digest { if (_calculated) return [_outerHash digest]; [_outerHash updateWithBuffer: [_innerHash digest] Index: src/OFMD5Hash.m ================================================================== --- src/OFMD5Hash.m +++ src/OFMD5Hash.m @@ -175,11 +175,11 @@ _bufferLength = 0; } } } -- (const uint8_t*)digest +- (const unsigned char*)digest { if (_calculated) return (const uint8_t*)_state; _buffer.bytes[_bufferLength] = 0x80; Index: src/OFRIPEMD160Hash.m ================================================================== --- src/OFRIPEMD160Hash.m +++ src/OFRIPEMD160Hash.m @@ -190,11 +190,11 @@ _bufferLength = 0; } } } -- (const uint8_t*)digest +- (const unsigned char*)digest { if (_calculated) return (const uint8_t*)_state; _buffer.bytes[_bufferLength] = 0x80; Index: src/OFSHA1Hash.m ================================================================== --- src/OFSHA1Hash.m +++ src/OFSHA1Hash.m @@ -150,11 +150,11 @@ _bufferLength = 0; } } } -- (const uint8_t*)digest +- (const unsigned char*)digest { if (_calculated) return (const uint8_t*)_state; _buffer.bytes[_bufferLength] = 0x80; Index: src/OFSHA224Or256Hash.m ================================================================== --- src/OFSHA224Or256Hash.m +++ src/OFSHA224Or256Hash.m @@ -173,11 +173,11 @@ _bufferLength = 0; } } } -- (const uint8_t*)digest +- (const unsigned char*)digest { if (_calculated) return (const uint8_t*)_state; _buffer.bytes[_bufferLength] = 0x80; Index: src/OFSHA384Or512Hash.m ================================================================== --- src/OFSHA384Or512Hash.m +++ src/OFSHA384Or512Hash.m @@ -186,11 +186,11 @@ _bufferLength = 0; } } } -- (const uint8_t*)digest +- (const unsigned char*)digest { if (_calculated) return (const uint8_t*)_state; _buffer.bytes[_bufferLength] = 0x80; Index: src/OFString+CryptoHashing.m ================================================================== --- src/OFString+CryptoHashing.m +++ src/OFString+CryptoHashing.m @@ -32,11 +32,11 @@ - (OFString*)OF_cryptoHashWithClass: (Class )class { void *pool = objc_autoreleasePoolPush(); id hash = [class cryptoHash]; size_t digestSize = [class digestSize]; - const uint8_t *digest; + const unsigned char *digest; char cString[digestSize * 2]; [hash updateWithBuffer: [self UTF8String] length: [self UTF8StringLength]]; digest = [hash digest];