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:
@ -643,6 +643,7 @@ parse_symenc_sesskey(PGP_Context *ctx, PullFilter *src)
|
||||
if (res < 0)
|
||||
return res;
|
||||
ctx->s2k_mode = ctx->s2k.mode;
|
||||
ctx->s2k_count = s2k_decode_count(ctx->s2k.iter);
|
||||
ctx->s2k_digest_algo = ctx->s2k.digest_algo;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user