Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions score/crypto/src/api/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ cc_library(
"//score/crypto/src/daemon/control_plane:control_operations",
"//score/crypto/src/daemon/key_management:key_management_operations",
"//score/crypto/src/daemon/mediator:mediator_operations",
"//score/crypto/src/daemon/provider/handler:cipher_handler_operations",
"//score/crypto/src/daemon/provider/handler:hash_handler_operations",
"//score/crypto/src/daemon/provider/handler:mac_handler_operations",
"//score/crypto/src/daemon/provider/handler:random_handler_operations",
"//score/crypto/src/daemon/provider/handler:signature_handler_operations",
],
)

Expand Down
4 changes: 4 additions & 0 deletions score/crypto/src/api/config/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@ cc_library(
name = "context_configs",
hdrs = [
"base_context_config.hpp",
"cipher_context_config.hpp",
"hash_context_config.hpp",
"key_management_context_config.hpp",
"key_operation_params.hpp",
"mac_context_config.hpp",
"permission_builder.hpp",
"random_context_config.hpp",
"sign_context_config.hpp",
"verify_signature_context_config.hpp",
],
includes = ["."],
visibility = ["//visibility:public"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

#ifndef SCORE_CRYPTO_SRC_API_FUTURE_CONFIG_CIPHER_CONTEXT_CONFIG_HPP
#define SCORE_CRYPTO_SRC_API_FUTURE_CONFIG_CIPHER_CONTEXT_CONFIG_HPP
#ifndef SCORE_CRYPTO_SRC_API_CONFIG_CIPHER_CONTEXT_CONFIG_HPP
#define SCORE_CRYPTO_SRC_API_CONFIG_CIPHER_CONTEXT_CONFIG_HPP

#include "score/crypto/src/api/common/crypto_resource_guard.hpp"
#include "score/crypto/src/api/common/types.hpp"
Expand Down Expand Up @@ -100,4 +100,4 @@ struct CipherContextConfig : public BaseContextConfig

} // namespace score

#endif // SCORE_CRYPTO_SRC_API_FUTURE_CONFIG_CIPHER_CONTEXT_CONFIG_HPP
#endif // SCORE_CRYPTO_SRC_API_CONFIG_CIPHER_CONTEXT_CONFIG_HPP
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

#ifndef SCORE_CRYPTO_SRC_API_FUTURE_CONFIG_RANDOM_CONTEXT_CONFIG_HPP
#define SCORE_CRYPTO_SRC_API_FUTURE_CONFIG_RANDOM_CONTEXT_CONFIG_HPP
#ifndef SCORE_CRYPTO_SRC_API_CONFIG_RANDOM_CONTEXT_CONFIG_HPP
#define SCORE_CRYPTO_SRC_API_CONFIG_RANDOM_CONTEXT_CONFIG_HPP

#include "score/crypto/src/api/config/base_context_config.hpp"

Expand Down Expand Up @@ -67,4 +67,4 @@ struct RandomContextConfig : public BaseContextConfig

} // namespace score

#endif // SCORE_CRYPTO_SRC_API_FUTURE_CONFIG_RANDOM_CONTEXT_CONFIG_HPP
#endif // SCORE_CRYPTO_SRC_API_CONFIG_RANDOM_CONTEXT_CONFIG_HPP
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

#ifndef SCORE_CRYPTO_SRC_API_FUTURE_CONFIG_SIGN_CONTEXT_CONFIG_HPP
#define SCORE_CRYPTO_SRC_API_FUTURE_CONFIG_SIGN_CONTEXT_CONFIG_HPP
#ifndef SCORE_CRYPTO_SRC_API_CONFIG_SIGN_CONTEXT_CONFIG_HPP
#define SCORE_CRYPTO_SRC_API_CONFIG_SIGN_CONTEXT_CONFIG_HPP

#include "score/crypto/src/api/config/base_context_config.hpp"

Expand Down Expand Up @@ -76,4 +76,4 @@ struct SignContextConfig : public BaseContextConfig

} // namespace score

#endif // SCORE_CRYPTO_SRC_API_FUTURE_CONFIG_SIGN_CONTEXT_CONFIG_HPP
#endif // SCORE_CRYPTO_SRC_API_CONFIG_SIGN_CONTEXT_CONFIG_HPP
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

#ifndef SCORE_CRYPTO_SRC_API_FUTURE_CONFIG_VERIFY_SIGNATURE_CONTEXT_CONFIG_HPP
#define SCORE_CRYPTO_SRC_API_FUTURE_CONFIG_VERIFY_SIGNATURE_CONTEXT_CONFIG_HPP
#ifndef SCORE_CRYPTO_SRC_API_CONFIG_VERIFY_SIGNATURE_CONTEXT_CONFIG_HPP
#define SCORE_CRYPTO_SRC_API_CONFIG_VERIFY_SIGNATURE_CONTEXT_CONFIG_HPP

#include "score/crypto/src/api/config/base_context_config.hpp"

Expand Down Expand Up @@ -76,4 +76,4 @@ struct VerifySignatureContextConfig : public BaseContextConfig

} // namespace score

#endif // SCORE_CRYPTO_SRC_API_FUTURE_CONFIG_VERIFY_SIGNATURE_CONTEXT_CONFIG_HPP
#endif // SCORE_CRYPTO_SRC_API_CONFIG_VERIFY_SIGNATURE_CONTEXT_CONFIG_HPP
12 changes: 12 additions & 0 deletions score/crypto/src/api/contexts/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@ cc_library(
cc_library(
name = "crypto_contexts",
hdrs = [
"i_cipher_context.hpp",
"i_hash_context.hpp",
"i_key_management_context.hpp",
"i_mac_context.hpp",
"i_random_context.hpp",
"i_sign_context.hpp",
"i_verify_signature_context.hpp",
],
includes = ["."],
visibility = ["//visibility:public"],
Expand All @@ -51,14 +55,22 @@ cc_library(
cc_library(
name = "crypto_contexts_impl",
srcs = [
"src/cipher_context_impl.cpp",
"src/hash_context_impl.cpp",
"src/key_management_context_impl.cpp",
"src/mac_context_impl.cpp",
"src/random_context_impl.cpp",
"src/sign_context_impl.cpp",
"src/verify_signature_context_impl.cpp",
],
hdrs = [
"src/cipher_context_impl.hpp",
"src/hash_context_impl.hpp",
"src/key_management_context_impl.hpp",
"src/mac_context_impl.hpp",
"src/random_context_impl.hpp",
"src/sign_context_impl.hpp",
"src/verify_signature_context_impl.hpp",
],
includes = ["."],
visibility = ["//:__subpackages__"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

#ifndef SCORE_CRYPTO_SRC_API_FUTURE_CONTEXTS_I_CIPHER_CONTEXT_HPP
#define SCORE_CRYPTO_SRC_API_FUTURE_CONTEXTS_I_CIPHER_CONTEXT_HPP
#ifndef SCORE_CRYPTO_SRC_API_CONTEXTS_I_CIPHER_CONTEXT_HPP
#define SCORE_CRYPTO_SRC_API_CONTEXTS_I_CIPHER_CONTEXT_HPP

#include "score/crypto/src/api/contexts/i_streaming_output_context.hpp"
#include "score/result/result.h"
Expand Down Expand Up @@ -115,4 +115,4 @@ class ICipherContext : public IStreamingOutputContext

} // namespace score

#endif // SCORE_CRYPTO_SRC_API_FUTURE_CONTEXTS_I_CIPHER_CONTEXT_HPP
#endif // SCORE_CRYPTO_SRC_API_CONTEXTS_I_CIPHER_CONTEXT_HPP
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

#ifndef SCORE_CRYPTO_SRC_API_FUTURE_CONTEXTS_I_RANDOM_CONTEXT_HPP
#define SCORE_CRYPTO_SRC_API_FUTURE_CONTEXTS_I_RANDOM_CONTEXT_HPP
#ifndef SCORE_CRYPTO_SRC_API_CONTEXTS_I_RANDOM_CONTEXT_HPP
#define SCORE_CRYPTO_SRC_API_CONTEXTS_I_RANDOM_CONTEXT_HPP

#include "score/crypto/src/api/contexts/i_context.hpp"
#include "score/result/result.h"
Expand Down Expand Up @@ -68,4 +68,4 @@ class IRandomContext : public IContext

} // namespace score

#endif // SCORE_CRYPTO_SRC_API_FUTURE_CONTEXTS_I_RANDOM_CONTEXT_HPP
#endif // SCORE_CRYPTO_SRC_API_CONTEXTS_I_RANDOM_CONTEXT_HPP
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

#ifndef SCORE_CRYPTO_SRC_API_FUTURE_CONTEXTS_I_SIGN_CONTEXT_HPP
#define SCORE_CRYPTO_SRC_API_FUTURE_CONTEXTS_I_SIGN_CONTEXT_HPP
#ifndef SCORE_CRYPTO_SRC_API_CONTEXTS_I_SIGN_CONTEXT_HPP
#define SCORE_CRYPTO_SRC_API_CONTEXTS_I_SIGN_CONTEXT_HPP

#include "score/crypto/src/api/contexts/i_streaming_output_context.hpp"
#include "score/result/result.h"
Expand Down Expand Up @@ -81,4 +81,4 @@ class ISignContext : public IStreamingOutputContext

} // namespace score

#endif // SCORE_CRYPTO_SRC_API_FUTURE_CONTEXTS_I_SIGN_CONTEXT_HPP
#endif // SCORE_CRYPTO_SRC_API_CONTEXTS_I_SIGN_CONTEXT_HPP
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

#ifndef SCORE_CRYPTO_SRC_API_FUTURE_CONTEXTS_I_VERIFY_SIGNATURE_CONTEXT_HPP
#define SCORE_CRYPTO_SRC_API_FUTURE_CONTEXTS_I_VERIFY_SIGNATURE_CONTEXT_HPP
#ifndef SCORE_CRYPTO_SRC_API_CONTEXTS_I_VERIFY_SIGNATURE_CONTEXT_HPP
#define SCORE_CRYPTO_SRC_API_CONTEXTS_I_VERIFY_SIGNATURE_CONTEXT_HPP

#include "score/crypto/src/api/contexts/i_streaming_context.hpp"
#include "score/result/result.h"
Expand Down Expand Up @@ -74,4 +74,4 @@ class IVerifySignatureContext : public IStreamingContext

} // namespace score

#endif // SCORE_CRYPTO_SRC_API_FUTURE_CONTEXTS_I_VERIFY_SIGNATURE_CONTEXT_HPP
#endif // SCORE_CRYPTO_SRC_API_CONTEXTS_I_VERIFY_SIGNATURE_CONTEXT_HPP
Loading
Loading