Add KM 4.1 implementation
Bug: 140193672
Bug: 140192237
Bug: 140824829
Test: VtsHalKeymaster4.1TargetTest (doesn't do anything yet)
Change-Id: I6a88255108702bc3e58c8ed71abdcaf1a9f194aa
diff --git a/ng/AndroidKeymaster41Device.cpp b/ng/AndroidKeymaster41Device.cpp
new file mode 100644
index 0000000..295d3f5
--- /dev/null
+++ b/ng/AndroidKeymaster41Device.cpp
@@ -0,0 +1,26 @@
+/*
+ **
+ ** Copyright 2019, 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 "include/AndroidKeymaster41Device.h"
+
+namespace keymaster::V4_1 {
+
+IKeymasterDevice* CreateKeymasterDevice(SecurityLevel securityLevel) {
+ return new AndroidKeymaster41Device(securityLevel);
+}
+
+} // namespace keymaster::V4_1