Commit Graph

26 Commits

Author SHA1 Message Date
Jean-Philippe Bossuat
c031b14be1 updated imports to v5 2023-11-14 19:15:38 +01:00
Jean-Philippe Bossuat
e2a343a2ac Update utils/buffer/reader.go
Co-authored-by: Boris Flesch <13056415+borisflesch@users.noreply.github.com>
2023-10-30 15:03:54 +01:00
Jean-Philippe Bossuat
55e4ea8d38 Update utils/buffer/reader.go
Co-authored-by: Boris Flesch <13056415+borisflesch@users.noreply.github.com>
2023-10-30 15:03:46 +01:00
Jean-Philippe Bossuat
c057dc4bf5 Update utils/buffer/reader.go
Co-authored-by: Boris Flesch <13056415+borisflesch@users.noreply.github.com>
2023-10-30 15:03:36 +01:00
Jean-Philippe Bossuat
87e27e46eb [gosec]: added small comments on nopsec exceptions 2023-10-13 14:38:42 +02:00
Jean-Philippe Bossuat
fd243a2566 [utils/buffer]: added equality checks
[ring.Poly]: removed .Buff (not needed anymore)
2023-10-05 14:03:17 +02:00
Jean-Philippe Bossuat
0f9e100596 [utils/structs]: expanded support for floats and integers. 2023-10-05 11:22:36 +02:00
Jean-Philippe Bossuat
5d2a8a4b81 typo 2023-10-04 10:44:51 +02:00
Jean-Philippe Bossuat
4bb5cdbee8 [utils/buffer]: added generics 2023-10-04 10:36:15 +02:00
Christian Mouchet
37029f293b some renaming and godocing 2023-07-18 17:49:56 +02:00
Jean-Philippe Bossuat
2a78b14c53 [bignum]: added tests 2023-07-14 21:31:48 +02:00
Jean-Philippe Bossuat
6096f74ae2 [buffer]: added wrapper with int64 counter 2023-07-14 20:21:22 +02:00
Jean-Philippe
17caa545ea gofmt 2023-07-13 11:43:22 +02:00
Jean-Philippe Bossuat
e709b2c756 [buffer]: fixed a few bugs and added float64 support 2023-07-13 00:46:53 +02:00
Jean-Philippe Bossuat
cf5009b76a [utils/buffer]: all custom methods returns the number of bytes written as int64 2023-07-12 09:42:11 +02:00
Jean-Philippe
b8800915b4 [utils/buffer]: fixed infinite recursion 2023-07-09 11:34:46 +02:00
Christian Mouchet
452757b0a9 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
Christian Mouchet
86d081bce2 improved the Writer/Reader-based serialization
The WriterTo and ReaderFrom standard interface should be sufficient for the serialization
of lattigo objects from their pointers. Other interfaces such as BinaryMarshaller should
be based on WriterTo. This is possible in an efficient way if the Writer and Reader interface
expose their internal buffer.
2023-06-12 13:52:43 +02:00
Jean-Philippe Bossuat
fc0f7bba03 More CHANGELOG.md updates 2023-06-08 13:20:23 +02:00
Christian Mouchet
28d498ffc7 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
ee6a9bcfbf pass on drlwe, dbfv, dbgv, dckks 2023-04-01 14:28:13 +02:00
Jean-Philippe Bossuat
0ad8ecd040 improved marshalling test 2023-03-31 20:55:00 +02:00
Jean-Philippe Bossuat
e8a2746ac8 gosec 2023-03-30 12:33:49 +02:00
Jean-Philippe Bossuat
2ebb4c1d82 added generics 2023-03-24 23:35:46 +01:00
Jean-Philippe Bossuat
640840b238 Added io.Writer and io.Reader 2023-03-24 14:33:45 +01:00
Jean-Philippe Bossuat
cb20936495 [utils]: added subpacakges and updated Write/Read API 2023-03-21 10:44:10 +01:00