OSDN Git Service

crypto: Support export akcipher to pkcs8
authorLei He <helei.sig11@bytedance.com>
Sat, 8 Oct 2022 08:50:29 +0000 (16:50 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 2 Nov 2022 10:56:32 +0000 (06:56 -0400)
commit58660863ba5ca4f74fa70671da2899b264dc5f34
treed6907865e91667bf5457f1fba9869b9cd30f507b
parent3b34ccad6695f3fd3e48555d895d450f750c00e6
crypto: Support export akcipher to pkcs8

crypto: support export RSA private keys with PKCS#8 standard.
So that users can upload this private key to linux kernel.

Signed-off-by: lei he <helei.sig11@bytedance.com>
Message-Id: <20221008085030.70212-4-helei.sig11@bytedance.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
crypto/akcipher.c
crypto/rsakey.c
crypto/rsakey.h
include/crypto/akcipher.h