Change-Id: I68ec322e950b0d8112ffe0b7feccee745c0c9eae
Signed-off-by: Seok Hong <seok85.hong@samsung.com>
BuildRequires: pkgconfig(key-manager)
BuildRequires: pkgconfig(cynara-client)
BuildRequires: pkgconfig(cynara-session)
+BuildRequires: pkgconfig(openssl)
%description
The ode package provides a daemon which is responsible for encrypting/decryption storages and secure erasing.
libtzplatform-config
cynara-client
cynara-session
+ openssl
)
SET(SERVER_NAME ${PROJECT_NAME}d)
* See the License for the specific language governing permissions and
* limitations under the License
*/
+#include <openssl/md5.h>
+
#include <klay/filesystem.h>
#include <klay/audit/logger.h>
return ret;
}
+const KeyGenerator::data KeyGenerator::MD5(const KeyGenerator::data& in)
+{
+ data ret(MD5_DIGEST_LENGTH);
+
+ ::MD5((unsigned char*)in.data(), in.size(), (unsigned char*)ret.data());
+
+ return ret;
+}
+
} // namespace ode
const data AES(const data& in1, const data& in2);
const data HMAC(const data& original, const data& key);
const data RNG();
+ const data MD5(const data& in);
private:
int keySize;