DMSetup Keysize

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DMSetup Keysize

566 Views
rahulbpkl
Contributor I

Hi

I was following i.MX Linux® User's Guide and implemented the disc encryption.

./caam-keygen create randomkey ecb -s 16 is used for creating the key

dmsetup -v create encrypted --table "0 $(blockdev --getsz /dev/loop0) crypt capi:tk(cbc(aes))-
plain :36:logon:logkey: 0 /dev/loop0 0 1 sector_size:512"  is used  for creating the new device mapper. and 36:logon:logkey: is confusing me.

I have the following doubt:

How to ensure the keysize of the algorithm

1. I ran the following command and I got the following output

dmsetup table --showkey encrypted
0 65536 crypt capi:tk(cbc(aes))-plain :36:logon:logkey: 0 7:0 0

what is this 36 

2. If I want to implement AES 256 what changes I have to make in the the above code.

Thanks,

Rahul B

Tags (3)
0 Kudos
0 Replies