diff --git a/contrib/pgcrypto/expected/pgp-compression_1.out b/contrib/pgcrypto/expected/pgp-compression_1.out index 8a046d8496..655830ae14 100644 --- a/contrib/pgcrypto/expected/pgp-compression_1.out +++ b/contrib/pgcrypto/expected/pgp-compression_1.out @@ -18,25 +18,25 @@ select pgp_sym_decrypt( pgp_sym_encrypt('Secret message', 'key', 'compress-algo=0'), 'key', 'expect-compress-algo=0'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. select pgp_sym_decrypt( pgp_sym_encrypt('Secret message', 'key', 'compress-algo=1'), 'key', 'expect-compress-algo=1'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. select pgp_sym_decrypt( pgp_sym_encrypt('Secret message', 'key', 'compress-algo=2'), 'key', 'expect-compress-algo=2'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. -- level=0 should turn compression off select pgp_sym_decrypt( pgp_sym_encrypt('Secret message', 'key', 'compress-algo=2, compress-level=0'), 'key', 'expect-compress-algo=0'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. diff --git a/contrib/pgcrypto/expected/pgp-decrypt_1.out b/contrib/pgcrypto/expected/pgp-decrypt_1.out index 431bac2b41..f3df4e618a 100644 --- a/contrib/pgcrypto/expected/pgp-decrypt_1.out +++ b/contrib/pgcrypto/expected/pgp-decrypt_1.out @@ -367,8 +367,8 @@ a3nsOzKTXUfS9VyaXo8IrncM6n7fdaXpwba/3tNsAhJG4lDv1k4g9v8Ix2dfv6Rs -- check BUG #11905, problem with messages 6 less than a power of 2. select pgp_sym_decrypt(pgp_sym_encrypt(repeat('x',65530),'1'),'1') = repeat('x',65530); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. -- expected: true -- Negative tests -- Decryption with a certain incorrect key yields an apparent Literal Data @@ -390,8 +390,8 @@ ERROR: Wrong key or corrupt data -- Routine text/binary mismatch. select pgp_sym_decrypt(pgp_sym_encrypt_bytea('P', 'key'), 'key', 'debug=1'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. -- Decryption with a certain incorrect key yields an apparent BZip2-compressed -- plaintext. Ciphertext source: iterative pgp_sym_encrypt('secret', 'key') -- until the random prefix gave rise to that property. diff --git a/contrib/pgcrypto/expected/pgp-encrypt_1.out b/contrib/pgcrypto/expected/pgp-encrypt_1.out index 48346e8e7e..72f346414a 100644 --- a/contrib/pgcrypto/expected/pgp-encrypt_1.out +++ b/contrib/pgcrypto/expected/pgp-encrypt_1.out @@ -5,8 +5,8 @@ SET bytea_output TO escape; select pgp_sym_decrypt(pgp_sym_encrypt('Secret.', 'key'), 'key'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. -- check whether the defaults are ok select pgp_sym_decrypt(pgp_sym_encrypt('Secret.', 'key'), 'key', 'expect-cipher-algo=aes128, @@ -17,8 +17,8 @@ select pgp_sym_decrypt(pgp_sym_encrypt('Secret.', 'key'), expect-compress-algo=0 '); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. -- maybe the expect- stuff simply does not work select pgp_sym_decrypt(pgp_sym_encrypt('Secret.', 'key'), 'key', 'expect-cipher-algo=bf, @@ -29,133 +29,133 @@ select pgp_sym_decrypt(pgp_sym_encrypt('Secret.', 'key'), expect-compress-algo=1 '); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. -- bytea as text select pgp_sym_decrypt(pgp_sym_encrypt_bytea('Binary', 'baz'), 'baz'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. -- text as bytea select pgp_sym_decrypt_bytea(pgp_sym_encrypt('Text', 'baz'), 'baz'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. -- algorithm change select pgp_sym_decrypt( pgp_sym_encrypt('Secret.', 'key', 'cipher-algo=bf'), 'key', 'expect-cipher-algo=bf'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. select pgp_sym_decrypt( pgp_sym_encrypt('Secret.', 'key', 'cipher-algo=aes'), 'key', 'expect-cipher-algo=aes128'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. select pgp_sym_decrypt( pgp_sym_encrypt('Secret.', 'key', 'cipher-algo=aes192'), 'key', 'expect-cipher-algo=aes192'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. -- s2k change select pgp_sym_decrypt( pgp_sym_encrypt('Secret.', 'key', 's2k-mode=0'), 'key', 'expect-s2k-mode=0'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. select pgp_sym_decrypt( pgp_sym_encrypt('Secret.', 'key', 's2k-mode=1'), 'key', 'expect-s2k-mode=1'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. select pgp_sym_decrypt( pgp_sym_encrypt('Secret.', 'key', 's2k-mode=3'), 'key', 'expect-s2k-mode=3'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. -- s2k count change select pgp_sym_decrypt( pgp_sym_encrypt('Secret.', 'key', 's2k-count=1024'), 'key', 'expect-s2k-count=1024'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. -- s2k_count rounds up select pgp_sym_decrypt( pgp_sym_encrypt('Secret.', 'key', 's2k-count=65000000'), 'key', 'expect-s2k-count=65000000'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. -- s2k digest change select pgp_sym_decrypt( pgp_sym_encrypt('Secret.', 'key', 's2k-digest-algo=md5'), 'key', 'expect-s2k-digest-algo=md5'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. select pgp_sym_decrypt( pgp_sym_encrypt('Secret.', 'key', 's2k-digest-algo=sha1'), 'key', 'expect-s2k-digest-algo=sha1'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. -- sess key select pgp_sym_decrypt( pgp_sym_encrypt('Secret.', 'key', 'sess-key=0'), 'key', 'expect-sess-key=0'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. select pgp_sym_decrypt( pgp_sym_encrypt('Secret.', 'key', 'sess-key=1'), 'key', 'expect-sess-key=1'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. select pgp_sym_decrypt( pgp_sym_encrypt('Secret.', 'key', 'sess-key=1, cipher-algo=bf'), 'key', 'expect-sess-key=1, expect-cipher-algo=bf'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. select pgp_sym_decrypt( pgp_sym_encrypt('Secret.', 'key', 'sess-key=1, cipher-algo=aes192'), 'key', 'expect-sess-key=1, expect-cipher-algo=aes192'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. select pgp_sym_decrypt( pgp_sym_encrypt('Secret.', 'key', 'sess-key=1, cipher-algo=aes256'), 'key', 'expect-sess-key=1, expect-cipher-algo=aes256'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. -- no mdc select pgp_sym_decrypt( pgp_sym_encrypt('Secret.', 'key', 'disable-mdc=1'), 'key', 'expect-disable-mdc=1'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. -- crlf select encode(pgp_sym_decrypt_bytea( pgp_sym_encrypt(E'1\n2\n3\r\n', 'key', 'convert-crlf=1'), 'key'), 'hex'); ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. -- conversion should be lossless select encode(digest(pgp_sym_decrypt( pgp_sym_encrypt(E'\r\n0\n1\r\r\n\n2\r', 'key', 'convert-crlf=1'), 'key', 'convert-crlf=1'), 'sha1'), 'hex') as result, encode(digest(E'\r\n0\n1\r\r\n\n2\r', 'sha1'), 'hex') as expect; ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. diff --git a/contrib/pgcrypto/expected/pgp-pubkey-encrypt_1.out b/contrib/pgcrypto/expected/pgp-pubkey-encrypt_1.out index 41c54e4716..6da4c6da41 100644 --- a/contrib/pgcrypto/expected/pgp-pubkey-encrypt_1.out +++ b/contrib/pgcrypto/expected/pgp-pubkey-encrypt_1.out @@ -9,29 +9,29 @@ select pgp_pub_decrypt( dearmor(seckey)) from keytbl where keytbl.id=1; ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. select pgp_pub_decrypt( pgp_pub_encrypt('Secret msg', dearmor(pubkey)), dearmor(seckey)) from keytbl where keytbl.id=2; ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. select pgp_pub_decrypt( pgp_pub_encrypt('Secret msg', dearmor(pubkey)), dearmor(seckey)) from keytbl where keytbl.id=3; ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. select pgp_pub_decrypt( pgp_pub_encrypt('Secret msg', dearmor(pubkey)), dearmor(seckey)) from keytbl where keytbl.id=6; ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. -- try with rsa-sign only select pgp_pub_decrypt( pgp_pub_encrypt('Secret msg', dearmor(pubkey)), @@ -50,13 +50,13 @@ select pgp_pub_decrypt_bytea( dearmor(seckey)) from keytbl where keytbl.id=1; ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random. -- and bytea-to-text? select pgp_pub_decrypt( pgp_pub_encrypt_bytea('Secret msg', dearmor(pubkey)), dearmor(seckey)) from keytbl where keytbl.id=1; ERROR: generating random data is not supported by this build -DETAIL: This functionality requires a source of strong random numbers -HINT: You need to rebuild PostgreSQL using --enable-strong-random +DETAIL: This functionality requires a source of strong random numbers. +HINT: You need to rebuild PostgreSQL using --enable-strong-random.