ObjFW  Diff

Differences From Artifact [42233d8968]:

To Artifact [682e9b5139]:

  • File src/OFHMAC.h — 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: 2485) [annotate] [blame] [check-ins using]


69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
 * @brief Returns a buffer containing the HMAC.
 *
 * 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;

/*!
 * @brief Returns the size of the digest.
 *
 * @return The size of the digest.
 */
- (size_t)digestSize;







|







69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
 * @brief Returns a buffer containing the HMAC.
 *
 * 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 unsigned char*)digest OF_RETURNS_INNER_POINTER;

/*!
 * @brief Returns the size of the digest.
 *
 * @return The size of the digest.
 */
- (size_t)digestSize;