diff options
Diffstat (limited to 'tensorflow/core/platform/s3/aws_crypto.h')
-rw-r--r-- | tensorflow/core/platform/s3/aws_crypto.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tensorflow/core/platform/s3/aws_crypto.h b/tensorflow/core/platform/s3/aws_crypto.h new file mode 100644 index 0000000000..f05771b904 --- /dev/null +++ b/tensorflow/core/platform/s3/aws_crypto.h @@ -0,0 +1,35 @@ +/* Copyright 2015 The TensorFlow Authors. 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. +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 <aws/core/Aws.h> +#include <aws/core/utils/crypto/Factories.h> +#include <aws/core/utils/crypto/HMAC.h> +#include <aws/core/utils/crypto/Hash.h> + +namespace tensorflow { +static const char* AWSCryptoAllocationTag = "AWSCryptoAllocation"; + +class AWSSHA256Factory : public Aws::Utils::Crypto::HashFactory { + public: + std::shared_ptr<Aws::Utils::Crypto::Hash> CreateImplementation() + const override; +}; + +class AWSSHA256HmacFactory : public Aws::Utils::Crypto::HMACFactory { + public: + std::shared_ptr<Aws::Utils::Crypto::HMAC> CreateImplementation() + const override; +}; + +} // namespace tensorflow |