10 Commits
Author SHA1 Message Date
zeekay f8adab7b46 Update package name 2023-12-15 21:45:54 +01:00
Jean-Philippe Bossuat b3a92621bc updated imports to v5 2023-11-14 19:15:38 +01:00
Jean-Philippe Bossuat 1dc4d5eeca [gosec]: added small comments on nopsec exceptions 2023-10-13 14:38:42 +02:00
Jean-Philippe Bossuat bc6d3244d0 [utils/buffer]: added equality checks
[ring.Poly]: removed .Buff (not needed anymore)
2023-10-05 14:03:17 +02:00
Christian Mouchet 41a4915500 some renaming and godocing 2023-07-18 17:49:56 +02:00
Jean-Philippe Bossuat d0551c02fb [buffer]: fixed a few bugs and added float64 support 2023-07-13 00:46:53 +02:00
Christian Mouchet ada58c6e55 centralized rlwe key-related structs in keys.go and used [2]ringqp.Poly as unerlying PublicKey type
The use of OperandQP for public key is correct but a bit of an overkill, especially since public-keys
must be of size two (which requires an additional check at cast/read/write anyway) and because they
should not require to serialize ciphertext-related metadata.
2023-06-12 18:09:22 +02:00
Jean-Philippe Bossuat 70e99a28d6 More CHANGELOG.md updates 2023-06-08 13:20:23 +02:00
Christian Mouchet 85ef4c6c43 improved Vector, Matrix and Map types
Vector and Matrix now use []T and [][]T as underlying types, which makes them more versatile and easy to cast to from slices.
Map still uses map[K]V as map values cannot be addressed and this is anoying to use.
I also got rid of the Codec[T] type as it can be replaced with a 3-liner (i.e., equivalent to calling the Codex and checking the error).
There is also a small change of the OperendQ.Encode method that now uses OperandQ.WriteTo instead of OperandQ.Encode (since it is a bit fasterfor some reason...). This is an experiment and more work on the serialization is needed.
2023-06-07 20:18:13 +02:00
Jean-Philippe Bossuat 2695e11261 improved marshalling test 2023-03-31 20:55:00 +02:00