Skip to content

Commit f405df8

Browse files
committed
Don't silently ignore non-zero bits in the key
1 parent 8688d23 commit f405df8

File tree

4 files changed

+422
-440
lines changed

4 files changed

+422
-440
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ CREATE FUNCTION pgspeck_decrypt32(ciphertext int8, key int8)
5757
AS 'pgspeck', 'pgspeck_decrypt32' LANGUAGE c STRICT;
5858

5959
-- Encrypts a 48-bit plaintext using a 96-bit key. Only the lowermost 48 bits
60-
-- of each argument are used.
60+
-- of key component can be non-zero.
6161
CREATE FUNCTION pgspeck_encrypt48(plaintext int8, key1 int8, key2 int8)
6262
RETURNS int8
6363
AS 'pgspeck', 'pgspeck_encrypt48' LANGUAGE c STRICT;

0 commit comments

Comments
 (0)