@@ -11,11 +11,11 @@ * 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. */ -#import "OFCryptoHash.h" +#import "OFCryptographicHash.h" OF_ASSUME_NONNULL_BEGIN @class OFSecureData; @@ -22,19 +22,19 @@ /** * @class OFSHA384Or512Hash OFSHA384Or512Hash.h ObjFW/OFSHA384Or512Hash.h * * @brief A base class for SHA-384 and SHA-512. */ -@interface OFSHA384Or512Hash: OFObject +@interface OFSHA384Or512Hash: OFObject { @private OFSecureData *_iVarsData; @protected - struct of_sha384_or_512_hash_ivars { + struct { uint64_t state[8]; uint64_t bits[2]; - union of_sha384_or_512_hash_buffer { + union { unsigned char bytes[128]; uint64_t words[80]; } buffer; size_t bufferLength; } *_iVars;