function hmacVerify (input, algorithm, secret, signature) {
  try {
    const verify = signature === hmacSign(input, algorithm, secret)
    if (!verify) {
      errorMap['006'].message = 'Unvalid secret for hmac verify, signature verification failed'
      errorMap['006'].error = new Error(errorMap['006'].message)
    }
    return verify
  } catch (e) {
    errorMap['006'].message = 'Exception error in hamc verify, signature verification failed'
    errorMap['006'].error = e
    return false
  }
}
function hmacVerify (input, algorithm, secret, signature) {
  try {
    const verify = signature === hmacSign(input, algorithm, secret)
    if (!verify) {
      errorMap['006'].message = 'Unvalid secret for hmac verify, signature verification failed'
      errorMap['006'].error = new Error(errorMap['006'].message)
    }
    return verify
  } catch (e) {
    errorMap['006'].message = 'Exception error in hamc verify, signature verification failed'
    errorMap['006'].error = e
    return false
  }
}
function hmacVerify ( input , algorithm , secret , signature ) { try { const verify = signature === hmacSign ( input , algorithm , secret ) if ( ! verify ) { errorMap [ '006' ] . message = 'Unvalid secret for hmac verify, signature verification failed' errorMap [ '006' ] . error = new Error ( errorMap [ '006' ] . message ) } return verify } catch ( e ) { errorMap [ '006' ] . message = 'Exception error in hamc verify, signature verification failed' errorMap [ '006' ] . error = e return false } }
hamc verify signature
@param  {String} input      hamc verify input
@param  {String} algorithm  hamc verify algorithm
@param  {String} secret     hamc verify secret
@param  {String} signature  hamc verify signature
@return {Object}            hamc verify result
hamc verify signature