如何将ed25519私钥导入Yubi HSM 2

Sim*_*ert 11 openssl hsm ed25519 yubico

我正在尝试将openssl生成的ed25519密钥导入Yubi HSM 2,我正在按照此处描述的步骤操作:https : //developers.yubico.com/yubihsm-shell/yubihsm-wrap.html

echo -en '\x00\x11\x22\x33\x44\x55\x66\x77\x88\x99\xaa\xbb\xcc\xdd\xee\xff' >wrap.key
Run Code Online (Sandbox Code Playgroud)
yubihsm-shell -p password -a put-wrap-key -i 20 -c all --delegated all --informat bin --in wrap.key
Run Code Online (Sandbox Code Playgroud)
openssl genpkey -algorithm Ed25519 -out ed25519key.pem
Run Code Online (Sandbox Code Playgroud)
yubihsm-wrap -a ed25519 -c sign-eddsa -d 1,2,5 --id 30 --label ED25519_Key --in ed25519key.pem --wrapkey wrap.key --out private.yhw
Run Code Online (Sandbox Code Playgroud)
yubihsm-shell -p password -a put-wrapped --wrap-id 20 --in private.yhw
Run Code Online (Sandbox Code Playgroud)

最后我的错误是 Malformed command / invalid data

似乎没有迹象表明Yubi HSM 2不支持包装ed25519密钥。

我的过程中有问题吗?还是根本不支持?

Nat*_*ies 3

虽然ed25519满足一般要求,但FIPS 186-4到目前为止还没有后续。NIST 尚未颁发认证。

[ https://csrc.nist.gov/csrc/media/publications/fips/186/4/final/documents/comments-received-fips186-4-december-2015.pdf]

如果/当他们这样做时,很可能会得到支持。