Closed GoogleCodeExporter closed 9 years ago
This in fact works as expected.
Note that CIPHER is cipher (or cipher chain in TCRYPT)
and mode is encryption mode (plus IV generator).
So if you want full cipher-mode specification, you have to use
get_cipher + get_mode.
Your modified example could look like this:
#include <libcryptsetup.h>
#include <stdio.h>
int main(int argc,char * argv[])
{
struct crypt_device *cd;
if (argc < 2 || crypt_init_by_name(&cd, argv[1]))
return 1 ;
printf("cipher: %s-%s\n", crypt_get_cipher(cd), crypt_get_cipher_mode(cd));
crypt_free(cd);
return 0 ;
}
Original comment by gmazyl...@gmail.com
on 17 Mar 2013 at 6:49
Original issue reported on code.google.com by
gmazyl...@gmail.com
on 19 Feb 2013 at 11:28Attachments: