/*
- * Copyright (c) 2017-2019 Samsung Electronics Co., Ltd. All rights reserved
+ * Copyright (c) 2017-2020 Samsung Electronics Co., Ltd. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <functional>
+#ifndef __has_cpp_attribute
+#define __has_cpp_attribute(_) 0
+#endif
+
+#if __has_cpp_attribute(fallthrough)
+#define fallthru [[fallthrough]]
+#else
+#define fallthru ((void)0)
+#endif
+
namespace {
using DSAPtr = std::unique_ptr<DSA, std::function<void(DSA*)>>;
ThrowErr(Exc::Crypto::InputParam, "Invalid CTR length");
}
// no break here, we still need to slide down to executeCrypt
+ fallthru;
}
case AlgoType::AES_CBC:
case AlgoType::AES_CFB: {
ThrowErr(Exc::Crypto::InputParam, "Invalid CTR length");
}
// no break here, we still need to slide down to executeCrypt
+ fallthru;
}
case AlgoType::AES_CBC:
case AlgoType::AES_CFB: {