]> git.ipfire.org Git - thirdparty/openssl.git/commit
ML_DSA: Use pointers instead of arrays for polynomials in Vectors and Matrix.
authorslontis <shane.lontis@oracle.com>
Mon, 9 Dec 2024 23:24:05 +0000 (10:24 +1100)
committerTomas Mraz <tomas@openssl.org>
Fri, 14 Feb 2025 09:46:03 +0000 (10:46 +0100)
commitefd7c96856d45f85aed8ed68c71d2faf23aa9786
tree7964799e0c76c341b779fe535f9f006c3a89197d
parentd3a7ae64b337b494981a8868a63762db6a934fcf
ML_DSA: Use pointers instead of arrays for polynomials in Vectors and Matrix.

A DSA_KEY when created will alloc enough space to hold its k & l
vectors and then just set the vectors to point to the allocated blob.

Local Vectors and Matricies can then be initialised in a similar way by
passing them an array of Polnomials that are on the local stack.

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26127)
crypto/ml_dsa/ml_dsa_key.c
crypto/ml_dsa/ml_dsa_key.h
crypto/ml_dsa/ml_dsa_matrix.c
crypto/ml_dsa/ml_dsa_matrix.h
crypto/ml_dsa/ml_dsa_ntt.c
crypto/ml_dsa/ml_dsa_sample.c
crypto/ml_dsa/ml_dsa_sign.c [new file with mode: 0644]
crypto/ml_dsa/ml_dsa_vector.h