ExtensionInstallDialogView: fix scrolling behavior on Views (Win,Linux)
[chromium-blink-merge.git] / components / webcrypto / nss / sym_key_nss.h
blob78d0acb9be17b9fdb12120d3f7573d616c86eed4
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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_WEBCRYPTO_NSS_SYM_KEY_NSS_H_
6 #define COMPONENTS_WEBCRYPTO_NSS_SYM_KEY_NSS_H_
8 #include <pkcs11t.h>
10 #include "third_party/WebKit/public/platform/WebCrypto.h"
12 namespace webcrypto {
14 class CryptoData;
15 class GenerateKeyResult;
16 class Status;
18 Status GenerateSecretKeyNss(const blink::WebCryptoKeyAlgorithm& algorithm,
19 bool extractable,
20 blink::WebCryptoKeyUsageMask usages,
21 unsigned int keylen_bits,
22 CK_MECHANISM_TYPE mechanism,
23 GenerateKeyResult* result);
25 Status ImportKeyRawNss(const CryptoData& key_data,
26 const blink::WebCryptoKeyAlgorithm& algorithm,
27 bool extractable,
28 blink::WebCryptoKeyUsageMask usages,
29 CK_MECHANISM_TYPE mechanism,
30 blink::WebCryptoKey* key);
32 } // namespace webcrypto
34 #endif // COMPONENTS_WEBCRYPTO_NSS_SYM_KEY_NSS_H_