@@ -89,6 +89,12 @@ typedef enum {
*/
ODP_CIPHER_ALG_AES_GCM,
+ /** ChaCha20-Poly1305 AEAD
+ *
+ * @note Must be paired with ODP_AUTH_ALG_CHACHA20_POLY1305
+ */
+ ODP_CIPHER_ALG_CHACHA20_POLY1305,
+
/** @deprecated Use ODP_CIPHER_ALG_AES_CBC instead */
ODP_DEPRECATE(ODP_CIPHER_ALG_AES128_CBC),
@@ -148,6 +154,12 @@ typedef enum {
*/
ODP_AUTH_ALG_AES_GMAC,
+ /** ChaCha20-Poly1305 AEAD
+ *
+ * @note Must be paired with ODP_CIPHER_ALG_CHACHA20_POLY1305
+ */
+ ODP_AUTH_ALG_CHACHA20_POLY1305,
+
/** @deprecated Use ODP_AUTH_ALG_MD5_HMAC instead */
ODP_DEPRECATE(ODP_AUTH_ALG_MD5_96),
@@ -183,6 +195,9 @@ typedef union odp_crypto_cipher_algos_t {
/** ODP_CIPHER_ALG_AES_GCM */
uint32_t aes_gcm : 1;
+ /** ODP_CIPHER_ALG_CHACHA20_POLY1305 */
+ uint32_t chacha20_poly1305 : 1;
+
/** @deprecated Use aes_cbc instead */
uint32_t ODP_DEPRECATE(aes128_cbc) : 1;
@@ -225,6 +240,9 @@ typedef union odp_crypto_auth_algos_t {
/** ODP_AUTH_ALG_AES_GMAC*/
uint32_t aes_gmac : 1;
+ /** ODP_AUTH_ALG_CHACHA20_POLY1305 */
+ uint32_t chacha20_poly1305 : 1;
+
/** @deprecated Use md5_hmac instead */
uint32_t ODP_DEPRECATE(md5_96) : 1;