1 | // |
2 | // CipherKey.cpp |
3 | // |
4 | // Library: Crypto |
5 | // Package: Cipher |
6 | // Module: CipherKey |
7 | // |
8 | // Copyright (c) 2007, Applied Informatics Software Engineering GmbH. |
9 | // and Contributors. |
10 | // |
11 | // SPDX-License-Identifier: BSL-1.0 |
12 | // |
13 | |
14 | |
15 | #include "Poco/Crypto/CipherKey.h" |
16 | |
17 | |
18 | namespace Poco { |
19 | namespace Crypto { |
20 | |
21 | |
22 | CipherKey::CipherKey(const std::string& name, const std::string& passphrase, const std::string& salt, int iterationCount, |
23 | const std::string &digest): |
24 | _pImpl(new CipherKeyImpl(name, passphrase, salt, iterationCount, digest)) |
25 | { |
26 | } |
27 | |
28 | |
29 | CipherKey::CipherKey(const std::string& name, const ByteVec& key, const ByteVec& iv): |
30 | _pImpl(new CipherKeyImpl(name, key, iv)) |
31 | { |
32 | } |
33 | |
34 | |
35 | CipherKey::CipherKey(const std::string& name): |
36 | _pImpl(new CipherKeyImpl(name)) |
37 | { |
38 | } |
39 | |
40 | |
41 | CipherKey::~CipherKey() |
42 | { |
43 | } |
44 | |
45 | |
46 | } } // namespace Poco::Crypto |
47 | |