All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] cryptodev: enable BPI+ for Cablelabs DOCSIS security spec
@ 2016-12-16 15:07 Trahe, Fiona
  0 siblings, 0 replies; only message in thread
From: Trahe, Fiona @ 2016-12-16 15:07 UTC (permalink / raw)
  To: dev
  Cc: De Lara Guarch, Pablo, Griffin, John, Ryan, Brendan, Trahe,
	Fiona, Jain, Deepak K, O'Hanlon, Michael A

Proposal to extend the DPDK cryptodev API to enable processing of packets according to the Baseline Privacy Interface Plus (BPI+) Specification described in the security specification of the Cablelabs Data-over-Cable Service Interface Specification (DOCSIS).

Brief summary of BPI+ symmetric cryptography requirements:
BPI+ cryptography uses a block cipher (AES-CBC/DES-CBC) to encrypt/decrypt all the whole blocks in the packet. However the data length is not always a block-multiple, so where there is a final block less than the full block size this residual block requires special handling using AES-CFB/DES-CFB mode. Similar special handling is specified where there is only one block, smaller than the block size for the cipher. See spec for further details.
https://apps.cablelabs.com/specification/docsis-3-1-security-specification/

Proposal:
Add new elements in the enum rte_crypto_cipher_algorithm.
Note elements of this enum are actually a combination of an algorithm (AES, 3DES, etc) and mode (CBC, CTR, etc). The new DOCSISBPI mode is used to convey to the PMD that the mode applied should be the specific combination of CBC and CFB required by the DOCSIS Baseline Privacy Plus Spec.
There are no other API changes needed.

The API patch is below. 
Thoughts?


diff --git a/lib/librte_cryptodev/rte_crypto_sym.h b/lib/librte_cryptodev/rte_crypto_sym.h
index d694723..92fa568 100644
--- a/lib/librte_cryptodev/rte_crypto_sym.h
+++ b/lib/librte_cryptodev/rte_crypto_sym.h
@@ -105,6 +105,15 @@ enum rte_crypto_cipher_algorithm {
       RTE_CRYPTO_CIPHER_DES_CBC,
       /**< DES algorithm in CBC mode */

+       RTE_CRYPTO_CIPHER_DES_DOCSISBPI,
+       /**< DES algorithm using modes required by DOCSIS Baseline Privacy Plus Spec. */
+
+       RTE_CRYPTO_CIPHER_AES_DOCSISBPI,
+       /**< AES algorithm using modes required by DOCSIS Baseline Privacy Plus Spec.  */
+
        RTE_CRYPTO_CIPHER_LIST_END
};

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-12-16 15:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-16 15:07 [RFC] cryptodev: enable BPI+ for Cablelabs DOCSIS security spec Trahe, Fiona

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.