ima: Add digest and digest_len params to the functions to measure a buffer