blowfish_avx2_glue.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585
  1. /*
  2. * Glue Code for x86_64/AVX2 assembler optimized version of Blowfish
  3. *
  4. * Copyright © 2012-2013 Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
  5. *
  6. * CBC & ECB parts based on code (crypto/cbc.c,ecb.c) by:
  7. * Copyright (c) 2006 Herbert Xu <herbert@gondor.apana.org.au>
  8. * CTR part based on code (crypto/ctr.c) by:
  9. * (C) Copyright IBM Corp. 2007 - Joy Latten <latten@us.ibm.com>
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License as published by
  13. * the Free Software Foundation; either version 2 of the License, or
  14. * (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. */
  22. #include <linux/module.h>
  23. #include <linux/types.h>
  24. #include <linux/crypto.h>
  25. #include <linux/err.h>
  26. #include <crypto/algapi.h>
  27. #include <crypto/blowfish.h>
  28. #include <crypto/cryptd.h>
  29. #include <crypto/ctr.h>
  30. #include <asm/i387.h>
  31. #include <asm/xcr.h>
  32. #include <asm/xsave.h>
  33. #include <asm/crypto/blowfish.h>
  34. #include <asm/crypto/ablk_helper.h>
  35. #include <crypto/scatterwalk.h>
  36. #define BF_AVX2_PARALLEL_BLOCKS 32
  37. /* 32-way AVX2 parallel cipher functions */
  38. asmlinkage void blowfish_ecb_enc_32way(struct bf_ctx *ctx, u8 *dst,
  39. const u8 *src);
  40. asmlinkage void blowfish_ecb_dec_32way(struct bf_ctx *ctx, u8 *dst,
  41. const u8 *src);
  42. asmlinkage void blowfish_cbc_dec_32way(struct bf_ctx *ctx, u8 *dst,
  43. const u8 *src);
  44. asmlinkage void blowfish_ctr_32way(struct bf_ctx *ctx, u8 *dst, const u8 *src,
  45. __be64 *iv);
  46. static inline bool bf_fpu_begin(bool fpu_enabled, unsigned int nbytes)
  47. {
  48. if (fpu_enabled)
  49. return true;
  50. /* FPU is only used when chunk to be processed is large enough, so
  51. * do not enable FPU until it is necessary.
  52. */
  53. if (nbytes < BF_BLOCK_SIZE * BF_AVX2_PARALLEL_BLOCKS)
  54. return false;
  55. kernel_fpu_begin();
  56. return true;
  57. }
  58. static inline void bf_fpu_end(bool fpu_enabled)
  59. {
  60. if (fpu_enabled)
  61. kernel_fpu_end();
  62. }
  63. static int ecb_crypt(struct blkcipher_desc *desc, struct blkcipher_walk *walk,
  64. bool enc)
  65. {
  66. bool fpu_enabled = false;
  67. struct bf_ctx *ctx = crypto_blkcipher_ctx(desc->tfm);
  68. const unsigned int bsize = BF_BLOCK_SIZE;
  69. unsigned int nbytes;
  70. int err;
  71. err = blkcipher_walk_virt(desc, walk);
  72. desc->flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP;
  73. while ((nbytes = walk->nbytes)) {
  74. u8 *wsrc = walk->src.virt.addr;
  75. u8 *wdst = walk->dst.virt.addr;
  76. fpu_enabled = bf_fpu_begin(fpu_enabled, nbytes);
  77. /* Process multi-block AVX2 batch */
  78. if (nbytes >= bsize * BF_AVX2_PARALLEL_BLOCKS) {
  79. do {
  80. if (enc)
  81. blowfish_ecb_enc_32way(ctx, wdst, wsrc);
  82. else
  83. blowfish_ecb_dec_32way(ctx, wdst, wsrc);
  84. wsrc += bsize * BF_AVX2_PARALLEL_BLOCKS;
  85. wdst += bsize * BF_AVX2_PARALLEL_BLOCKS;
  86. nbytes -= bsize * BF_AVX2_PARALLEL_BLOCKS;
  87. } while (nbytes >= bsize * BF_AVX2_PARALLEL_BLOCKS);
  88. if (nbytes < bsize)
  89. goto done;
  90. }
  91. /* Process multi-block batch */
  92. if (nbytes >= bsize * BF_PARALLEL_BLOCKS) {
  93. do {
  94. if (enc)
  95. blowfish_enc_blk_4way(ctx, wdst, wsrc);
  96. else
  97. blowfish_dec_blk_4way(ctx, wdst, wsrc);
  98. wsrc += bsize * BF_PARALLEL_BLOCKS;
  99. wdst += bsize * BF_PARALLEL_BLOCKS;
  100. nbytes -= bsize * BF_PARALLEL_BLOCKS;
  101. } while (nbytes >= bsize * BF_PARALLEL_BLOCKS);
  102. if (nbytes < bsize)
  103. goto done;
  104. }
  105. /* Handle leftovers */
  106. do {
  107. if (enc)
  108. blowfish_enc_blk(ctx, wdst, wsrc);
  109. else
  110. blowfish_dec_blk(ctx, wdst, wsrc);
  111. wsrc += bsize;
  112. wdst += bsize;
  113. nbytes -= bsize;
  114. } while (nbytes >= bsize);
  115. done:
  116. err = blkcipher_walk_done(desc, walk, nbytes);
  117. }
  118. bf_fpu_end(fpu_enabled);
  119. return err;
  120. }
  121. static int ecb_encrypt(struct blkcipher_desc *desc, struct scatterlist *dst,
  122. struct scatterlist *src, unsigned int nbytes)
  123. {
  124. struct blkcipher_walk walk;
  125. blkcipher_walk_init(&walk, dst, src, nbytes);
  126. return ecb_crypt(desc, &walk, true);
  127. }
  128. static int ecb_decrypt(struct blkcipher_desc *desc, struct scatterlist *dst,
  129. struct scatterlist *src, unsigned int nbytes)
  130. {
  131. struct blkcipher_walk walk;
  132. blkcipher_walk_init(&walk, dst, src, nbytes);
  133. return ecb_crypt(desc, &walk, false);
  134. }
  135. static unsigned int __cbc_encrypt(struct blkcipher_desc *desc,
  136. struct blkcipher_walk *walk)
  137. {
  138. struct bf_ctx *ctx = crypto_blkcipher_ctx(desc->tfm);
  139. unsigned int bsize = BF_BLOCK_SIZE;
  140. unsigned int nbytes = walk->nbytes;
  141. u64 *src = (u64 *)walk->src.virt.addr;
  142. u64 *dst = (u64 *)walk->dst.virt.addr;
  143. u64 *iv = (u64 *)walk->iv;
  144. do {
  145. *dst = *src ^ *iv;
  146. blowfish_enc_blk(ctx, (u8 *)dst, (u8 *)dst);
  147. iv = dst;
  148. src += 1;
  149. dst += 1;
  150. nbytes -= bsize;
  151. } while (nbytes >= bsize);
  152. *(u64 *)walk->iv = *iv;
  153. return nbytes;
  154. }
  155. static int cbc_encrypt(struct blkcipher_desc *desc, struct scatterlist *dst,
  156. struct scatterlist *src, unsigned int nbytes)
  157. {
  158. struct blkcipher_walk walk;
  159. int err;
  160. blkcipher_walk_init(&walk, dst, src, nbytes);
  161. err = blkcipher_walk_virt(desc, &walk);
  162. while ((nbytes = walk.nbytes)) {
  163. nbytes = __cbc_encrypt(desc, &walk);
  164. err = blkcipher_walk_done(desc, &walk, nbytes);
  165. }
  166. return err;
  167. }
  168. static unsigned int __cbc_decrypt(struct blkcipher_desc *desc,
  169. struct blkcipher_walk *walk)
  170. {
  171. struct bf_ctx *ctx = crypto_blkcipher_ctx(desc->tfm);
  172. const unsigned int bsize = BF_BLOCK_SIZE;
  173. unsigned int nbytes = walk->nbytes;
  174. u64 *src = (u64 *)walk->src.virt.addr;
  175. u64 *dst = (u64 *)walk->dst.virt.addr;
  176. u64 last_iv;
  177. int i;
  178. /* Start of the last block. */
  179. src += nbytes / bsize - 1;
  180. dst += nbytes / bsize - 1;
  181. last_iv = *src;
  182. /* Process multi-block AVX2 batch */
  183. if (nbytes >= bsize * BF_AVX2_PARALLEL_BLOCKS) {
  184. do {
  185. nbytes -= bsize * (BF_AVX2_PARALLEL_BLOCKS - 1);
  186. src -= BF_AVX2_PARALLEL_BLOCKS - 1;
  187. dst -= BF_AVX2_PARALLEL_BLOCKS - 1;
  188. blowfish_cbc_dec_32way(ctx, (u8 *)dst, (u8 *)src);
  189. nbytes -= bsize;
  190. if (nbytes < bsize)
  191. goto done;
  192. *dst ^= *(src - 1);
  193. src -= 1;
  194. dst -= 1;
  195. } while (nbytes >= bsize * BF_AVX2_PARALLEL_BLOCKS);
  196. if (nbytes < bsize)
  197. goto done;
  198. }
  199. /* Process multi-block batch */
  200. if (nbytes >= bsize * BF_PARALLEL_BLOCKS) {
  201. u64 ivs[BF_PARALLEL_BLOCKS - 1];
  202. do {
  203. nbytes -= bsize * (BF_PARALLEL_BLOCKS - 1);
  204. src -= BF_PARALLEL_BLOCKS - 1;
  205. dst -= BF_PARALLEL_BLOCKS - 1;
  206. for (i = 0; i < BF_PARALLEL_BLOCKS - 1; i++)
  207. ivs[i] = src[i];
  208. blowfish_dec_blk_4way(ctx, (u8 *)dst, (u8 *)src);
  209. for (i = 0; i < BF_PARALLEL_BLOCKS - 1; i++)
  210. dst[i + 1] ^= ivs[i];
  211. nbytes -= bsize;
  212. if (nbytes < bsize)
  213. goto done;
  214. *dst ^= *(src - 1);
  215. src -= 1;
  216. dst -= 1;
  217. } while (nbytes >= bsize * BF_PARALLEL_BLOCKS);
  218. if (nbytes < bsize)
  219. goto done;
  220. }
  221. /* Handle leftovers */
  222. for (;;) {
  223. blowfish_dec_blk(ctx, (u8 *)dst, (u8 *)src);
  224. nbytes -= bsize;
  225. if (nbytes < bsize)
  226. break;
  227. *dst ^= *(src - 1);
  228. src -= 1;
  229. dst -= 1;
  230. }
  231. done:
  232. *dst ^= *(u64 *)walk->iv;
  233. *(u64 *)walk->iv = last_iv;
  234. return nbytes;
  235. }
  236. static int cbc_decrypt(struct blkcipher_desc *desc, struct scatterlist *dst,
  237. struct scatterlist *src, unsigned int nbytes)
  238. {
  239. bool fpu_enabled = false;
  240. struct blkcipher_walk walk;
  241. int err;
  242. blkcipher_walk_init(&walk, dst, src, nbytes);
  243. err = blkcipher_walk_virt(desc, &walk);
  244. desc->flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP;
  245. while ((nbytes = walk.nbytes)) {
  246. fpu_enabled = bf_fpu_begin(fpu_enabled, nbytes);
  247. nbytes = __cbc_decrypt(desc, &walk);
  248. err = blkcipher_walk_done(desc, &walk, nbytes);
  249. }
  250. bf_fpu_end(fpu_enabled);
  251. return err;
  252. }
  253. static void ctr_crypt_final(struct blkcipher_desc *desc,
  254. struct blkcipher_walk *walk)
  255. {
  256. struct bf_ctx *ctx = crypto_blkcipher_ctx(desc->tfm);
  257. u8 *ctrblk = walk->iv;
  258. u8 keystream[BF_BLOCK_SIZE];
  259. u8 *src = walk->src.virt.addr;
  260. u8 *dst = walk->dst.virt.addr;
  261. unsigned int nbytes = walk->nbytes;
  262. blowfish_enc_blk(ctx, keystream, ctrblk);
  263. crypto_xor(keystream, src, nbytes);
  264. memcpy(dst, keystream, nbytes);
  265. crypto_inc(ctrblk, BF_BLOCK_SIZE);
  266. }
  267. static unsigned int __ctr_crypt(struct blkcipher_desc *desc,
  268. struct blkcipher_walk *walk)
  269. {
  270. struct bf_ctx *ctx = crypto_blkcipher_ctx(desc->tfm);
  271. unsigned int bsize = BF_BLOCK_SIZE;
  272. unsigned int nbytes = walk->nbytes;
  273. u64 *src = (u64 *)walk->src.virt.addr;
  274. u64 *dst = (u64 *)walk->dst.virt.addr;
  275. int i;
  276. /* Process multi-block AVX2 batch */
  277. if (nbytes >= bsize * BF_AVX2_PARALLEL_BLOCKS) {
  278. do {
  279. blowfish_ctr_32way(ctx, (u8 *)dst, (u8 *)src,
  280. (__be64 *)walk->iv);
  281. src += BF_AVX2_PARALLEL_BLOCKS;
  282. dst += BF_AVX2_PARALLEL_BLOCKS;
  283. nbytes -= bsize * BF_AVX2_PARALLEL_BLOCKS;
  284. } while (nbytes >= bsize * BF_AVX2_PARALLEL_BLOCKS);
  285. if (nbytes < bsize)
  286. goto done;
  287. }
  288. /* Process four block batch */
  289. if (nbytes >= bsize * BF_PARALLEL_BLOCKS) {
  290. __be64 ctrblocks[BF_PARALLEL_BLOCKS];
  291. u64 ctrblk = be64_to_cpu(*(__be64 *)walk->iv);
  292. do {
  293. /* create ctrblks for parallel encrypt */
  294. for (i = 0; i < BF_PARALLEL_BLOCKS; i++) {
  295. if (dst != src)
  296. dst[i] = src[i];
  297. ctrblocks[i] = cpu_to_be64(ctrblk++);
  298. }
  299. blowfish_enc_blk_xor_4way(ctx, (u8 *)dst,
  300. (u8 *)ctrblocks);
  301. src += BF_PARALLEL_BLOCKS;
  302. dst += BF_PARALLEL_BLOCKS;
  303. nbytes -= bsize * BF_PARALLEL_BLOCKS;
  304. } while (nbytes >= bsize * BF_PARALLEL_BLOCKS);
  305. *(__be64 *)walk->iv = cpu_to_be64(ctrblk);
  306. if (nbytes < bsize)
  307. goto done;
  308. }
  309. /* Handle leftovers */
  310. do {
  311. u64 ctrblk;
  312. if (dst != src)
  313. *dst = *src;
  314. ctrblk = *(u64 *)walk->iv;
  315. be64_add_cpu((__be64 *)walk->iv, 1);
  316. blowfish_enc_blk_xor(ctx, (u8 *)dst, (u8 *)&ctrblk);
  317. src += 1;
  318. dst += 1;
  319. } while ((nbytes -= bsize) >= bsize);
  320. done:
  321. return nbytes;
  322. }
  323. static int ctr_crypt(struct blkcipher_desc *desc, struct scatterlist *dst,
  324. struct scatterlist *src, unsigned int nbytes)
  325. {
  326. bool fpu_enabled = false;
  327. struct blkcipher_walk walk;
  328. int err;
  329. blkcipher_walk_init(&walk, dst, src, nbytes);
  330. err = blkcipher_walk_virt_block(desc, &walk, BF_BLOCK_SIZE);
  331. desc->flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP;
  332. while ((nbytes = walk.nbytes) >= BF_BLOCK_SIZE) {
  333. fpu_enabled = bf_fpu_begin(fpu_enabled, nbytes);
  334. nbytes = __ctr_crypt(desc, &walk);
  335. err = blkcipher_walk_done(desc, &walk, nbytes);
  336. }
  337. bf_fpu_end(fpu_enabled);
  338. if (walk.nbytes) {
  339. ctr_crypt_final(desc, &walk);
  340. err = blkcipher_walk_done(desc, &walk, 0);
  341. }
  342. return err;
  343. }
  344. static struct crypto_alg bf_algs[6] = { {
  345. .cra_name = "__ecb-blowfish-avx2",
  346. .cra_driver_name = "__driver-ecb-blowfish-avx2",
  347. .cra_priority = 0,
  348. .cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER,
  349. .cra_blocksize = BF_BLOCK_SIZE,
  350. .cra_ctxsize = sizeof(struct bf_ctx),
  351. .cra_alignmask = 0,
  352. .cra_type = &crypto_blkcipher_type,
  353. .cra_module = THIS_MODULE,
  354. .cra_u = {
  355. .blkcipher = {
  356. .min_keysize = BF_MIN_KEY_SIZE,
  357. .max_keysize = BF_MAX_KEY_SIZE,
  358. .setkey = blowfish_setkey,
  359. .encrypt = ecb_encrypt,
  360. .decrypt = ecb_decrypt,
  361. },
  362. },
  363. }, {
  364. .cra_name = "__cbc-blowfish-avx2",
  365. .cra_driver_name = "__driver-cbc-blowfish-avx2",
  366. .cra_priority = 0,
  367. .cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER,
  368. .cra_blocksize = BF_BLOCK_SIZE,
  369. .cra_ctxsize = sizeof(struct bf_ctx),
  370. .cra_alignmask = 0,
  371. .cra_type = &crypto_blkcipher_type,
  372. .cra_module = THIS_MODULE,
  373. .cra_u = {
  374. .blkcipher = {
  375. .min_keysize = BF_MIN_KEY_SIZE,
  376. .max_keysize = BF_MAX_KEY_SIZE,
  377. .setkey = blowfish_setkey,
  378. .encrypt = cbc_encrypt,
  379. .decrypt = cbc_decrypt,
  380. },
  381. },
  382. }, {
  383. .cra_name = "__ctr-blowfish-avx2",
  384. .cra_driver_name = "__driver-ctr-blowfish-avx2",
  385. .cra_priority = 0,
  386. .cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER,
  387. .cra_blocksize = 1,
  388. .cra_ctxsize = sizeof(struct bf_ctx),
  389. .cra_alignmask = 0,
  390. .cra_type = &crypto_blkcipher_type,
  391. .cra_module = THIS_MODULE,
  392. .cra_u = {
  393. .blkcipher = {
  394. .min_keysize = BF_MIN_KEY_SIZE,
  395. .max_keysize = BF_MAX_KEY_SIZE,
  396. .ivsize = BF_BLOCK_SIZE,
  397. .setkey = blowfish_setkey,
  398. .encrypt = ctr_crypt,
  399. .decrypt = ctr_crypt,
  400. },
  401. },
  402. }, {
  403. .cra_name = "ecb(blowfish)",
  404. .cra_driver_name = "ecb-blowfish-avx2",
  405. .cra_priority = 400,
  406. .cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER | CRYPTO_ALG_ASYNC,
  407. .cra_blocksize = BF_BLOCK_SIZE,
  408. .cra_ctxsize = sizeof(struct async_helper_ctx),
  409. .cra_alignmask = 0,
  410. .cra_type = &crypto_ablkcipher_type,
  411. .cra_module = THIS_MODULE,
  412. .cra_init = ablk_init,
  413. .cra_exit = ablk_exit,
  414. .cra_u = {
  415. .ablkcipher = {
  416. .min_keysize = BF_MIN_KEY_SIZE,
  417. .max_keysize = BF_MAX_KEY_SIZE,
  418. .setkey = ablk_set_key,
  419. .encrypt = ablk_encrypt,
  420. .decrypt = ablk_decrypt,
  421. },
  422. },
  423. }, {
  424. .cra_name = "cbc(blowfish)",
  425. .cra_driver_name = "cbc-blowfish-avx2",
  426. .cra_priority = 400,
  427. .cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER | CRYPTO_ALG_ASYNC,
  428. .cra_blocksize = BF_BLOCK_SIZE,
  429. .cra_ctxsize = sizeof(struct async_helper_ctx),
  430. .cra_alignmask = 0,
  431. .cra_type = &crypto_ablkcipher_type,
  432. .cra_module = THIS_MODULE,
  433. .cra_init = ablk_init,
  434. .cra_exit = ablk_exit,
  435. .cra_u = {
  436. .ablkcipher = {
  437. .min_keysize = BF_MIN_KEY_SIZE,
  438. .max_keysize = BF_MAX_KEY_SIZE,
  439. .ivsize = BF_BLOCK_SIZE,
  440. .setkey = ablk_set_key,
  441. .encrypt = __ablk_encrypt,
  442. .decrypt = ablk_decrypt,
  443. },
  444. },
  445. }, {
  446. .cra_name = "ctr(blowfish)",
  447. .cra_driver_name = "ctr-blowfish-avx2",
  448. .cra_priority = 400,
  449. .cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER | CRYPTO_ALG_ASYNC,
  450. .cra_blocksize = 1,
  451. .cra_ctxsize = sizeof(struct async_helper_ctx),
  452. .cra_alignmask = 0,
  453. .cra_type = &crypto_ablkcipher_type,
  454. .cra_module = THIS_MODULE,
  455. .cra_init = ablk_init,
  456. .cra_exit = ablk_exit,
  457. .cra_u = {
  458. .ablkcipher = {
  459. .min_keysize = BF_MIN_KEY_SIZE,
  460. .max_keysize = BF_MAX_KEY_SIZE,
  461. .ivsize = BF_BLOCK_SIZE,
  462. .setkey = ablk_set_key,
  463. .encrypt = ablk_encrypt,
  464. .decrypt = ablk_encrypt,
  465. .geniv = "chainiv",
  466. },
  467. },
  468. } };
  469. static int __init init(void)
  470. {
  471. u64 xcr0;
  472. if (!cpu_has_avx2 || !cpu_has_osxsave) {
  473. pr_info("AVX2 instructions are not detected.\n");
  474. return -ENODEV;
  475. }
  476. xcr0 = xgetbv(XCR_XFEATURE_ENABLED_MASK);
  477. if ((xcr0 & (XSTATE_SSE | XSTATE_YMM)) != (XSTATE_SSE | XSTATE_YMM)) {
  478. pr_info("AVX detected but unusable.\n");
  479. return -ENODEV;
  480. }
  481. return crypto_register_algs(bf_algs, ARRAY_SIZE(bf_algs));
  482. }
  483. static void __exit fini(void)
  484. {
  485. crypto_unregister_algs(bf_algs, ARRAY_SIZE(bf_algs));
  486. }
  487. module_init(init);
  488. module_exit(fini);
  489. MODULE_LICENSE("GPL");
  490. MODULE_DESCRIPTION("Blowfish Cipher Algorithm, AVX2 optimized");
  491. MODULE_ALIAS("blowfish");
  492. MODULE_ALIAS("blowfish-asm");