mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
xfrm_algo: probe asynchronous block ciphers instead of synchronous
IPSEC uses block ciphers asynchronous, but probes only for synchronous block ciphers and makes ealg entries only available if synchronous block cipher is found. So with setup, where hardware crypto driver registers asynchronous block ciphers and software crypto module is not build, ealg is not marked as being available. Use crypto_has_ablkcipher instead and remove ASYNC mask. Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com> Change-Id: I54c7eacc0b466ac1531d203d188a8cc9d83d2358
This commit is contained in:
parent
a529c015b3
commit
1a35fc8aaf
1 changed files with 1 additions and 2 deletions
|
@ -703,8 +703,7 @@ void xfrm_probe_algs(void)
|
|||
}
|
||||
|
||||
for (i = 0; i < ealg_entries(); i++) {
|
||||
status = crypto_has_blkcipher(ealg_list[i].name, 0,
|
||||
CRYPTO_ALG_ASYNC);
|
||||
status = crypto_has_ablkcipher(ealg_list[i].name, 0, 0);
|
||||
if (ealg_list[i].available != status)
|
||||
ealg_list[i].available = status;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue