2020-04-29 04:22:39 -07:00
|
|
|
/*
|
2020-12-09 14:18:44 -07:00
|
|
|
* Copyright (C) 2020 The Android Open Source Project
|
2020-04-29 04:22:39 -07:00
|
|
|
*
|
|
|
|
|
* 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.
|
|
|
|
|
*/
|
|
|
|
|
|
2020-12-11 13:05:27 +00:00
|
|
|
#include <keymint_support/key_param_output.h>
|
2020-04-29 04:22:39 -07:00
|
|
|
|
2020-12-11 10:45:43 +00:00
|
|
|
#include <iomanip>
|
2020-12-06 19:20:41 -07:00
|
|
|
|
2020-12-11 13:05:27 +00:00
|
|
|
#include <keymint_support/keymint_tags.h>
|
|
|
|
|
|
2020-12-16 18:28:39 -08:00
|
|
|
namespace aidl::android::hardware::security::keymint {
|
2020-04-29 04:22:39 -07:00
|
|
|
|
|
|
|
|
using ::std::endl;
|
|
|
|
|
using ::std::ostream;
|
|
|
|
|
|
|
|
|
|
ostream& operator<<(ostream& os, const ::std::vector<KeyParameter>& set) {
|
|
|
|
|
if (set.size() == 0) {
|
|
|
|
|
os << "(Empty)" << endl;
|
|
|
|
|
} else {
|
|
|
|
|
os << "\n";
|
|
|
|
|
for (const auto& elem : set) os << elem << endl;
|
|
|
|
|
}
|
|
|
|
|
return os;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ostream& operator<<(ostream& os, const KeyParameter& param) {
|
2020-12-07 15:03:00 -07:00
|
|
|
return os << param.toString();
|
2020-04-29 04:22:39 -07:00
|
|
|
}
|
|
|
|
|
|
2020-12-16 18:28:39 -08:00
|
|
|
} // namespace aidl::android::hardware::security::keymint
|