function signDigestRequestedListener(request, reportCallback) {
  log('The onSignDigestRequested event received: signRequestId=' +
      request.signRequestId + ', digest=' + dumpArrayBuffer(request.digest) +
      ', hash="' + request.hash +
      '", certificate=' + dumpArrayBuffer(request.certificate));
  if (!arrayBufferEquals(request.certificate, TEST_CERTIFICATE)) {
    logError('The signing request refers to an unknown certificate');
    abandonSignRequest(request, reportCallback);
    return;
  }
  inputPinAndProcessSignRequest(
      1 /* attemptNumber */, null /* errorType */, request, reportCallback);
}
// Listener for the chrome.certificateProvider.onSignDigestRequested event.
Listener for the chrome.certificateProvider.onSignDigestRequested event.
Listener for the chrome . certificateProvider . onSignDigestRequested event .
function signDigestRequestedListener(request, reportCallback) {
  log('The onSignDigestRequested event received: signRequestId=' +
      request.signRequestId + ', digest=' + dumpArrayBuffer(request.digest) +
      ', hash="' + request.hash +
      '", certificate=' + dumpArrayBuffer(request.certificate));
  if (!arrayBufferEquals(request.certificate, TEST_CERTIFICATE)) {
    logError('The signing request refers to an unknown certificate');
    abandonSignRequest(request, reportCallback);
    return;
  }
  inputPinAndProcessSignRequest(
      1 , null , request, reportCallback);
}
function signDigestRequestedListener ( request , reportCallback ) { log ( 'The onSignDigestRequested event received: signRequestId=' + request . signRequestId + ', digest=' + dumpArrayBuffer ( request . digest ) + ', hash="' + request . hash + '", certificate=' + dumpArrayBuffer ( request . certificate ) ) ; if ( ! arrayBufferEquals ( request . certificate , TEST_CERTIFICATE ) ) { logError ( 'The signing request refers to an unknown certificate' ) ; abandonSignRequest ( request , reportCallback ) ; return ; } inputPinAndProcessSignRequest ( 1 , null , request , reportCallback ) ; }
Listener for the chrome.certificateProvider.onSignDigestRequested event.
Listener for the chrome . certificateProvider . onSignDigestRequested event .
/* attemptNumber */ /* errorType */