• Harald Freudenberger's avatar
    s390/zcrypt: Add low level functions for CCA AES cipher keys · 4bc123b1
    Harald Freudenberger authored
    This patch adds low level functions, structs and defines to support
    CCA AES cipher keys:
    - struct cipherkeytoken can be used for an inside view of the CCA AES
      cipher key token blob.
    - function cca_cipher2protkey() derives an CPACF protected key from an
      CCA AES cipher key.
    - function cca_gencipherkey() generates an CCA AES cipher key with
      random value.
    - function cca_findcard2() constructs a list of apqns based on input
      constrains like min hardware type, mkvp values.
    - cca_check_secaescipherkey() does a check on the given CCA AES cipher
      key blob.
    - cca_clr2cipherkey() generates an CCA AES cipher key from a given
      clear key value.
    Signed-off-by: default avatarHarald Freudenberger <freude@linux.ibm.com>
    Reviewed-by: default avatarIngo Franzki <ifranzki@linux.ibm.com>
    Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
    4bc123b1
zcrypt_ccamisc.h 7.56 KB