(obj, opts)
| 26362 | |
| 26363 | module.exports.stringify = stringify |
| 26364 | function stringify (obj, opts) { |
| 26365 | if (obj.algorithm && obj.digest) { |
| 26366 | return Hash.prototype.toString.call(obj, opts) |
| 26367 | } else if (typeof obj === 'string') { |
| 26368 | return stringify(parse(obj, opts), opts) |
| 26369 | } else { |
| 26370 | return Integrity.prototype.toString.call(obj, opts) |
| 26371 | } |
| 26372 | } |
| 26373 | |
| 26374 | module.exports.fromHex = fromHex |
| 26375 | function fromHex (hexDigest, algorithm, opts) { |
no test coverage detected