Files
firefox/xpcom/base/KeyedUUIDMapper.h
Rob Wu 88397c9859 Bug 2037284 - Add nsIKeyedUUIDMapper (map from/to number) r=keeler
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
2026-06-12 12:27:21 +00:00

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