Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: chrome/common/extensions/api/enterprise_platform_keys_internal.idl

Issue 331173002: enterprise.platformKeys: Respect the 'hash' argument of generateKey. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Internal API for platform keys and certificate management. 5 // Internal API for platform keys and certificate management.
6 [ platforms = ("chromeos"), 6 [ platforms = ("chromeos"),
7 implemented_in = "chrome/browser/extensions/api/enterprise_platform_keys/enter prise_platform_keys_api.h" ] 7 implemented_in = "chrome/browser/extensions/api/enterprise_platform_keys/enter prise_platform_keys_api.h" ]
8 namespace enterprise.platformKeysInternal { 8 namespace enterprise.platformKeysInternal {
9 // Invoked by <code>getTokens</code>. 9 // Invoked by <code>getTokens</code>.
10 // |tokenIds| The list of IDs of the avialable Tokens. 10 // |tokenIds| The list of IDs of the avialable Tokens.
(...skipping 20 matching lines...) Expand all
31 // |callback| Called back with the Subject Public Key Info of the generated 31 // |callback| Called back with the Subject Public Key Info of the generated
32 // key. 32 // key.
33 static void generateKey(DOMString tokenId, 33 static void generateKey(DOMString tokenId,
34 long modulusLength, 34 long modulusLength,
35 GenerateKeyCallback callback); 35 GenerateKeyCallback callback);
36 36
37 // Internal version of Token.sign. 37 // Internal version of Token.sign.
38 // |tokenId| The id of a Token returned by |getTokens|. 38 // |tokenId| The id of a Token returned by |getTokens|.
39 // |publicKey| The Subject Public Key Info of a key previously generated by 39 // |publicKey| The Subject Public Key Info of a key previously generated by
40 // |generateKey| in DER encoding. 40 // |generateKey| in DER encoding.
41 // |hashAlgorithmName| The recognized algorithm name as specified by
42 // WebCrypto of the hash algorithm that will be used to digest |data|
43 // before signing. Currently supported are: SHA-{1,256,384,512}.
44 // TODO(pneubeck): use an enum once supported:
45 // http://www.crbug.com/385539 .
41 // |data| The data to sign. 46 // |data| The data to sign.
42 // |callback| Called back with the signature of |data|. 47 // |callback| Called back with the signature of |data|.
43 // TODO: Instead of ArrayBuffer should be (ArrayBuffer or ArrayBufferView), 48 // TODO: Instead of ArrayBuffer should be (ArrayBuffer or ArrayBufferView),
44 // or at least (ArrayBuffer or Uint8Array). 49 // or at least (ArrayBuffer or Uint8Array).
45 static void sign(DOMString tokenId, 50 static void sign(DOMString tokenId,
46 ArrayBuffer publicKey, 51 ArrayBuffer publicKey,
52 DOMString hashAlgorithmName,
47 ArrayBuffer data, 53 ArrayBuffer data,
48 SignCallback callback); 54 SignCallback callback);
49 }; 55 };
50 }; 56 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698