Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cwZkqYm3yhUL for ; Sat, 11 Feb 2012 00:21:44 +0100 (CET) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Sat, 11 Feb 2012 00:21:43 +0100 (CET) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Rvzmh-000403-7Z for dm-crypt@saout.de; Sat, 11 Feb 2012 00:21:43 +0100 Received: from 128.222.37.62 ([128.222.37.62]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 11 Feb 2012 00:21:43 +0100 Received: from anirudh.takkallapally by 128.222.37.62 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 11 Feb 2012 00:21:43 +0100 From: anirudh takkallapally Date: Fri, 10 Feb 2012 23:21:33 +0000 (UTC) Message-ID: References: <4F358681.9060506@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] Unlocking volume using master key List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Ok cool, thanks for the quick response. i am compiling cryptsetup, so can i am guessing i will be able to call libcryptsetup API. int crypt_init_by_name(struct crypt_device **cd, const char *name); to get the crypt_device. And then use the below code to unlock the volume. int crypt_activate_by_volume_key(struct crypt_device *cd, const char *name, const char *volume_key, size_t volume_key_size, uint32_t flags); to unlock the volume? Is this the way to do it and if yes what should be the default flags. Thanks