This commit removes unnecessary methods/functions related to CS Paillier encryption that used files as input. Specifically:
NewCSPaillierFromSecKey constructor was modified to accept SecKey (also renamed here from SecretKey, for consistency) instead of filepath string,
NewCSPaillierFromPubKeyFile constructor was removed,
StorePubKey method was removed,
StoreSecKey method was removed.
Test code no longer reads/writes to/from files in client/testdata, and is thus simpler and faster.
As a consequence, I also removed storage package, which contained only functions for reading/writing bytes from files (used only by CS Paillier code that was removed here).
The library will probably support some kind of storage interfaces in the near future (TBD). But in any case, I believe that crypto primitives really shouldn't be concerned with serialization/deserialization and storage of crypto keys and parameters - such implementations should be left to the caller.
This commit removes unnecessary methods/functions related to CS Paillier encryption that used files as input. Specifically:
NewCSPaillierFromSecKey
constructor was modified to acceptSecKey
(also renamed here fromSecretKey
, for consistency) instead of filepathstring
,NewCSPaillierFromPubKeyFile
constructor was removed,StorePubKey
method was removed,StoreSecKey
method was removed.Test code no longer reads/writes to/from files in
client/testdata
, and is thus simpler and faster.As a consequence, I also removed
storage
package, which contained only functions for reading/writing bytes from files (used only by CS Paillier code that was removed here).The library will probably support some kind of storage interfaces in the near future (TBD). But in any case, I believe that crypto primitives really shouldn't be concerned with serialization/deserialization and storage of crypto keys and parameters - such implementations should be left to the caller.