a9f0fb0db1
Includes: A light weight CBOR generator This patch adds a header only CBOR generator and unit tests. It allows expressing CBOR datastructures in C++ for subsequent serialization. The implementation performs no memory allocation and only depends on stdint.h (for (u)intx_t) and stddefs.h (for size_t). It is tailored for use in constrained environments such as TEEs. Convenience method for generating a SHA256 HMAC Bug: 63928580 Test: android.hardware.confirmationui@support-lib-tests Change-Id: I1d93a85503f861281e71e09b1ede5cbb74219694
23 lines
754 B
C++
23 lines
754 B
C++
/*
|
|
**
|
|
** Copyright 2017, The Android Open Source Project
|
|
**
|
|
** Licensed under the Apache License, Version 2.0 (the "License");
|
|
** you may not use this file except in compliance with the License.
|
|
** You may obtain a copy of the License at
|
|
**
|
|
** http://www.apache.org/licenses/LICENSE-2.0
|
|
**
|
|
** Unless required by applicable law or agreed to in writing, software
|
|
** distributed under the License is distributed on an "AS IS" BASIS,
|
|
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
** See the License for the specific language governing permissions and
|
|
** limitations under the License.
|
|
*/
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
int main(int argc, char* argv[]) {
|
|
::testing::InitGoogleTest(&argc, argv);
|
|
return RUN_ALL_TESTS();
|
|
}
|