Corrected dmsetup argument in README.md. - #3
Conversation
When I attempted to use the dmsetup command, I received an error: root@smarcimx8mq4g:/data/caam# dmsetup -v create encrypted --table "0 $(blockdev --getsz /dev/mmcblk1p3) crypt capi:tk(cbc(aes))-plain :32:logon:logkey: 0 /dev/mmcblk1p3 0 1 sector_size:512" device-mapper: reload ioctl on encrypted (252:0) failed: Invalid argument Command failed. Replacing 32 with 36 made this work: root@smarcimx8mq4g:/data/caam# dmsetup -v create encrypted --table "0 $(blockdev --getsz /dev/mmcblk1p3) crypt capi:tk(cbc(aes))-plain :36:logon:logkey: 0 /dev/mmcblk1p3 0 1 sector_size:512" Name: encrypted State: ACTIVE Read Ahead: 256 Tables present: LIVE Open count: 0 Event number: 0 Major, minor: 252, 0 Number of targets: 1 I have a couple of questions about keyctl_caam. Who can I contact? (There is no "issues" tab in the repo.)
|
It might also be worth mentioning how that value is computed - essentially key length + 20 (overhead). See keyctl_caam/caam-keygen_priv.h Line 42 in 8dba6d3 |
|
@iuliana-prodan it would be very helpful if you merged this PR. I wasted a lot of time today trying to debug why it wasn't working - and it turns out there's been a PR for the last 2 years which would have saved all that time. |
@kshitizvars can we merge this? |
LE: @fadedbee I'm not maintaining this repo so not my call to merge it or not. |
When I attempted to use the dmsetup command, I received an error:
root@smarcimx8mq4g:/data/caam# dmsetup -v create encrypted --table "0 $(blockdev --getsz /dev/mmcblk1p3) crypt capi:tk(cbc(aes))-plain :32:logon:logkey: 0 /dev/mmcblk1p3 0 1 sector_size:512"
device-mapper: reload ioctl on encrypted (252:0) failed: Invalid argument Command failed.
Replacing 32 with 36 made this work:
root@smarcimx8mq4g:/data/caam# dmsetup -v create encrypted --table "0 $(blockdev --getsz /dev/mmcblk1p3) crypt capi:tk(cbc(aes))-plain :36:logon:logkey: 0 /dev/mmcblk1p3 0 1 sector_size:512"
Name: encrypted
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 0
Event number: 0
Major, minor: 252, 0
Number of targets: 1
I have a couple of questions about keyctl_caam. Who can I contact? (There is no "issues" tab in the repo.)