@@ -26,55 +26,41 @@ } #endif @interface OFString (CryptoHashing) /*! - * @brief Returns the MD5 hash of the string as an autoreleased OFString. - * - * @return The MD5 hash of the string as an autoreleased OFString - */ -- (OFString *)MD5Hash; - -/*! - * @brief Returns the RIPEMD-160 hash of the string as an autoreleased OFString. - * - * @return The RIPEMD-160 hash of the string as an autoreleased OFString - */ -- (OFString *)RIPEMD160Hash; - -/*! - * @brief Returns the SHA-1 hash of the string as an autoreleased OFString. - * - * @return The SHA-1 hash of the string as an autoreleased OFString - */ -- (OFString *)SHA1Hash; - -/*! - * @brief Returns the SHA-224 hash of the string as an autoreleased OFString. - * - * @return The SHA-224 hash of the string as an autoreleased OFString - */ -- (OFString *)SHA224Hash; - -/*! - * @brief Returns the SHA-256 hash of the string as an autoreleased OFString. - * - * @return The SHA-256 hash of the string as an autoreleased OFString - */ -- (OFString *)SHA256Hash; - -/*! - * @brief Returns the SHA-384 hash of the string as an autoreleased OFString. - * - * @return The SHA-384 hash of the string as an autoreleased OFString - */ -- (OFString *)SHA384Hash; - -/*! - * @brief Returns the SHA-512 hash of the string as an autoreleased OFString. - * - * @return The SHA-512 hash of the string as an autoreleased OFString - */ -- (OFString *)SHA512Hash; + * The MD5 hash of the string as a string. + */ +@property (readonly, nonatomic) OFString *MD5Hash; + +/*! + * The RIPEMD-160 hash of the string as a string. + */ +@property (readonly, nonatomic) OFString *RIPEMD160Hash; + +/*! + * The SHA-1 hash of the string as a string. + */ +@property (readonly, nonatomic) OFString *SHA1Hash; + +/*! + * The SHA-224 hash of the string as a string. + */ +@property (readonly, nonatomic) OFString *SHA224Hash; + +/*! + * The SHA-256 hash of the string as a string. + */ +@property (readonly, nonatomic) OFString *SHA256Hash; + +/*! + * The SHA-384 hash of the string as a string. + */ +@property (readonly, nonatomic) OFString *SHA384Hash; + +/*! + * The SHA-512 hash of the string as a string. + */ +@property (readonly, nonatomic) OFString *SHA512Hash; @end OF_ASSUME_NONNULL_END