I have created a Sqlite3 database with SHA1 hashes:

$ sqlite3 pwned.sqlite3 .schema
CREATE TABLE pwned(sha1 blob primary key);

I have inserted some data:

$ sqlite3 pwned.sqlite3 "select hex(sha1) from pwned limit 1"

But I can not search:

$ sqlite3 pwned.sqlite3 "select count(*) from pwned where sha1 = x'000000005AD76BD555C1D6D771DE417A4B87E4B4'"

I do not see the error. What is wrong here?