Questions tagged [s2k]

6 questions
18
votes
2 answers

Is bcrypt better than GnuPG's iterated+salted hashing method?

GnuPG has slow hash built-in in form of iterated+salted S2K. Does it have disadvantages in comparison with bcrypt or scrypt? Is GnuPG's slow hash method easily automated in GPUs?
Andrei Botalov
  • 379
  • 5
  • 12
9
votes
2 answers

What exactly does s2k do in gpg

So I recently discovered the --s2k mode in gpg. Sadly it is not very well-documented. I mean, what is s2k even supposed to mean? Could someone explain to me the purpose and detailed function of s2k? Is --s2k-cipher-algo even necessary in a…
Richard R. Matthews
  • 4,545
  • 9
  • 31
  • 49
5
votes
0 answers

Is there any difference in security between S2K and PBKDF2?

S2K, specified in RFC 4880 § 3.7.1.3, is a KDF designed for the OpenPGP standard which concatenates a password and salt and feeds this, repeating, into a hash function for a configurable number of bytes. PBKDF2, specified in RFC 2898 § 5.2, is a KDF…
forest
  • 15,626
  • 2
  • 49
  • 103
5
votes
2 answers

PGP String-to-Key specifiers

I've been reading through the PGP Standard and here I'm a little confused. This section is discussing converting string data to a session key. I'm confused about the paragraph in bold. First off, what does it mean by "hash context"? Secondly, which…
Yelneerg
  • 51
  • 1
4
votes
1 answer

In GnuPG, what's the difference between --s2k-cipher-algo and --cipher-algo?

I want to change some encryption options while using GnuPG to encrypt a file symmetrically. 1) However, for choosing the cipher algorithm, GnuPG has two commands and I don't know which one to use. Between these two, which one should I…
COLD Crypto
  • 55
  • 1
  • 5
2
votes
2 answers

RSA Key Generation Parameters - public exponent, certainty, string-to-key count

I want to know what values are appropriate for the public exponent and certainty when generating an RSA Key (for example using Bouncy Castle RSAKeyGenerationParameters function). What is the significance of the the string to key count (s2kcount)…
user12903
  • 23
  • 1
  • 3