moonfire-nvr/db
Scott Lamb 00991733f2 use Blake3 instead of SHA-1 or Blake2b
Benefits:

* Blake3 is faster. This is most noticeable for the hashing of the
  sample file data.
* we no longer need OpenSSL, which helps with shrinking the binary size
  (#70). sha1 basically forced OpenSSL usage; ring deliberately doesn't
  support this old algorithm, and the pure-Rust sha1 crate is painfully
  slow. OpenSSL might still be a better choice than ring/rustls for TLS
  but it's nice to have the option.

For the video sample entries, I decided we don't need to hash at all. I
think the id number is sufficiently stable, and it's okay---perhaps even
desirable---if an existing init segment changes for fixes like e5b83c2.
2020-03-20 21:46:53 -07:00
..
proto upgrade copyright notices 2020-03-01 22:53:41 -08:00
testdata initial split of database to a separate crate 2018-02-20 23:15:39 -08:00
upgrade use Blake3 instead of SHA-1 or Blake2b 2020-03-20 21:46:53 -07:00
auth.rs use Blake3 instead of SHA-1 or Blake2b 2020-03-20 21:46:53 -07:00
build.rs upgrade copyright notices 2020-03-01 22:53:41 -08:00
Cargo.toml use Blake3 instead of SHA-1 or Blake2b 2020-03-20 21:46:53 -07:00
check.rs style: use rusqlite's {named_,}params! everywhere 2020-03-19 20:46:25 -07:00
coding.rs upgrade copyright notices 2020-03-01 22:53:41 -08:00
compare.rs upgrade copyright notices 2020-03-01 22:53:41 -08:00
db.rs use Blake3 instead of SHA-1 or Blake2b 2020-03-20 21:46:53 -07:00
dir.rs upgrade copyright notices 2020-03-01 22:53:41 -08:00
fs.rs upgrade copyright notices 2020-03-01 22:53:41 -08:00
lib.rs use Blake3 instead of SHA-1 or Blake2b 2020-03-20 21:46:53 -07:00
raw.rs use Blake3 instead of SHA-1 or Blake2b 2020-03-20 21:46:53 -07:00
recording.rs upgrade copyright notices 2020-03-01 22:53:41 -08:00
schema.sql use Blake3 instead of SHA-1 or Blake2b 2020-03-20 21:46:53 -07:00
signal.rs style: use rusqlite's {named_,}params! everywhere 2020-03-19 20:46:25 -07:00
testutil.rs schema version 6 with pixel aspect ratio 2020-03-19 21:40:59 -07:00
writer.rs use Blake3 instead of SHA-1 or Blake2b 2020-03-20 21:46:53 -07:00