/* * Copyright 2018 Scytl Secure Electronic Voting SA * * All rights reserved * * See our extended copyright notice in *file 'Copyright.txt' which is part of this source code package */ /* jshint node:true */ 'use strict'; var MessageDigestService = require('./service'); var validator = require('./input-validator'); module.exports = { /** * Creates a new MessageDigestService object, which encapsulates a message * digiest service. * * @function newService * @global * @param {Object} * [options] An object containing optional arguments. * @param {Policy} * [options.policy=Default policy] The cryptographic policy to * use. * @returns {MessageDigestService} The new MessageDigestService object. * @throws {Error} * If the input data validation fails. * @example
SHA512/224