aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/poco/Crypto/src/CipherFactory.cpp
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:45:01 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:01 +0300
commit2d37894b1b037cf24231090eda8589bbb44fb6fc (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/libs/poco/Crypto/src/CipherFactory.cpp
parent718c552901d703c502ccbefdfc3c9028d608b947 (diff)
downloadydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/poco/Crypto/src/CipherFactory.cpp')
-rw-r--r--contrib/libs/poco/Crypto/src/CipherFactory.cpp130
1 files changed, 65 insertions, 65 deletions
diff --git a/contrib/libs/poco/Crypto/src/CipherFactory.cpp b/contrib/libs/poco/Crypto/src/CipherFactory.cpp
index 01dfad4cf6..28ba374864 100644
--- a/contrib/libs/poco/Crypto/src/CipherFactory.cpp
+++ b/contrib/libs/poco/Crypto/src/CipherFactory.cpp
@@ -1,65 +1,65 @@
-//
-// CipherFactory.cpp
-//
-// Library: Crypto
-// Package: Cipher
-// Module: CipherFactory
-//
-// Copyright (c) 2008, Applied Informatics Software Engineering GmbH.
-// and Contributors.
-//
-// SPDX-License-Identifier: BSL-1.0
-//
-
-
-#include "Poco/Crypto/CipherFactory.h"
-#include "Poco/Crypto/Cipher.h"
-#include "Poco/Crypto/CipherKey.h"
-#include "Poco/Crypto/RSAKey.h"
-#include "Poco/Crypto/CipherImpl.h"
-#include "Poco/Crypto/RSACipherImpl.h"
-#include "Poco/Exception.h"
-#include "Poco/SingletonHolder.h"
-#include <openssl/evp.h>
-#include <openssl/err.h>
-
-
-namespace Poco {
-namespace Crypto {
-
-
-CipherFactory::CipherFactory()
-{
-}
-
-
-CipherFactory::~CipherFactory()
-{
-}
-
-
-namespace
-{
- static Poco::SingletonHolder<CipherFactory> holder;
-}
-
-
-CipherFactory& CipherFactory::defaultFactory()
-{
- return *holder.get();
-}
-
-
-Cipher* CipherFactory::createCipher(const CipherKey& key)
-{
- return new CipherImpl(key);
-}
-
-
-Cipher* CipherFactory::createCipher(const RSAKey& key, RSAPaddingMode paddingMode)
-{
- return new RSACipherImpl(key, paddingMode);
-}
-
-
-} } // namespace Poco::Crypto
+//
+// CipherFactory.cpp
+//
+// Library: Crypto
+// Package: Cipher
+// Module: CipherFactory
+//
+// Copyright (c) 2008, Applied Informatics Software Engineering GmbH.
+// and Contributors.
+//
+// SPDX-License-Identifier: BSL-1.0
+//
+
+
+#include "Poco/Crypto/CipherFactory.h"
+#include "Poco/Crypto/Cipher.h"
+#include "Poco/Crypto/CipherKey.h"
+#include "Poco/Crypto/RSAKey.h"
+#include "Poco/Crypto/CipherImpl.h"
+#include "Poco/Crypto/RSACipherImpl.h"
+#include "Poco/Exception.h"
+#include "Poco/SingletonHolder.h"
+#include <openssl/evp.h>
+#include <openssl/err.h>
+
+
+namespace Poco {
+namespace Crypto {
+
+
+CipherFactory::CipherFactory()
+{
+}
+
+
+CipherFactory::~CipherFactory()
+{
+}
+
+
+namespace
+{
+ static Poco::SingletonHolder<CipherFactory> holder;
+}
+
+
+CipherFactory& CipherFactory::defaultFactory()
+{
+ return *holder.get();
+}
+
+
+Cipher* CipherFactory::createCipher(const CipherKey& key)
+{
+ return new CipherImpl(key);
+}
+
+
+Cipher* CipherFactory::createCipher(const RSAKey& key, RSAPaddingMode paddingMode)
+{
+ return new RSACipherImpl(key, paddingMode);
+}
+
+
+} } // namespace Poco::Crypto