mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
a4246ff00b
0001 - Introduce BasicSymmetricKeyAlgorithm r=rbarnes 0002 - Implement import key operation for PBKDF2 r=bz,rbarnes 0003 - Introduce MapAlgorithmNameToMechanism() r=rbarnes 0004 - Implement derive bits operation for PBKDF2 r=rbarnes,keeler,bz 0005 - Introduce GetKeySizeForAlgorithm() r=rbarnes 0006 - Implement derive keys operation for PBKDF2 r=rbarnes,bz
37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim:set ts=2 sw=2 sts=2 et cindent: */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef mozilla_dom_AesKeyAlgorithm_h
|
|
#define mozilla_dom_AesKeyAlgorithm_h
|
|
|
|
#include "mozilla/dom/BasicSymmetricKeyAlgorithm.h"
|
|
#include "js/TypeDecls.h"
|
|
|
|
namespace mozilla {
|
|
namespace dom {
|
|
|
|
class AesKeyAlgorithm MOZ_FINAL : public BasicSymmetricKeyAlgorithm
|
|
{
|
|
public:
|
|
AesKeyAlgorithm(nsIGlobalObject* aGlobal, const nsString& aName, uint16_t aLength)
|
|
: BasicSymmetricKeyAlgorithm(aGlobal, aName, aLength)
|
|
{}
|
|
|
|
~AesKeyAlgorithm()
|
|
{}
|
|
|
|
virtual JSObject* WrapObject(JSContext* aCx) MOZ_OVERRIDE;
|
|
|
|
virtual bool WriteStructuredClone(JSStructuredCloneWriter* aWriter) const MOZ_OVERRIDE;
|
|
static KeyAlgorithm* Create(nsIGlobalObject* aGlobal,
|
|
JSStructuredCloneReader* aReader);
|
|
};
|
|
|
|
} // namespace dom
|
|
} // namespace mozilla
|
|
|
|
#endif // mozilla_dom_AesKeyAlgorithm_h
|