cryptocteon.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576
  1. /*
  2. * Octeon Crypto for OCF
  3. *
  4. * Written by David McCullough <david_mccullough@mcafee.com>
  5. * Copyright (C) 2009-2010 David McCullough
  6. *
  7. * LICENSE TERMS
  8. *
  9. * The free distribution and use of this software in both source and binary
  10. * form is allowed (with or without changes) provided that:
  11. *
  12. * 1. distributions of this source code include the above copyright
  13. * notice, this list of conditions and the following disclaimer;
  14. *
  15. * 2. distributions in binary form include the above copyright
  16. * notice, this list of conditions and the following disclaimer
  17. * in the documentation and/or other associated materials;
  18. *
  19. * 3. the copyright holder's name is not used to endorse products
  20. * built using this software without specific written permission.
  21. *
  22. * DISCLAIMER
  23. *
  24. * This software is provided 'as is' with no explicit or implied warranties
  25. * in respect of its properties, including, but not limited to, correctness
  26. * and/or fitness for purpose.
  27. * ---------------------------------------------------------------------------
  28. */
  29. #include <linux/version.h>
  30. #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && !defined(AUTOCONF_INCLUDED)
  31. #include <linux/config.h>
  32. #endif
  33. #include <linux/module.h>
  34. #include <linux/init.h>
  35. #include <linux/list.h>
  36. #include <linux/slab.h>
  37. #include <linux/sched.h>
  38. #include <linux/wait.h>
  39. #include <linux/crypto.h>
  40. #include <linux/mm.h>
  41. #include <linux/skbuff.h>
  42. #include <linux/random.h>
  43. #include <linux/scatterlist.h>
  44. #include <cryptodev.h>
  45. #include <uio.h>
  46. struct {
  47. softc_device_decl sc_dev;
  48. } octo_softc;
  49. #define offset_in_page(p) ((unsigned long)(p) & ~PAGE_MASK)
  50. struct octo_sess {
  51. int octo_encalg;
  52. #define MAX_CIPHER_KEYLEN 64
  53. char octo_enckey[MAX_CIPHER_KEYLEN];
  54. int octo_encklen;
  55. int octo_macalg;
  56. #define MAX_HASH_KEYLEN 64
  57. char octo_mackey[MAX_HASH_KEYLEN];
  58. int octo_macklen;
  59. int octo_mackey_set;
  60. int octo_mlen;
  61. int octo_ivsize;
  62. int (*octo_encrypt)(struct octo_sess *od,
  63. struct scatterlist *sg, int sg_len,
  64. int auth_off, int auth_len,
  65. int crypt_off, int crypt_len,
  66. int icv_off, uint8_t *ivp);
  67. int (*octo_decrypt)(struct octo_sess *od,
  68. struct scatterlist *sg, int sg_len,
  69. int auth_off, int auth_len,
  70. int crypt_off, int crypt_len,
  71. int icv_off, uint8_t *ivp);
  72. uint64_t octo_hminner[3];
  73. uint64_t octo_hmouter[3];
  74. };
  75. int32_t octo_id = -1;
  76. module_param(octo_id, int, 0444);
  77. MODULE_PARM_DESC(octo_id, "Read-Only OCF ID for cryptocteon driver");
  78. static struct octo_sess **octo_sessions = NULL;
  79. static u_int32_t octo_sesnum = 0;
  80. static int octo_process(device_t, struct cryptop *, int);
  81. static int octo_newsession(device_t, u_int32_t *, struct cryptoini *);
  82. static int octo_freesession(device_t, u_int64_t);
  83. static device_method_t octo_methods = {
  84. /* crypto device methods */
  85. DEVMETHOD(cryptodev_newsession, octo_newsession),
  86. DEVMETHOD(cryptodev_freesession,octo_freesession),
  87. DEVMETHOD(cryptodev_process, octo_process),
  88. };
  89. #define debug octo_debug
  90. int octo_debug = 0;
  91. module_param(octo_debug, int, 0644);
  92. MODULE_PARM_DESC(octo_debug, "Enable debug");
  93. #include "cavium_crypto.c"
  94. /*
  95. * Generate a new octo session. We artifically limit it to a single
  96. * hash/cipher or hash-cipher combo just to make it easier, most callers
  97. * do not expect more than this anyway.
  98. */
  99. static int
  100. octo_newsession(device_t dev, u_int32_t *sid, struct cryptoini *cri)
  101. {
  102. struct cryptoini *c, *encini = NULL, *macini = NULL;
  103. struct octo_sess **ocd;
  104. int i;
  105. dprintk("%s()\n", __FUNCTION__);
  106. if (sid == NULL || cri == NULL) {
  107. dprintk("%s,%d - EINVAL\n", __FILE__, __LINE__);
  108. return EINVAL;
  109. }
  110. /*
  111. * To keep it simple, we only handle hash, cipher or hash/cipher in a
  112. * session, you cannot currently do multiple ciphers/hashes in one
  113. * session even though it would be possibel to code this driver to
  114. * handle it.
  115. */
  116. for (i = 0, c = cri; c && i < 2; i++) {
  117. if (c->cri_alg == CRYPTO_MD5_HMAC ||
  118. c->cri_alg == CRYPTO_SHA1_HMAC ||
  119. c->cri_alg == CRYPTO_NULL_HMAC) {
  120. if (macini) {
  121. break;
  122. }
  123. macini = c;
  124. }
  125. if (c->cri_alg == CRYPTO_DES_CBC ||
  126. c->cri_alg == CRYPTO_3DES_CBC ||
  127. c->cri_alg == CRYPTO_AES_CBC ||
  128. c->cri_alg == CRYPTO_NULL_CBC) {
  129. if (encini) {
  130. break;
  131. }
  132. encini = c;
  133. }
  134. c = c->cri_next;
  135. }
  136. if (!macini && !encini) {
  137. dprintk("%s,%d - EINVAL bad cipher/hash or combination\n",
  138. __FILE__, __LINE__);
  139. return EINVAL;
  140. }
  141. if (c) {
  142. dprintk("%s,%d - EINVAL cannot handle chained cipher/hash combos\n",
  143. __FILE__, __LINE__);
  144. return EINVAL;
  145. }
  146. /*
  147. * So we have something we can do, lets setup the session
  148. */
  149. if (octo_sessions) {
  150. for (i = 1; i < octo_sesnum; i++)
  151. if (octo_sessions[i] == NULL)
  152. break;
  153. } else
  154. i = 1; /* NB: to silence compiler warning */
  155. if (octo_sessions == NULL || i == octo_sesnum) {
  156. if (octo_sessions == NULL) {
  157. i = 1; /* We leave octo_sessions[0] empty */
  158. octo_sesnum = CRYPTO_SW_SESSIONS;
  159. } else
  160. octo_sesnum *= 2;
  161. ocd = kmalloc(octo_sesnum * sizeof(struct octo_sess *), SLAB_ATOMIC);
  162. if (ocd == NULL) {
  163. /* Reset session number */
  164. if (octo_sesnum == CRYPTO_SW_SESSIONS)
  165. octo_sesnum = 0;
  166. else
  167. octo_sesnum /= 2;
  168. dprintk("%s,%d: ENOBUFS\n", __FILE__, __LINE__);
  169. return ENOBUFS;
  170. }
  171. memset(ocd, 0, octo_sesnum * sizeof(struct octo_sess *));
  172. /* Copy existing sessions */
  173. if (octo_sessions) {
  174. memcpy(ocd, octo_sessions,
  175. (octo_sesnum / 2) * sizeof(struct octo_sess *));
  176. kfree(octo_sessions);
  177. }
  178. octo_sessions = ocd;
  179. }
  180. ocd = &octo_sessions[i];
  181. *sid = i;
  182. *ocd = (struct octo_sess *) kmalloc(sizeof(struct octo_sess), SLAB_ATOMIC);
  183. if (*ocd == NULL) {
  184. octo_freesession(NULL, i);
  185. dprintk("%s,%d: ENOBUFS\n", __FILE__, __LINE__);
  186. return ENOBUFS;
  187. }
  188. memset(*ocd, 0, sizeof(struct octo_sess));
  189. if (encini && encini->cri_key) {
  190. (*ocd)->octo_encklen = (encini->cri_klen + 7) / 8;
  191. memcpy((*ocd)->octo_enckey, encini->cri_key, (*ocd)->octo_encklen);
  192. }
  193. if (macini && macini->cri_key) {
  194. (*ocd)->octo_macklen = (macini->cri_klen + 7) / 8;
  195. memcpy((*ocd)->octo_mackey, macini->cri_key, (*ocd)->octo_macklen);
  196. }
  197. (*ocd)->octo_mlen = 0;
  198. if (encini && encini->cri_mlen)
  199. (*ocd)->octo_mlen = encini->cri_mlen;
  200. else if (macini && macini->cri_mlen)
  201. (*ocd)->octo_mlen = macini->cri_mlen;
  202. else
  203. (*ocd)->octo_mlen = 12;
  204. /*
  205. * point c at the enc if it exists, otherwise the mac
  206. */
  207. c = encini ? encini : macini;
  208. switch (c->cri_alg) {
  209. case CRYPTO_DES_CBC:
  210. case CRYPTO_3DES_CBC:
  211. (*ocd)->octo_ivsize = 8;
  212. switch (macini ? macini->cri_alg : -1) {
  213. case CRYPTO_MD5_HMAC:
  214. (*ocd)->octo_encrypt = octo_des_cbc_md5_encrypt;
  215. (*ocd)->octo_decrypt = octo_des_cbc_md5_decrypt;
  216. octo_calc_hash(0, macini->cri_key, (*ocd)->octo_hminner,
  217. (*ocd)->octo_hmouter);
  218. break;
  219. case CRYPTO_SHA1_HMAC:
  220. (*ocd)->octo_encrypt = octo_des_cbc_sha1_encrypt;
  221. (*ocd)->octo_decrypt = octo_des_cbc_sha1_decrypt;
  222. octo_calc_hash(1, macini->cri_key, (*ocd)->octo_hminner,
  223. (*ocd)->octo_hmouter);
  224. break;
  225. case -1:
  226. (*ocd)->octo_encrypt = octo_des_cbc_encrypt;
  227. (*ocd)->octo_decrypt = octo_des_cbc_decrypt;
  228. break;
  229. default:
  230. octo_freesession(NULL, i);
  231. dprintk("%s,%d: EINVALn", __FILE__, __LINE__);
  232. return EINVAL;
  233. }
  234. break;
  235. case CRYPTO_AES_CBC:
  236. (*ocd)->octo_ivsize = 16;
  237. switch (macini ? macini->cri_alg : -1) {
  238. case CRYPTO_MD5_HMAC:
  239. (*ocd)->octo_encrypt = octo_aes_cbc_md5_encrypt;
  240. (*ocd)->octo_decrypt = octo_aes_cbc_md5_decrypt;
  241. octo_calc_hash(0, macini->cri_key, (*ocd)->octo_hminner,
  242. (*ocd)->octo_hmouter);
  243. break;
  244. case CRYPTO_SHA1_HMAC:
  245. (*ocd)->octo_encrypt = octo_aes_cbc_sha1_encrypt;
  246. (*ocd)->octo_decrypt = octo_aes_cbc_sha1_decrypt;
  247. octo_calc_hash(1, macini->cri_key, (*ocd)->octo_hminner,
  248. (*ocd)->octo_hmouter);
  249. break;
  250. case -1:
  251. (*ocd)->octo_encrypt = octo_aes_cbc_encrypt;
  252. (*ocd)->octo_decrypt = octo_aes_cbc_decrypt;
  253. break;
  254. default:
  255. octo_freesession(NULL, i);
  256. dprintk("%s,%d: EINVALn", __FILE__, __LINE__);
  257. return EINVAL;
  258. }
  259. break;
  260. case CRYPTO_MD5_HMAC:
  261. (*ocd)->octo_encrypt = octo_null_md5_encrypt;
  262. (*ocd)->octo_decrypt = octo_null_md5_encrypt; /* encrypt == decrypt */
  263. octo_calc_hash(0, macini->cri_key, (*ocd)->octo_hminner,
  264. (*ocd)->octo_hmouter);
  265. break;
  266. case CRYPTO_SHA1_HMAC:
  267. (*ocd)->octo_encrypt = octo_null_sha1_encrypt;
  268. (*ocd)->octo_decrypt = octo_null_sha1_encrypt; /* encrypt == decrypt */
  269. octo_calc_hash(1, macini->cri_key, (*ocd)->octo_hminner,
  270. (*ocd)->octo_hmouter);
  271. break;
  272. default:
  273. octo_freesession(NULL, i);
  274. dprintk("%s,%d: EINVALn", __FILE__, __LINE__);
  275. return EINVAL;
  276. }
  277. (*ocd)->octo_encalg = encini ? encini->cri_alg : -1;
  278. (*ocd)->octo_macalg = macini ? macini->cri_alg : -1;
  279. return 0;
  280. }
  281. /*
  282. * Free a session.
  283. */
  284. static int
  285. octo_freesession(device_t dev, u_int64_t tid)
  286. {
  287. u_int32_t sid = CRYPTO_SESID2LID(tid);
  288. dprintk("%s()\n", __FUNCTION__);
  289. if (sid > octo_sesnum || octo_sessions == NULL ||
  290. octo_sessions[sid] == NULL) {
  291. dprintk("%s,%d: EINVAL\n", __FILE__, __LINE__);
  292. return(EINVAL);
  293. }
  294. /* Silently accept and return */
  295. if (sid == 0)
  296. return(0);
  297. if (octo_sessions[sid])
  298. kfree(octo_sessions[sid]);
  299. octo_sessions[sid] = NULL;
  300. return 0;
  301. }
  302. /*
  303. * Process a request.
  304. */
  305. static int
  306. octo_process(device_t dev, struct cryptop *crp, int hint)
  307. {
  308. struct cryptodesc *crd;
  309. struct octo_sess *od;
  310. u_int32_t lid;
  311. #define SCATTERLIST_MAX 16
  312. struct scatterlist sg[SCATTERLIST_MAX];
  313. int sg_num, sg_len;
  314. struct sk_buff *skb = NULL;
  315. struct uio *uiop = NULL;
  316. struct cryptodesc *enccrd = NULL, *maccrd = NULL;
  317. unsigned char *ivp = NULL;
  318. unsigned char iv_data[HASH_MAX_LEN];
  319. int auth_off = 0, auth_len = 0, crypt_off = 0, crypt_len = 0, icv_off = 0;
  320. dprintk("%s()\n", __FUNCTION__);
  321. /* Sanity check */
  322. if (crp == NULL) {
  323. dprintk("%s,%d: EINVAL\n", __FILE__, __LINE__);
  324. return EINVAL;
  325. }
  326. crp->crp_etype = 0;
  327. if (crp->crp_desc == NULL || crp->crp_buf == NULL) {
  328. dprintk("%s,%d: EINVAL\n", __FILE__, __LINE__);
  329. crp->crp_etype = EINVAL;
  330. goto done;
  331. }
  332. lid = crp->crp_sid & 0xffffffff;
  333. if (lid >= octo_sesnum || lid == 0 || octo_sessions == NULL ||
  334. octo_sessions[lid] == NULL) {
  335. crp->crp_etype = ENOENT;
  336. dprintk("%s,%d: ENOENT\n", __FILE__, __LINE__);
  337. goto done;
  338. }
  339. od = octo_sessions[lid];
  340. /*
  341. * do some error checking outside of the loop for SKB and IOV processing
  342. * this leaves us with valid skb or uiop pointers for later
  343. */
  344. if (crp->crp_flags & CRYPTO_F_SKBUF) {
  345. skb = (struct sk_buff *) crp->crp_buf;
  346. if (skb_shinfo(skb)->nr_frags >= SCATTERLIST_MAX) {
  347. printk("%s,%d: %d nr_frags > SCATTERLIST_MAX", __FILE__, __LINE__,
  348. skb_shinfo(skb)->nr_frags);
  349. goto done;
  350. }
  351. } else if (crp->crp_flags & CRYPTO_F_IOV) {
  352. uiop = (struct uio *) crp->crp_buf;
  353. if (uiop->uio_iovcnt > SCATTERLIST_MAX) {
  354. printk("%s,%d: %d uio_iovcnt > SCATTERLIST_MAX", __FILE__, __LINE__,
  355. uiop->uio_iovcnt);
  356. goto done;
  357. }
  358. }
  359. /* point our enccrd and maccrd appropriately */
  360. crd = crp->crp_desc;
  361. if (crd->crd_alg == od->octo_encalg) enccrd = crd;
  362. if (crd->crd_alg == od->octo_macalg) maccrd = crd;
  363. crd = crd->crd_next;
  364. if (crd) {
  365. if (crd->crd_alg == od->octo_encalg) enccrd = crd;
  366. if (crd->crd_alg == od->octo_macalg) maccrd = crd;
  367. crd = crd->crd_next;
  368. }
  369. if (crd) {
  370. crp->crp_etype = EINVAL;
  371. dprintk("%s,%d: ENOENT - descriptors do not match session\n",
  372. __FILE__, __LINE__);
  373. goto done;
  374. }
  375. if (enccrd) {
  376. if (enccrd->crd_flags & CRD_F_ENCRYPT) {
  377. if (enccrd->crd_flags & CRD_F_IV_EXPLICIT)
  378. ivp = enccrd->crd_iv;
  379. else
  380. read_random((ivp = iv_data), od->octo_ivsize);
  381. if ((enccrd->crd_flags & CRD_F_IV_PRESENT) == 0)
  382. crypto_copyback(crp->crp_flags, crp->crp_buf,
  383. enccrd->crd_inject, od->octo_ivsize, ivp);
  384. } else {
  385. if (enccrd->crd_flags & CRD_F_IV_EXPLICIT) {
  386. ivp = enccrd->crd_iv;
  387. } else {
  388. ivp = iv_data;
  389. crypto_copydata(crp->crp_flags, crp->crp_buf,
  390. enccrd->crd_inject, od->octo_ivsize, (caddr_t) ivp);
  391. }
  392. }
  393. if (maccrd) {
  394. auth_off = maccrd->crd_skip;
  395. auth_len = maccrd->crd_len;
  396. icv_off = maccrd->crd_inject;
  397. }
  398. crypt_off = enccrd->crd_skip;
  399. crypt_len = enccrd->crd_len;
  400. } else { /* if (maccrd) */
  401. auth_off = maccrd->crd_skip;
  402. auth_len = maccrd->crd_len;
  403. icv_off = maccrd->crd_inject;
  404. }
  405. /*
  406. * setup the SG list to cover the buffer
  407. */
  408. memset(sg, 0, sizeof(sg));
  409. if (crp->crp_flags & CRYPTO_F_SKBUF) {
  410. int i, len;
  411. sg_num = 0;
  412. sg_len = 0;
  413. len = skb_headlen(skb);
  414. sg_set_page(&sg[sg_num], virt_to_page(skb->data), len,
  415. offset_in_page(skb->data));
  416. sg_len += len;
  417. sg_num++;
  418. for (i = 0; i < skb_shinfo(skb)->nr_frags && sg_num < SCATTERLIST_MAX;
  419. i++) {
  420. len = skb_shinfo(skb)->frags[i].size;
  421. sg_set_page(&sg[sg_num], skb_frag_page(&skb_shinfo(skb)->frags[i]),
  422. len, skb_shinfo(skb)->frags[i].page_offset);
  423. sg_len += len;
  424. sg_num++;
  425. }
  426. } else if (crp->crp_flags & CRYPTO_F_IOV) {
  427. int len;
  428. sg_len = 0;
  429. for (sg_num = 0; sg_len < crp->crp_ilen &&
  430. sg_num < uiop->uio_iovcnt &&
  431. sg_num < SCATTERLIST_MAX; sg_num++) {
  432. len = uiop->uio_iov[sg_num].iov_len;
  433. sg_set_page(&sg[sg_num],
  434. virt_to_page(uiop->uio_iov[sg_num].iov_base), len,
  435. offset_in_page(uiop->uio_iov[sg_num].iov_base));
  436. sg_len += len;
  437. }
  438. } else {
  439. sg_len = crp->crp_ilen;
  440. sg_set_page(&sg[0], virt_to_page(crp->crp_buf), sg_len,
  441. offset_in_page(crp->crp_buf));
  442. sg_num = 1;
  443. }
  444. if (sg_num > 0)
  445. sg_mark_end(&sg[sg_num-1]);
  446. /*
  447. * setup a new explicit key
  448. */
  449. if (enccrd) {
  450. if (enccrd->crd_flags & CRD_F_KEY_EXPLICIT) {
  451. od->octo_encklen = (enccrd->crd_klen + 7) / 8;
  452. memcpy(od->octo_enckey, enccrd->crd_key, od->octo_encklen);
  453. }
  454. }
  455. if (maccrd) {
  456. if (maccrd->crd_flags & CRD_F_KEY_EXPLICIT) {
  457. od->octo_macklen = (maccrd->crd_klen + 7) / 8;
  458. memcpy(od->octo_mackey, maccrd->crd_key, od->octo_macklen);
  459. od->octo_mackey_set = 0;
  460. }
  461. if (!od->octo_mackey_set) {
  462. octo_calc_hash(maccrd->crd_alg == CRYPTO_MD5_HMAC ? 0 : 1,
  463. maccrd->crd_key, od->octo_hminner, od->octo_hmouter);
  464. od->octo_mackey_set = 1;
  465. }
  466. }
  467. if (!enccrd || (enccrd->crd_flags & CRD_F_ENCRYPT))
  468. (*od->octo_encrypt)(od, sg, sg_len,
  469. auth_off, auth_len, crypt_off, crypt_len, icv_off, ivp);
  470. else
  471. (*od->octo_decrypt)(od, sg, sg_len,
  472. auth_off, auth_len, crypt_off, crypt_len, icv_off, ivp);
  473. done:
  474. crypto_done(crp);
  475. return 0;
  476. }
  477. static int
  478. cryptocteon_init(void)
  479. {
  480. dprintk("%s(%p)\n", __FUNCTION__, cryptocteon_init);
  481. softc_device_init(&octo_softc, "cryptocteon", 0, octo_methods);
  482. octo_id = crypto_get_driverid(softc_get_device(&octo_softc),
  483. CRYPTOCAP_F_HARDWARE | CRYPTOCAP_F_SYNC);
  484. if (octo_id < 0) {
  485. printk("Cryptocteon device cannot initialize!");
  486. return -ENODEV;
  487. }
  488. crypto_register(octo_id, CRYPTO_MD5_HMAC, 0,0);
  489. crypto_register(octo_id, CRYPTO_SHA1_HMAC, 0,0);
  490. //crypto_register(octo_id, CRYPTO_MD5, 0,0);
  491. //crypto_register(octo_id, CRYPTO_SHA1, 0,0);
  492. crypto_register(octo_id, CRYPTO_DES_CBC, 0,0);
  493. crypto_register(octo_id, CRYPTO_3DES_CBC, 0,0);
  494. crypto_register(octo_id, CRYPTO_AES_CBC, 0,0);
  495. return(0);
  496. }
  497. static void
  498. cryptocteon_exit(void)
  499. {
  500. dprintk("%s()\n", __FUNCTION__);
  501. crypto_unregister_all(octo_id);
  502. octo_id = -1;
  503. }
  504. module_init(cryptocteon_init);
  505. module_exit(cryptocteon_exit);
  506. MODULE_LICENSE("Dual BSD/GPL");
  507. MODULE_AUTHOR("David McCullough <david_mccullough@mcafee.com>");
  508. MODULE_DESCRIPTION("Cryptocteon (OCF module for Cavium OCTEON crypto)");