Convert the content to the report data.
(&self, content: &[u8])
| 244 | |
| 245 | /// Convert the content to the report data. |
| 246 | pub fn to_report_data(&self, content: &[u8]) -> [u8; 64] { |
| 247 | self.to_report_data_with_hash(content, "") |
| 248 | .or_panic("sha512 hash should not fail") |
| 249 | } |
| 250 | |
| 251 | /// Convert the content to the report data with a specific hash algorithm. |
| 252 | pub fn to_report_data_with_hash(&self, content: &[u8], hash: &str) -> Result<[u8; 64]> { |
no test coverage detected