Skip to content

Conversation

@nkaithakadan
Copy link
Contributor

Add SNOW5G cipher and integrity algorithms.

@odpbuild odpbuild changed the title api: crypto: add snow5g algorithm [PATCH v1] api: crypto: add snow5g algorithm Dec 4, 2025
* NEA4 & NIA4 specification:
* COUNT || BEARER || DIRECTION || 0...0
*/
ODP_CIPHER_ALG_SNOW5G_NEA4,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this naming style (i.e. SNOW5G_NEA4, instead of just SNOW5G or just NEA4) is what we want to do. I am not sure what to think of it.

I know some existing API definitions use that style but it has already lead to some weirdnesses such as having both ODP_CIPHER_ALG_AES_EEA2 and ODP_CIPHER_ALG_AES_CTR, which are actually the same thing (for 128-bit keys). Then there is also the issue that 3GPP names the same underlying algorithm with different names depending on the release (e.g. UEA2, EEA1 and NEA1 are identical from ODP perspective, AFAIK).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So can we use ODP_CIPHER_ALG_NEA4 and ODP_AUTH_ALG_NIA4 ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can also keep the proposed name and leave possible renaming of the algorithms (not just this one) for better consistency for future.

* COUNT || BEARER || DIRECTION || 0...0
*/
ODP_CIPHER_ALG_SNOW5G_NEA4,

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If NEA4 and NIA4 are being added, then maybe it would be good to add NCA4 too?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.Does not have to be in this PR.

@odpbuild odpbuild changed the title [PATCH v1] api: crypto: add snow5g algorithm [PATCH v2] api: crypto: add snow5g algorithm Dec 9, 2025
@MatiasElo MatiasElo added this to the v1.49.0 milestone Dec 9, 2025
@odpbuild odpbuild changed the title [PATCH v2] api: crypto: add snow5g algorithm [PATCH v3] api: crypto: add snow5g algorithm Dec 10, 2025
@odpbuild odpbuild changed the title [PATCH v3] api: crypto: add snow5g algorithm [PATCH v4] api: crypto: add snow5g algorithm Dec 10, 2025
@MatiasElo
Copy link
Collaborator

@nkaithakadan, please add Janne's reviewed-by tags to the PR.

@odpbuild odpbuild changed the title [PATCH v4] api: crypto: add snow5g algorithm [PATCH v5] api: crypto: add snow5g algorithm Dec 22, 2025
@nkaithakadan
Copy link
Contributor Author

@nkaithakadan, please add Janne's reviewed-by tags to the PR.

Done.

@MatiasElo MatiasElo added the API Ready API change ready to be merged (with the next API version increment) label Dec 22, 2025
Add SNOW5G cipher and integrity algorithms.

Signed-off-by: Nithinsen Kaithakadan <nkaithakadan@marvell.com>
Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
@odpbuild odpbuild changed the title [PATCH v5] api: crypto: add snow5g algorithm [PATCH v6] api: crypto: add snow5g algorithm Dec 29, 2025
@MatiasElo MatiasElo enabled auto-merge (rebase) December 29, 2025 08:06
@MatiasElo MatiasElo merged commit 7231f2d into OpenDataPlane:master Dec 29, 2025
164 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API Ready API change ready to be merged (with the next API version increment)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants