Skip to contentSkip to conversation

Encryption on SPDK

SPDK lihui.zhang at intel.com 1 participant 1 message Aug 4, 2020

lore
Share & tools
lore

lihui.zhang at intel.com

#0 lore raw

Hi,
We are now setting up a SPDK enviornment, some questions on encryption of block dev, thanks!
1. How to enable encryption of block dev?
2. How to configure software and hardware(through cryptodev) encryption?
3. How to validate?

We tried below steps to enable encrypted partition, is there any method to validate whether it is works or not?
1. Configure and compile SPDK:
HUGEMEM=8192 ./scripts/setup.sh
./configure --with-vhost --with-crypto
make -j32

2.Encryption:
./build/bin/vhost -i 0
./scripts/rpc.py construct_nvme_bdev -b Nvme01 -t pcie -a 0000:81:00.0 ./scripts/rpc.py bdev_crypto_create NVMe0n1 CryNvmeA crypto_aesni_mb 0123456789123456

Thanks!