Differences From Artifact [3cb3067893]:
- File
src/OFString+Hashing.h
— part of check-in
[46af1252a5]
at
2014-09-01 11:08:43
on branch trunk
— Add OFSHA256Hash
Took me some time to figure out the RFC is buggy and SSIG0(t-15) should
be SSIG0(W(t-15))... (user: js, size: 1267) [annotate] [blame] [check-ins using]
To Artifact [c913003d61]:
- File
src/OFString+Hashing.h
— part of check-in
[a1931f59a2]
at
2014-09-01 23:42:55
on branch trunk
— Add OFSHA224Hash
This creates a common base for OFSHA224Hash and OFSHA256Hash so that all
code (except the different initialization constants) is reused. (user: js, size: 1452) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
35 36 37 38 39 40 41 42 43 44 45 46 47 48 | /*! * @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-256 hash of the string as an autoreleased OFString. * * @return The SHA-256 hash of the string as an autoreleased OFString */ - (OFString*)SHA256Hash; @end | > > > > > > > | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | /*! * @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; @end |