• Harald Freudenberger's avatar
    s390/pkey: add support for ecc clear key · 9e436c19
    Harald Freudenberger authored
    Add support for a new 'non CCA clear key token' with these
    ECC clear keys supported:
    
    - ECC P256
    - ECC P384
    - ECC P521
    - ECC ED25519
    - ECC ED448
    
    This makes it possible to derive a protected key from this
    ECC clear key input via PKEY_KBLOB2PROTK3 ioctl. As of now
    the only way to derive protected keys from these clear key
    tokens is via PCKMO instruction. For AES keys an alternate
    path via creating a secure key from the clear key and then
    derive a protected key from the secure key exists. This
    alternate path is not implemented for ECC keys as it would
    require to rearrange and maybe recalculate the clear key
    material for input to derive an CCA or EP11 ECC secure key.
    Signed-off-by: default avatarHarald Freudenberger <freude@linux.ibm.com>
    Reviewed-by: default avatarHolger Dengler <dengler@linux.ibm.com>
    Signed-off-by: default avatarAlexander Gordeev <agordeev@linux.ibm.com>
    9e436c19
cpacf.h 16 KB