| * Copyright (c) 2013 a3955269 all rights reversed, no rights reserved. |
| ////////////////////////////////////////////////////////////////////////////// |
| #include "include/libcrypt_samsung.h" |
| ////////////////////////////////////////////////////////////////////////////// |
| dek_t *dek, const edk_payload_t *edk, /*const*/ char *passwd) |
| void *lib = dlopen("libsec_km.so", RTLD_LAZY); |
| decrypt_EDK_t sym = (decrypt_EDK_t)dlsym(lib, "decrypt_EDK"); |
| r = sym(dek, edk, passwd); |
| int mount_ecryptfs_drive( |
| const char *passwd, const char *source, const char *target, int filter) |
| void *lib = dlopen("libsec_ecryptfs.so", RTLD_LAZY); |
| mount_ecryptfs_drive_t sym = (mount_ecryptfs_drive_t)dlsym(lib, "mount_ecryptfs_drive"); |
| r = sym(passwd, source, target, filter); |
| int unmount_ecryptfs_drive( |
| void *lib = dlopen("libsec_ecryptfs.so", RTLD_LAZY); |
| unmount_ecryptfs_drive_t sym = (unmount_ecryptfs_drive_t)dlsym(lib, "unmount_ecryptfs_drive"); |