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_
10 #include "third_party/WebKit/public/platform/WebCrypto.h"
15 class GenerateKeyResult
;
18 Status
GenerateSecretKeyNss(const blink::WebCryptoKeyAlgorithm
& algorithm
,
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
,
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_