test/lib: Add OpenSSL verify and decrypt tests