Commit Graph

6 Commits (7dcaeb13320c0c4fdcfc9a1fdfd4736c866679e9)

Author SHA1 Message Date
Didactic Drunk a4b1b8071c Rename project from "cox" to "sodium.cr". 2019-06-28 16:25:05 -07:00
Didactic Drunk a02c54f4a7 Breaking API changes:
SecretKey renamed to CryptoBox::SecretKey
  PublicKey renamed to CryptoBox::PublicKey
  KeyPair removed.  Use CryptoBox::SecretKey instead.

  Cox.encrypt was removed.  Use `secret_key.pair(...).encrypt`
  Cox.decrypt was removed.  Use `secret_key.pair(...).decrypt`
2019-06-28 04:32:16 -07:00
Didactic Drunk 0eb4a8991a Breaking API changes:
SignSecretKey rename to Sign::SecretKey
  SignPublicKey rename to Sign::PublicKey
  SignKeyPair removed.  Use Sign::SecretKey instead.

  Cox.sign_detached moved to Sign::SecretKey#sign_detached
  Cox.verify_detached moved to Sign::PublicKey#verify_detached

  verify_detached raises on failure instead of using a return value.

  More validation of data sizes.
2019-06-28 03:30:33 -07:00
Dave 0f68a21481 Get rid of Signature model and change sign and verify to sign_detatched and verify_detached 2018-02-13 20:20:27 -08:00
Dave 3fa19b57e3 added basic libsodium public key signature sign/verify functionality 2018-02-11 23:06:34 -08:00
Andrew Hamon 2a69e4f15c Initial commit 2017-07-11 22:15:35 -05:00