Index: chrome/common/extensions/api/enterprise_platform_keys_internal.idl |
diff --git a/chrome/common/extensions/api/enterprise_platform_keys_internal.idl b/chrome/common/extensions/api/enterprise_platform_keys_internal.idl |
index b6d8f06faaeb2bd88720caf337311290988bc35e..347f1a958d27d1f78d5121d3e32b5e0b268136ab 100644 |
--- a/chrome/common/extensions/api/enterprise_platform_keys_internal.idl |
+++ b/chrome/common/extensions/api/enterprise_platform_keys_internal.idl |
@@ -38,12 +38,18 @@ namespace enterprise.platformKeysInternal { |
// |tokenId| The id of a Token returned by |getTokens|. |
// |publicKey| The Subject Public Key Info of a key previously generated by |
// |generateKey| in DER encoding. |
+ // |hashAlgorithmName| The recognized algorithm name as specified by |
+ // WebCrypto of the hash algorithm that will be used to digest |data| |
+ // before signing. Currently supported are: SHA-{1,256,384,512}. |
+ // TODO(pneubeck): use an enum once supported: |
+ // http://www.crbug.com/385539 . |
// |data| The data to sign. |
// |callback| Called back with the signature of |data|. |
// TODO: Instead of ArrayBuffer should be (ArrayBuffer or ArrayBufferView), |
// or at least (ArrayBuffer or Uint8Array). |
static void sign(DOMString tokenId, |
ArrayBuffer publicKey, |
+ DOMString hashAlgorithmName, |
ArrayBuffer data, |
SignCallback callback); |
}; |