.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * xfrm algorithm interface |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (c) 2002 James Morris <jmorris@intercode.com.au> |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify it |
---|
7 | | - * under the terms of the GNU General Public License as published by the Free |
---|
8 | | - * Software Foundation; either version 2 of the License, or (at your option) |
---|
9 | | - * any later version. |
---|
10 | 6 | */ |
---|
11 | 7 | |
---|
12 | 8 | #include <crypto/hash.h> |
---|
.. | .. |
---|
241 | 237 | |
---|
242 | 238 | .uinfo = { |
---|
243 | 239 | .auth = { |
---|
244 | | - .icv_truncbits = 128, |
---|
| 240 | + .icv_truncbits = IS_ENABLED(CONFIG_ANDROID) ? 128 : 96, |
---|
245 | 241 | .icv_fullbits = 256, |
---|
246 | 242 | } |
---|
247 | 243 | }, |
---|
.. | .. |
---|
630 | 626 | static const struct xfrm_algo_list xfrm_ealg_list = { |
---|
631 | 627 | .algs = ealg_list, |
---|
632 | 628 | .entries = ARRAY_SIZE(ealg_list), |
---|
633 | | - .type = CRYPTO_ALG_TYPE_BLKCIPHER, |
---|
634 | | - .mask = CRYPTO_ALG_TYPE_BLKCIPHER_MASK, |
---|
| 629 | + .type = CRYPTO_ALG_TYPE_SKCIPHER, |
---|
| 630 | + .mask = CRYPTO_ALG_TYPE_MASK, |
---|
635 | 631 | }; |
---|
636 | 632 | |
---|
637 | 633 | static const struct xfrm_algo_list xfrm_calg_list = { |
---|