Generate default options for application */
| 1468 | |
| 1469 | /** Generate default options for application */ |
| 1470 | static void |
| 1471 | l2fwd_crypto_default_options(struct l2fwd_crypto_options *options) |
| 1472 | { |
| 1473 | options->portmask = 0xffffffff; |
| 1474 | options->nb_ports_per_lcore = 1; |
| 1475 | options->refresh_period = DEFAULT_TIMER_PERIOD * |
| 1476 | TIMER_MILLISECOND * 1000; |
| 1477 | options->single_lcore = 0; |
| 1478 | options->sessionless = 0; |
| 1479 | |
| 1480 | options->xform_chain = L2FWD_CRYPTO_CIPHER_HASH; |
| 1481 | |
| 1482 | /* Cipher Data */ |
| 1483 | options->cipher_xform.type = RTE_CRYPTO_SYM_XFORM_CIPHER; |
| 1484 | options->cipher_xform.next = NULL; |
| 1485 | options->ckey_param = 0; |
| 1486 | options->ckey_random_size = -1; |
| 1487 | options->cipher_xform.cipher.key.length = 0; |
| 1488 | options->cipher_iv_param = 0; |
| 1489 | options->cipher_iv_random_size = -1; |
| 1490 | options->cipher_iv.length = 0; |
| 1491 | |
| 1492 | options->cipher_xform.cipher.algo = RTE_CRYPTO_CIPHER_AES_CBC; |
| 1493 | options->cipher_xform.cipher.op = RTE_CRYPTO_CIPHER_OP_ENCRYPT; |
| 1494 | options->cipher_xform.cipher.dataunit_len = 0; |
| 1495 | |
| 1496 | /* Authentication Data */ |
| 1497 | options->auth_xform.type = RTE_CRYPTO_SYM_XFORM_AUTH; |
| 1498 | options->auth_xform.next = NULL; |
| 1499 | options->akey_param = 0; |
| 1500 | options->akey_random_size = -1; |
| 1501 | options->auth_xform.auth.key.length = 0; |
| 1502 | options->auth_iv_param = 0; |
| 1503 | options->auth_iv_random_size = -1; |
| 1504 | options->auth_iv.length = 0; |
| 1505 | |
| 1506 | options->auth_xform.auth.algo = RTE_CRYPTO_AUTH_SHA1_HMAC; |
| 1507 | options->auth_xform.auth.op = RTE_CRYPTO_AUTH_OP_GENERATE; |
| 1508 | |
| 1509 | /* AEAD Data */ |
| 1510 | options->aead_xform.type = RTE_CRYPTO_SYM_XFORM_AEAD; |
| 1511 | options->aead_xform.next = NULL; |
| 1512 | options->aead_key_param = 0; |
| 1513 | options->aead_key_random_size = -1; |
| 1514 | options->aead_xform.aead.key.length = 0; |
| 1515 | options->aead_iv_param = 0; |
| 1516 | options->aead_iv_random_size = -1; |
| 1517 | options->aead_iv.length = 0; |
| 1518 | |
| 1519 | options->aead_xform.aead.algo = RTE_CRYPTO_AEAD_AES_GCM; |
| 1520 | options->aead_xform.aead.op = RTE_CRYPTO_AEAD_OP_ENCRYPT; |
| 1521 | |
| 1522 | options->aad_param = 0; |
| 1523 | options->aad_random_size = -1; |
| 1524 | options->aad.length = 0; |
| 1525 | |
| 1526 | options->digest_size = -1; |
| 1527 |
no outgoing calls
no test coverage detected