2 * esp_decrypt.c : IPSec ESP Decrypt node using DPDK Cryptodev
4 * Copyright (c) 2017 Intel and/or its affiliates.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a opy of the License at:
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 #include <vnet/vnet.h>
19 #include <vnet/api_errno.h>
20 #include <vnet/ip/ip.h>
22 #include <vnet/ipsec/ipsec.h>
23 #include <vnet/ipsec/esp.h>
24 #include <dpdk/buffer.h>
25 #include <dpdk/ipsec/ipsec.h>
26 #include <dpdk/device/dpdk.h>
27 #include <dpdk/device/dpdk_priv.h>
29 #define foreach_esp_decrypt_next \
30 _(DROP, "error-drop") \
31 _(IP4_INPUT, "ip4-input-no-checksum") \
32 _(IP6_INPUT, "ip6-input")
34 #define _(v, s) ESP_DECRYPT_NEXT_##v,
37 foreach_esp_decrypt_next
42 #define foreach_esp_decrypt_error \
43 _(RX_PKTS, "ESP pkts received") \
44 _(DECRYPTION_FAILED, "ESP decryption failed") \
45 _(REPLAY, "SA replayed packet") \
46 _(NOT_IP, "Not IP packet (dropped)") \
47 _(ENQ_FAIL, "Enqueue failed (buffer full)") \
48 _(DISCARD, "Not enough crypto operations, discarding frame") \
49 _(BAD_LEN, "Invalid ciphertext length") \
50 _(SESSION, "Failed to get crypto session") \
51 _(NOSUP, "Cipher/Auth not supported")
56 #define _(sym,str) ESP_DECRYPT_ERROR_##sym,
57 foreach_esp_decrypt_error
60 } esp_decrypt_error_t;
62 static char *esp_decrypt_error_strings[] = {
63 #define _(sym,string) string,
64 foreach_esp_decrypt_error
68 extern vlib_node_registration_t dpdk_esp4_decrypt_node;
69 extern vlib_node_registration_t dpdk_esp6_decrypt_node;
73 ipsec_crypto_alg_t crypto_alg;
74 ipsec_integ_alg_t integ_alg;
76 } esp_decrypt_trace_t;
78 /* packet trace format function */
80 format_esp_decrypt_trace (u8 * s, va_list * args)
82 CLIB_UNUSED (vlib_main_t * vm) = va_arg (*args, vlib_main_t *);
83 CLIB_UNUSED (vlib_node_t * node) = va_arg (*args, vlib_node_t *);
84 esp_decrypt_trace_t *t = va_arg (*args, esp_decrypt_trace_t *);
85 u32 indent = format_get_indent (s);
87 s = format (s, "cipher %U auth %U\n",
88 format_ipsec_crypto_alg, t->crypto_alg,
89 format_ipsec_integ_alg, t->integ_alg);
90 s = format (s, "%U%U",
91 format_white_space, indent, format_esp_header, t->packet_data);
96 dpdk_esp_decrypt_inline (vlib_main_t * vm,
97 vlib_node_runtime_t * node,
98 vlib_frame_t * from_frame, int is_ip6)
100 u32 n_left_from, *from, *to_next, next_index, thread_index;
101 ipsec_main_t *im = &ipsec_main;
102 u32 thread_idx = vlib_get_thread_index ();
103 dpdk_crypto_main_t *dcm = &dpdk_crypto_main;
104 crypto_resource_t *res = 0;
106 crypto_alg_t *cipher_alg = 0, *auth_alg = 0;
107 struct rte_cryptodev_sym_session *session = 0;
108 u32 ret, last_sa_index = ~0;
109 u8 numa = rte_socket_id ();
111 crypto_worker_main_t *cwm =
112 vec_elt_at_index (dcm->workers_main, thread_idx);
113 struct rte_crypto_op **ops = cwm->ops;
115 from = vlib_frame_vector_args (from_frame);
116 n_left_from = from_frame->n_vectors;
117 thread_index = vm->thread_index;
119 ret = crypto_alloc_ops (numa, ops, n_left_from);
123 vlib_node_increment_counter (vm, dpdk_esp6_decrypt_node.index,
124 ESP_DECRYPT_ERROR_DISCARD, 1);
126 vlib_node_increment_counter (vm, dpdk_esp4_decrypt_node.index,
127 ESP_DECRYPT_ERROR_DISCARD, 1);
128 /* Discard whole frame */
132 next_index = ESP_DECRYPT_NEXT_DROP;
134 while (n_left_from > 0)
138 vlib_get_next_frame (vm, node, next_index, to_next, n_left_to_next);
140 while (n_left_from > 0 && n_left_to_next > 0)
143 u32 bi0, sa_index0, iv_size;
147 struct rte_mbuf *mb0;
148 struct rte_crypto_op *op;
155 b0 = vlib_get_buffer (vm, bi0);
156 mb0 = rte_mbuf_from_vlib_buffer (b0);
157 esp0 = vlib_buffer_get_current (b0);
160 CLIB_PREFETCH (esp0, sizeof (esp0[0]) + 16, LOAD);
162 CLIB_PREFETCH (mb0, CLIB_CACHE_LINE_BYTES, STORE);
166 ASSERT (op->status == RTE_CRYPTO_OP_STATUS_NOT_PROCESSED);
168 dpdk_op_priv_t *priv = crypto_op_get_priv (op);
169 /* store bi in op private */
174 sizeof (op[0]) + sizeof (op[0].sym[0]) + sizeof (priv[0]);
175 CLIB_PREFETCH (op, op_len, STORE);
177 sa_index0 = vnet_buffer (b0)->ipsec.sad_index;
178 vlib_prefetch_combined_counter (&ipsec_sa_counters,
179 thread_index, sa_index0);
181 if (sa_index0 != last_sa_index)
183 sa0 = pool_elt_at_index (im->sad, sa_index0);
186 vec_elt_at_index (dcm->cipher_algs, sa0->crypto_alg);
187 auth_alg = vec_elt_at_index (dcm->auth_algs, sa0->integ_alg);
189 is_aead = (cipher_alg->type == RTE_CRYPTO_SYM_XFORM_AEAD);
191 auth_alg = cipher_alg;
193 res_idx = get_resource (cwm, sa0);
195 if (PREDICT_FALSE (res_idx == (u16) ~ 0))
197 clib_warning ("unsupported SA by thread index %u",
200 vlib_node_increment_counter (vm,
201 dpdk_esp6_decrypt_node.index,
202 ESP_DECRYPT_ERROR_NOSUP, 1);
204 vlib_node_increment_counter (vm,
205 dpdk_esp4_decrypt_node.index,
206 ESP_DECRYPT_ERROR_NOSUP, 1);
212 res = vec_elt_at_index (dcm->resource, res_idx);
214 error = crypto_get_session (&session, sa_index0, res, cwm, 0);
215 if (PREDICT_FALSE (error || !session))
217 clib_warning ("failed to get crypto session");
219 vlib_node_increment_counter (vm,
220 dpdk_esp6_decrypt_node.index,
221 ESP_DECRYPT_ERROR_SESSION,
224 vlib_node_increment_counter (vm,
225 dpdk_esp4_decrypt_node.index,
226 ESP_DECRYPT_ERROR_SESSION,
234 last_sa_index = sa_index0;
237 /* anti-replay check */
238 if (ipsec_sa_anti_replay_check
239 (sa0, clib_host_to_net_u32 (esp0->seq)))
241 clib_warning ("failed anti-replay check");
243 vlib_node_increment_counter (vm,
244 dpdk_esp6_decrypt_node.index,
245 ESP_DECRYPT_ERROR_REPLAY, 1);
247 vlib_node_increment_counter (vm,
248 dpdk_esp4_decrypt_node.index,
249 ESP_DECRYPT_ERROR_REPLAY, 1);
257 priv->next = DPDK_CRYPTO_INPUT_NEXT_DECRYPT6_POST;
260 priv->next = DPDK_CRYPTO_INPUT_NEXT_DECRYPT4_POST;
261 b0->flags |= VNET_BUFFER_F_IS_IP4;
264 /* FIXME multi-seg */
265 vlib_increment_combined_counter
266 (&ipsec_sa_counters, thread_index, sa_index0,
267 1, b0->current_length);
269 res->ops[res->n_ops] = op;
270 res->bi[res->n_ops] = bi0;
273 /* Convert vlib buffer to mbuf */
274 mb0->data_len = b0->current_length;
275 mb0->pkt_len = b0->current_length;
276 mb0->data_off = RTE_PKTMBUF_HEADROOM + b0->current_data;
278 trunc_size = auth_alg->trunc_size;
279 iv_size = cipher_alg->iv_len;
281 /* Outer IP header has already been stripped */
283 b0->current_length - sizeof (esp_header_t) - iv_size - trunc_size;
285 ASSERT (payload_len >= 4);
287 if (payload_len & (cipher_alg->boundary - 1))
289 clib_warning ("payload %u not multiple of %d\n",
290 payload_len, cipher_alg->boundary);
292 vlib_node_increment_counter (vm, dpdk_esp6_decrypt_node.index,
293 ESP_DECRYPT_ERROR_BAD_LEN, 1);
295 vlib_node_increment_counter (vm, dpdk_esp4_decrypt_node.index,
296 ESP_DECRYPT_ERROR_BAD_LEN, 1);
304 u32 cipher_off, cipher_len;
308 u8 *iv = (u8 *) (esp0 + 1);
310 dpdk_gcm_cnt_blk *icb = &priv->cb;
312 cipher_off = sizeof (esp_header_t) + iv_size;
313 cipher_len = payload_len;
315 u8 *digest = vlib_buffer_get_tail (b0) - trunc_size;
317 mb0->buf_physaddr + digest - ((u8 *) mb0->buf_addr);
319 if (!is_aead && cipher_alg->alg == RTE_CRYPTO_CIPHER_AES_CBC)
320 clib_memcpy_fast (icb, iv, 16);
323 u32 *_iv = (u32 *) iv;
325 crypto_set_icb (icb, sa0->salt, _iv[0], _iv[1]);
331 u32 *_aad = (u32 *) aad;
332 clib_memcpy_fast (aad, esp0, 8);
334 /* _aad[3] should always be 0 */
335 if (PREDICT_FALSE (ipsec_sa_is_set_USE_ESN (sa0)))
338 _aad[1] = clib_host_to_net_u32 (sa0->seq_hi);
345 auth_len = sizeof (esp_header_t) + iv_size + payload_len;
347 if (ipsec_sa_is_set_USE_ESN (sa0))
349 clib_memcpy_fast (priv->icv, digest, trunc_size);
350 u32 *_digest = (u32 *) digest;
351 _digest[0] = clib_host_to_net_u32 (sa0->seq_hi);
352 auth_len += sizeof (sa0->seq_hi);
356 op->phys_addr + (uintptr_t) priv->icv - (uintptr_t) op;
360 crypto_op_setup (is_aead, mb0, op, session, cipher_off, cipher_len,
361 0, auth_len, aad, digest, digest_paddr);
363 if (PREDICT_FALSE (b0->flags & VLIB_BUFFER_IS_TRACED))
365 esp_decrypt_trace_t *tr =
366 vlib_add_trace (vm, node, b0, sizeof (*tr));
367 tr->crypto_alg = sa0->crypto_alg;
368 tr->integ_alg = sa0->integ_alg;
369 clib_memcpy_fast (tr->packet_data, vlib_buffer_get_current (b0),
370 sizeof (esp_header_t));
373 vlib_put_next_frame (vm, node, next_index, n_left_to_next);
378 vlib_node_increment_counter (vm, dpdk_esp6_decrypt_node.index,
379 ESP_DECRYPT_ERROR_RX_PKTS,
380 from_frame->n_vectors);
382 crypto_enqueue_ops (vm, cwm, dpdk_esp6_decrypt_node.index,
383 ESP_DECRYPT_ERROR_ENQ_FAIL, numa, 0 /* encrypt */ );
387 vlib_node_increment_counter (vm, dpdk_esp4_decrypt_node.index,
388 ESP_DECRYPT_ERROR_RX_PKTS,
389 from_frame->n_vectors);
391 crypto_enqueue_ops (vm, cwm, dpdk_esp4_decrypt_node.index,
392 ESP_DECRYPT_ERROR_ENQ_FAIL, numa, 0 /* encrypt */ );
395 crypto_free_ops (numa, ops, cwm->ops + from_frame->n_vectors - ops);
397 return from_frame->n_vectors;
400 VLIB_NODE_FN (dpdk_esp4_decrypt_node) (vlib_main_t * vm,
401 vlib_node_runtime_t * node,
402 vlib_frame_t * from_frame)
404 return dpdk_esp_decrypt_inline (vm, node, from_frame, 0 /*is_ip6 */ );
408 VLIB_REGISTER_NODE (dpdk_esp4_decrypt_node) = {
409 .name = "dpdk-esp4-decrypt",
410 .vector_size = sizeof (u32),
411 .format_trace = format_esp_decrypt_trace,
412 .type = VLIB_NODE_TYPE_INTERNAL,
414 .n_errors = ARRAY_LEN(esp_decrypt_error_strings),
415 .error_strings = esp_decrypt_error_strings,
417 .n_next_nodes = ESP_DECRYPT_N_NEXT,
419 #define _(s,n) [ESP_DECRYPT_NEXT_##s] = n,
420 foreach_esp_decrypt_next
426 VLIB_NODE_FN (dpdk_esp6_decrypt_node) (vlib_main_t * vm,
427 vlib_node_runtime_t * node,
428 vlib_frame_t * from_frame)
430 return dpdk_esp_decrypt_inline (vm, node, from_frame, 1 /*is_ip6 */ );
434 VLIB_REGISTER_NODE (dpdk_esp6_decrypt_node) = {
435 .name = "dpdk-esp6-decrypt",
436 .vector_size = sizeof (u32),
437 .format_trace = format_esp_decrypt_trace,
438 .type = VLIB_NODE_TYPE_INTERNAL,
440 .n_errors = ARRAY_LEN(esp_decrypt_error_strings),
441 .error_strings = esp_decrypt_error_strings,
443 .n_next_nodes = ESP_DECRYPT_N_NEXT,
445 #define _(s,n) [ESP_DECRYPT_NEXT_##s] = n,
446 foreach_esp_decrypt_next
456 #define foreach_esp_decrypt_post_error \
457 _(PKTS, "ESP post pkts")
461 #define _(sym,str) ESP_DECRYPT_POST_ERROR_##sym,
462 foreach_esp_decrypt_post_error
464 ESP_DECRYPT_POST_N_ERROR,
465 } esp_decrypt_post_error_t;
467 static char *esp_decrypt_post_error_strings[] = {
468 #define _(sym,string) string,
469 foreach_esp_decrypt_post_error
473 extern vlib_node_registration_t dpdk_esp4_decrypt_post_node;
474 extern vlib_node_registration_t dpdk_esp6_decrypt_post_node;
477 format_esp_decrypt_post_trace (u8 * s, va_list * args)
479 CLIB_UNUSED (vlib_main_t * vm) = va_arg (*args, vlib_main_t *);
480 CLIB_UNUSED (vlib_node_t * node) = va_arg (*args, vlib_node_t *);
481 esp_decrypt_trace_t *t = va_arg (*args, esp_decrypt_trace_t *);
482 u32 indent = format_get_indent (s);
484 s = format (s, "cipher %U auth %U\n",
485 format_ipsec_crypto_alg, t->crypto_alg,
486 format_ipsec_integ_alg, t->integ_alg);
488 ip4_header_t *ih4 = (ip4_header_t *) t->packet_data;
489 if ((ih4->ip_version_and_header_length & 0xF0) == 0x60)
491 format (s, "%U%U", format_white_space, indent, format_ip6_header, ih4);
494 format (s, "%U%U", format_white_space, indent, format_ip4_header, ih4);
500 dpdk_esp_decrypt_post_inline (vlib_main_t * vm,
501 vlib_node_runtime_t * node,
502 vlib_frame_t * from_frame, int is_ip6)
504 u32 n_left_from, *from, *to_next = 0, next_index;
507 ipsec_main_t *im = &ipsec_main;
508 dpdk_crypto_main_t *dcm = &dpdk_crypto_main;
510 from = vlib_frame_vector_args (from_frame);
511 n_left_from = from_frame->n_vectors;
513 next_index = node->cached_next_index;
515 while (n_left_from > 0)
519 vlib_get_next_frame (vm, node, next_index, to_next, n_left_to_next);
521 while (n_left_from > 0 && n_left_to_next > 0)
524 u32 bi0, iv_size, next0;
525 vlib_buffer_t *b0 = 0;
526 ip4_header_t *ih4 = 0, *oh4 = 0;
527 ip6_header_t *ih6 = 0, *oh6 = 0;
528 crypto_alg_t *cipher_alg, *auth_alg;
530 u8 trunc_size, is_aead;
531 u16 udp_encap_adv = 0;
533 next0 = ESP_DECRYPT_NEXT_DROP;
540 b0 = vlib_get_buffer (vm, bi0);
541 esp0 = vlib_buffer_get_current (b0);
543 sa_index0 = vnet_buffer (b0)->ipsec.sad_index;
544 sa0 = pool_elt_at_index (im->sad, sa_index0);
549 cipher_alg = vec_elt_at_index (dcm->cipher_algs, sa0->crypto_alg);
550 auth_alg = vec_elt_at_index (dcm->auth_algs, sa0->integ_alg);
551 is_aead = cipher_alg->type == RTE_CRYPTO_SYM_XFORM_AEAD;
553 auth_alg = cipher_alg;
555 trunc_size = auth_alg->trunc_size;
557 iv_size = cipher_alg->iv_len;
559 ipsec_sa_anti_replay_advance (sa0,
560 clib_host_to_net_u32 (esp0->seq));
562 /* if UDP encapsulation is used adjust the address of the IP header */
563 if (ipsec_sa_is_set_UDP_ENCAP (sa0)
564 && (b0->flags & VNET_BUFFER_F_IS_IP4))
566 udp_encap_adv = sizeof (udp_header_t);
569 if (b0->flags & VNET_BUFFER_F_IS_IP4)
570 ih4 = (ip4_header_t *)
571 ((u8 *) esp0 - udp_encap_adv - sizeof (ip4_header_t));
573 ih4 = (ip4_header_t *) ((u8 *) esp0 - sizeof (ip6_header_t));
575 vlib_buffer_advance (b0, sizeof (esp_header_t) + iv_size);
577 b0->flags |= VLIB_BUFFER_TOTAL_LENGTH_VALID;
578 f0 = (esp_footer_t *) (vlib_buffer_get_tail (b0) - trunc_size - 2);
579 b0->current_length -= (f0->pad_length + trunc_size + 2);
582 const u8 *padding = vlib_buffer_get_tail (b0);
583 if (PREDICT_FALSE (memcmp (padding, pad_data, f0->pad_length)))
585 clib_warning ("bad padding");
586 vlib_node_increment_counter (vm, dpdk_esp_decrypt_node.index,
587 ESP_DECRYPT_ERROR_DECRYPTION_FAILED,
592 if (ipsec_sa_is_set_IS_TUNNEL (sa0))
594 if (f0->next_header == IP_PROTOCOL_IP_IN_IP)
595 next0 = ESP_DECRYPT_NEXT_IP4_INPUT;
596 else if (f0->next_header == IP_PROTOCOL_IPV6)
597 next0 = ESP_DECRYPT_NEXT_IP6_INPUT;
600 clib_warning ("next header: 0x%x", f0->next_header);
602 vlib_node_increment_counter (vm,
603 dpdk_esp6_decrypt_node.index,
604 ESP_DECRYPT_ERROR_DECRYPTION_FAILED,
607 vlib_node_increment_counter (vm,
608 dpdk_esp4_decrypt_node.index,
609 ESP_DECRYPT_ERROR_DECRYPTION_FAILED,
614 else /* transport mode */
616 if ((ih4->ip_version_and_header_length & 0xF0) == 0x40)
618 u16 ih4_len = ip4_header_bytes (ih4);
619 vlib_buffer_advance (b0, -ih4_len - udp_encap_adv);
620 next0 = ESP_DECRYPT_NEXT_IP4_INPUT;
621 if (!ipsec_sa_is_set_UDP_ENCAP (sa0))
623 oh4 = vlib_buffer_get_current (b0);
624 memmove (oh4, ih4, ih4_len);
625 oh4->protocol = f0->next_header;
626 oh4->length = clib_host_to_net_u16 (b0->current_length);
627 oh4->checksum = ip4_header_checksum (oh4);
630 else if ((ih4->ip_version_and_header_length & 0xF0) == 0x60)
632 ih6 = (ip6_header_t *) ih4;
633 vlib_buffer_advance (b0, -sizeof (ip6_header_t));
634 oh6 = vlib_buffer_get_current (b0);
635 memmove (oh6, ih6, sizeof (ip6_header_t));
637 next0 = ESP_DECRYPT_NEXT_IP6_INPUT;
638 oh6->protocol = f0->next_header;
639 u16 len = b0->current_length - sizeof (ip6_header_t);
640 oh6->payload_length = clib_host_to_net_u16 (len);
644 clib_warning ("next header: 0x%x", f0->next_header);
646 vlib_node_increment_counter (vm,
647 dpdk_esp6_decrypt_node.index,
648 ESP_DECRYPT_ERROR_DECRYPTION_FAILED,
651 vlib_node_increment_counter (vm,
652 dpdk_esp4_decrypt_node.index,
653 ESP_DECRYPT_ERROR_DECRYPTION_FAILED,
659 vnet_buffer (b0)->sw_if_index[VLIB_TX] = (u32) ~ 0;
662 if (PREDICT_FALSE (b0->flags & VLIB_BUFFER_IS_TRACED))
664 esp_decrypt_trace_t *tr =
665 vlib_add_trace (vm, node, b0, sizeof (*tr));
666 tr->crypto_alg = sa0->crypto_alg;
667 tr->integ_alg = sa0->integ_alg;
668 ih4 = vlib_buffer_get_current (b0);
669 clib_memcpy_fast (tr->packet_data, ih4, sizeof (ip6_header_t));
672 vlib_validate_buffer_enqueue_x1 (vm, node, next_index,
673 to_next, n_left_to_next, bi0,
676 vlib_put_next_frame (vm, node, next_index, n_left_to_next);
680 vlib_node_increment_counter (vm, dpdk_esp6_decrypt_post_node.index,
681 ESP_DECRYPT_POST_ERROR_PKTS,
682 from_frame->n_vectors);
684 vlib_node_increment_counter (vm, dpdk_esp4_decrypt_post_node.index,
685 ESP_DECRYPT_POST_ERROR_PKTS,
686 from_frame->n_vectors);
688 return from_frame->n_vectors;
691 VLIB_NODE_FN (dpdk_esp4_decrypt_post_node) (vlib_main_t * vm,
692 vlib_node_runtime_t * node,
693 vlib_frame_t * from_frame)
695 return dpdk_esp_decrypt_post_inline (vm, node, from_frame, 0 /*is_ip6 */ );
699 VLIB_REGISTER_NODE (dpdk_esp4_decrypt_post_node) = {
700 .name = "dpdk-esp4-decrypt-post",
701 .vector_size = sizeof (u32),
702 .format_trace = format_esp_decrypt_post_trace,
703 .type = VLIB_NODE_TYPE_INTERNAL,
705 .n_errors = ARRAY_LEN(esp_decrypt_post_error_strings),
706 .error_strings = esp_decrypt_post_error_strings,
708 .n_next_nodes = ESP_DECRYPT_N_NEXT,
710 #define _(s,n) [ESP_DECRYPT_NEXT_##s] = n,
711 foreach_esp_decrypt_next
717 VLIB_NODE_FN (dpdk_esp6_decrypt_post_node) (vlib_main_t * vm,
718 vlib_node_runtime_t * node,
719 vlib_frame_t * from_frame)
721 return dpdk_esp_decrypt_post_inline (vm, node, from_frame, 0 /*is_ip6 */ );
725 VLIB_REGISTER_NODE (dpdk_esp6_decrypt_post_node) = {
726 .name = "dpdk-esp6-decrypt-post",
727 .vector_size = sizeof (u32),
728 .format_trace = format_esp_decrypt_post_trace,
729 .type = VLIB_NODE_TYPE_INTERNAL,
731 .n_errors = ARRAY_LEN(esp_decrypt_post_error_strings),
732 .error_strings = esp_decrypt_post_error_strings,
734 .n_next_nodes = ESP_DECRYPT_N_NEXT,
736 #define _(s,n) [ESP_DECRYPT_NEXT_##s] = n,
737 foreach_esp_decrypt_next
744 * fd.io coding-style-patch-verification: ON
747 * eval: (c-set-style "gnu")