On Tue, Jan 17, 2012 at 3:44 AM, Milan Broz <mbroz@xxxxxxxxxx> wrote:
I have seen the example and the source code, they are both easy to follow and very informative.
st.st_size works as expected so the bug was on my side. Will stop using strlen to find out length of keyfiles.On 01/17/2012 09:05 AM, .. ink .. wrote:(please also read examples in docs/examples)
using cryptsetup 1.4.1
test case belo
I have seen the example and the source code, they are both easy to follow and very informative.
I guess strlen(c) is wrong, it will stop on the first zero (mp3 is binary data, not C string).
status = crypt_keyslot_add_by_volume_key( cd,CRYPT_ANY_SLOT,NULL,32,c,strlen( c ) );
What about use st.st_size here?
Thanks
_______________________________________________ dm-crypt mailing list dm-crypt@xxxxxxxx http://www.saout.de/mailman/listinfo/dm-crypt