Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: crypto4xx - Remove cfb and ofb

Remove the unused CFB/OFB implementation.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

-58
-14
drivers/crypto/amcc/crypto4xx_alg.c
··· 181 181 CRYPTO_FEEDBACK_MODE_NO_FB); 182 182 } 183 183 184 - int crypto4xx_setkey_aes_cfb(struct crypto_skcipher *cipher, 185 - const u8 *key, unsigned int keylen) 186 - { 187 - return crypto4xx_setkey_aes(cipher, key, keylen, CRYPTO_MODE_CFB, 188 - CRYPTO_FEEDBACK_MODE_128BIT_CFB); 189 - } 190 - 191 184 int crypto4xx_setkey_aes_ecb(struct crypto_skcipher *cipher, 192 185 const u8 *key, unsigned int keylen) 193 186 { 194 187 return crypto4xx_setkey_aes(cipher, key, keylen, CRYPTO_MODE_ECB, 195 188 CRYPTO_FEEDBACK_MODE_NO_FB); 196 - } 197 - 198 - int crypto4xx_setkey_aes_ofb(struct crypto_skcipher *cipher, 199 - const u8 *key, unsigned int keylen) 200 - { 201 - return crypto4xx_setkey_aes(cipher, key, keylen, CRYPTO_MODE_OFB, 202 - CRYPTO_FEEDBACK_MODE_64BIT_OFB); 203 189 } 204 190 205 191 int crypto4xx_setkey_rfc3686(struct crypto_skcipher *cipher,
-40
drivers/crypto/amcc/crypto4xx_core.c
··· 1211 1211 } }, 1212 1212 { .type = CRYPTO_ALG_TYPE_SKCIPHER, .u.cipher = { 1213 1213 .base = { 1214 - .cra_name = "cfb(aes)", 1215 - .cra_driver_name = "cfb-aes-ppc4xx", 1216 - .cra_priority = CRYPTO4XX_CRYPTO_PRIORITY, 1217 - .cra_flags = CRYPTO_ALG_ASYNC | 1218 - CRYPTO_ALG_KERN_DRIVER_ONLY, 1219 - .cra_blocksize = 1, 1220 - .cra_ctxsize = sizeof(struct crypto4xx_ctx), 1221 - .cra_module = THIS_MODULE, 1222 - }, 1223 - .min_keysize = AES_MIN_KEY_SIZE, 1224 - .max_keysize = AES_MAX_KEY_SIZE, 1225 - .ivsize = AES_IV_SIZE, 1226 - .setkey = crypto4xx_setkey_aes_cfb, 1227 - .encrypt = crypto4xx_encrypt_iv_stream, 1228 - .decrypt = crypto4xx_decrypt_iv_stream, 1229 - .init = crypto4xx_sk_init, 1230 - .exit = crypto4xx_sk_exit, 1231 - } }, 1232 - { .type = CRYPTO_ALG_TYPE_SKCIPHER, .u.cipher = { 1233 - .base = { 1234 1214 .cra_name = "ctr(aes)", 1235 1215 .cra_driver_name = "ctr-aes-ppc4xx", 1236 1216 .cra_priority = CRYPTO4XX_CRYPTO_PRIORITY, ··· 1266 1286 .setkey = crypto4xx_setkey_aes_ecb, 1267 1287 .encrypt = crypto4xx_encrypt_noiv_block, 1268 1288 .decrypt = crypto4xx_decrypt_noiv_block, 1269 - .init = crypto4xx_sk_init, 1270 - .exit = crypto4xx_sk_exit, 1271 - } }, 1272 - { .type = CRYPTO_ALG_TYPE_SKCIPHER, .u.cipher = { 1273 - .base = { 1274 - .cra_name = "ofb(aes)", 1275 - .cra_driver_name = "ofb-aes-ppc4xx", 1276 - .cra_priority = CRYPTO4XX_CRYPTO_PRIORITY, 1277 - .cra_flags = CRYPTO_ALG_ASYNC | 1278 - CRYPTO_ALG_KERN_DRIVER_ONLY, 1279 - .cra_blocksize = 1, 1280 - .cra_ctxsize = sizeof(struct crypto4xx_ctx), 1281 - .cra_module = THIS_MODULE, 1282 - }, 1283 - .min_keysize = AES_MIN_KEY_SIZE, 1284 - .max_keysize = AES_MAX_KEY_SIZE, 1285 - .ivsize = AES_IV_SIZE, 1286 - .setkey = crypto4xx_setkey_aes_ofb, 1287 - .encrypt = crypto4xx_encrypt_iv_stream, 1288 - .decrypt = crypto4xx_decrypt_iv_stream, 1289 1289 .init = crypto4xx_sk_init, 1290 1290 .exit = crypto4xx_sk_exit, 1291 1291 } },
-4
drivers/crypto/amcc/crypto4xx_core.h
··· 162 162 struct scatterlist *dst_tmp); 163 163 int crypto4xx_setkey_aes_cbc(struct crypto_skcipher *cipher, 164 164 const u8 *key, unsigned int keylen); 165 - int crypto4xx_setkey_aes_cfb(struct crypto_skcipher *cipher, 166 - const u8 *key, unsigned int keylen); 167 165 int crypto4xx_setkey_aes_ctr(struct crypto_skcipher *cipher, 168 166 const u8 *key, unsigned int keylen); 169 167 int crypto4xx_setkey_aes_ecb(struct crypto_skcipher *cipher, 170 - const u8 *key, unsigned int keylen); 171 - int crypto4xx_setkey_aes_ofb(struct crypto_skcipher *cipher, 172 168 const u8 *key, unsigned int keylen); 173 169 int crypto4xx_setkey_rfc3686(struct crypto_skcipher *cipher, 174 170 const u8 *key, unsigned int keylen);