Found 2 other functions taking a
crypto_hash
argument:
crypto_hash_finish - Complete hash calculation @ctx: Context pointer from crypto_hash_init() @hash: Buffer for hash value or %NULL if caller is just freeing the hash context @len: Pointer to length of the buffer or %NULL if caller is just freeing the hash context; on return, this is set to the actual length of the hash value Returns: 0 on success, -1 if buffer is too small (len set to needed length), or -2 on other failures (including failed crypto_hash_update() operations) This function calculates the hash value and frees the context buffer that was used for hash calculation. This function is only used with internal TLSv1 implementation (CONFIG_TLS=internal). If that is not used, the crypto wrapper does not need to implement this.
crypto_hash_update - Add data to hash calculation @ctx: Context pointer from crypto_hash_init() @data: Data buffer to add @len: Length of the buffer This function is only used with internal TLSv1 implementation (CONFIG_TLS=internal). If that is not used, the crypto wrapper does not need to implement this.