3 * Copyright (c) 2020 Project CHIP Authors
4 * Copyright (c) 2016-2017 Nest Labs, Inc.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 * This file defines class, which is used as a default dummy (empty)
23 * implementation of the group key store.
27 #ifndef CHIPDUMMYGROUPKEYSTORE_H_
28 #define CHIPDUMMYGROUPKEYSTORE_H_
30 #include "CHIPApplicationKeys.h"
38 * @class DummyKeyStore
41 * The definition of the dummy group key store.
44 class DummyGroupKeyStore : public GroupKeyStoreBase
49 // Manage application group key material storage.
50 CHIP_ERROR RetrieveGroupKey(uint32_t keyId, ChipGroupKey & key) override;
51 CHIP_ERROR StoreGroupKey(const ChipGroupKey & key) override;
52 CHIP_ERROR DeleteGroupKey(uint32_t keyId) override;
53 CHIP_ERROR DeleteGroupKeysOfAType(uint32_t keyType) override;
54 CHIP_ERROR EnumerateGroupKeys(uint32_t keyType, uint32_t * keyIds, uint8_t keyIdsArraySize, uint8_t & keyCount) override;
55 CHIP_ERROR Clear() override;
58 // Retrieve and Store LastUsedEpochKeyId value.
59 CHIP_ERROR RetrieveLastUsedEpochKeyId() override;
60 CHIP_ERROR StoreLastUsedEpochKeyId() override;
62 // Get current platform UTC time in seconds.
63 CHIP_ERROR GetCurrentUTCTime(uint32_t & utcTime) override;
66 } // namespace AppKeys
67 } // namespace Security
68 } // namespace Protocols
71 #endif /* CHIPDUMMYGROUPKEYSTORE_H_ */