mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-13 20:14:57 -10:00
Adds a module that provides a reversable mapping between an number and a UUID. Recovering the number requires knowledge of a common secret key. The implementation is based on AES-128 encryption / decryption, mainly for its properties than it actually needing to be AES-128. Differential Revision: https://phabricator.services.mozilla.com/D304639
26 lines
586 B
C++
26 lines
586 B
C++
/* 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 KeyedUUIDMapper_h
|
|
#define KeyedUUIDMapper_h
|
|
|
|
#include "nsIKeyedUUIDMapper.h"
|
|
#include "ScopedNSSTypes.h"
|
|
|
|
namespace mozilla {
|
|
|
|
class KeyedUUIDMapper final : public nsIKeyedUUIDMapper {
|
|
public:
|
|
NS_DECL_ISUPPORTS
|
|
NS_DECL_NSIKEYEDUUIDMAPPER
|
|
|
|
private:
|
|
~KeyedUUIDMapper() = default;
|
|
UniquePK11SymKey mSymKey;
|
|
};
|
|
|
|
} // namespace mozilla
|
|
|
|
#endif // KeyedUUIDMapper_h
|