• Felix Beck's avatar
    [S390] zcrypt: cope with cca restriction of cex3 · c2567f8f
    Felix Beck authored
    The cca on the crypto adapter has a restriction in the size of the
    exponent if a key with a modulus bigger than 2048 bit is used. Thus
    in that case we have to avoid that the crypto device driver thinks
    the adapter is defect and sets it offline. Therfore a new member for
    the zcrypt_device struct called max_exp_bit_length is introduced. This
    will be set the first time the cca returns the error code function
    not implemented. If this is done with an adapter twice it will return
    -EINVAL.
    Signed-off-by: default avatarFelix Beck <felix.beck@de.ibm.com>
    Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
    c2567f8f
zcrypt_pcica.c 12.1 KB