Sample Header Ad - 728x90

How to implement "cryptseup isLuks" function using cryptsetup library APIs

0 votes
1 answer
216 views
In shell script $crypsetup isLuks /dev/sda1 Above command returns - 0 -> for luks partition (encrypted partition) - 1 -> non luks partitions (non encrypted partition). I have implemented disk encryption using library APIs in CPP program. How can i check whether a partition is luks partition or not using crypsetup APIs?
Asked by Arulananth Subramaniam (35 rep)
Jan 19, 2023, 04:04 PM
Last activity: Jan 19, 2023, 05:35 PM