src/dpdk/lib/librte_ipsec/crypto.h
static inline void
copy_iv(uint64_t dst[IPSEC_MAX_IV_QWORD],
	const uint64_t src[IPSEC_MAX_IV_QWORD], uint32_t len)
{
	RTE_BUILD_BUG_ON(IPSEC_MAX_IV_SIZE != 2 * sizeof(uint64_t));

	switch (len) {
	case IPSEC_MAX_IV_SIZE:
		dst[1] = src[1];
		/* fallthrough */
	case sizeof(uint64_t):
		dst[0] = src[0];
		/* fallthrough */
	case 0:
		break;
	default:
		/* should never happen */
		RTE_ASSERT(NULL);
	}
}
/*
 * Helper routine to copy IV
 * Right now we support only algorithms with IV length equals 0/8/16 bytes.
 */
Helper routine to copy IV
Right now we support only algorithms with IV length equals 0/8/16 bytes.
Helper routine to copy IV Right now we support only algorithms with IV length equals 0 / 8 / 16 bytes .
static inline void
copy_iv(uint64_t dst[IPSEC_MAX_IV_QWORD],
	const uint64_t src[IPSEC_MAX_IV_QWORD], uint32_t len)
{
	RTE_BUILD_BUG_ON(IPSEC_MAX_IV_SIZE != 2 * sizeof(uint64_t));
	switch (len) {
	case IPSEC_MAX_IV_SIZE:
		dst[1] = src[1];
	case sizeof(uint64_t):
		dst[0] = src[0];
	case 0:
		break;
	default:
		RTE_ASSERT(NULL);
	}
}
static inline void copy_iv ( uint64_t dst [ IPSEC_MAX_IV_QWORD ] , const uint64_t src [ IPSEC_MAX_IV_QWORD ] , uint32_t len ) { RTE_BUILD_BUG_ON ( IPSEC_MAX_IV_SIZE != 2 * sizeof ( uint64_t ) ) ; switch ( len ) { case IPSEC_MAX_IV_SIZE : dst [ 1 ] = src [ 1 ] ; case sizeof ( uint64_t ) : dst [ 0 ] = src [ 0 ] ; case 0 : break ; default : RTE_ASSERT ( NULL ) ; } }
Helper routine to copy IV
 Right now we support only algorithms with IV length equals 0/8/16 bytes.
Helper routine to copy IV Right now we support only algorithms with IV length equals 0 / 8 / 16 bytes .
/* fallthrough */ /* fallthrough */ /* should never happen */