HomeClusterLabs Projects

Import key with length not dividable by wrap key block size

Description

Import key with length not dividable by wrap key block size

Wrapping of the key is standard crypto operation which needs data
aligned to cipher block size, otherwise it fails.

Possible solution is to use a zero filled buffer with size aligned to
required wrap key block size. Private key is copied to the beginning of
the buffer and unwrap operation keeps using only required private key
size.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>

Details

Provenance
jfriesseAuthored on Oct 1 2018, 5:39 AM
fabbioneCommitted on Oct 8 2018, 4:06 AM
Parents
rKf10a83e9be27: [tests] clear errno to avoid incorrect propagation from void fn call
Branches
Unknown
Tags
Unknown

Event Timeline