moonfire-nvr/db/upgrade
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
..
mod.rs use Blake3 instead of SHA-1 or Blake2b 2020-03-20 21:46:53 -07:00
v0.sql upgrade copyright notices 2020-03-01 22:53:41 -08:00
v0_to_v1.rs upgrade copyright notices 2020-03-01 22:53:41 -08:00
v1.sql upgrade copyright notices 2020-03-01 22:53:41 -08:00
v1_to_v2.rs style: use rusqlite's {named_,}params! everywhere 2020-03-19 20:46:25 -07:00
v2_to_v3.rs style: use rusqlite's {named_,}params! everywhere 2020-03-19 20:46:25 -07:00
v3.sql upgrade copyright notices 2020-03-01 22:53:41 -08:00
v3_to_v4.rs upgrade copyright notices 2020-03-01 22:53:41 -08:00
v4_to_v5.rs upgrade copyright notices 2020-03-01 22:53:41 -08:00
v5.sql schema version 6 with pixel aspect ratio 2020-03-19 21:40:59 -07:00
v5_to_v6.rs use Blake3 instead of SHA-1 or Blake2b 2020-03-20 21:46:53 -07:00