mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
pgcrypto: support changing S2K iteration count
pgcrypto already supports key-stretching during symmetric encryption, including the salted-and-iterated method; but the number of iterations was not configurable. This commit implements a new s2k-count parameter to pgp_sym_encrypt() which permits selecting a larger number of iterations. Author: Jeff Janes
This commit is contained in:
@ -858,6 +858,19 @@ Applies to: pgp_sym_encrypt
|
||||
</literallayout>
|
||||
</sect4>
|
||||
|
||||
<sect4>
|
||||
<title>s2k-count</title>
|
||||
|
||||
<para>
|
||||
The number of iterations of the S2K algorithm to use. It must
|
||||
be a value between 1024 and 65011712, inclusive.
|
||||
</para>
|
||||
<literallayout>
|
||||
Default: A random value bewteen 65536 and 253952
|
||||
Applies to: pgp_sym_encrypt, only with s2k-mode=3
|
||||
</literallayout>
|
||||
</sect4>
|
||||
|
||||
<sect4>
|
||||
<title>s2k-digest-algo</title>
|
||||
|
||||
|
Reference in New Issue
Block a user