From: Felix Beck Date: Wed, 5 Jan 2011 11:47:47 +0000 (+0100) Subject: [S390] zcrypt: cope with cca restriction of cex3 X-Git-Tag: v2.6.38-rc1~461^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2567f8ffa2704f6f2f81013e9a590deca5a865f;p=pandora-kernel.git [S390] zcrypt: cope with cca restriction of cex3 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: Felix Beck Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed