Questions tagged [s2k]

3 questions
6
votes
1 answer

What is an s2k algorithm?

What is the definition of an s2k algorithm? For example, "PBKDF2(SHA-1)" is an s2k algorithm. Here is some Botan code that refers to s2k: AutoSeeded_RNG rng; std::auto_ptr s2k(get_s2k("PBKDF2(SHA-1)")); s2k->set_iterations(8192); …
WilliamKF
  • 41,123
  • 68
  • 193
  • 295
3
votes
3 answers

What does 'salt' refer to in string-to-key (s2k) specifier?

What does 'salt' refer to in string-to-key (s2k) specifier? It appears to be a random number generator to shake things up, but I would like to know what 'salt' stands for? For example it is written: 3.6.1.2. Salted S2K This includes a "salt"…
WilliamKF
  • 41,123
  • 68
  • 193
  • 295
1
vote
1 answer

Alternative to mhash_keygen_s2k()

The mcrypt_encrypt manual page says that: It is recommended to use the mhash functions to create a key from a string. But the introduction of the mhash manual says that: Note: This extension is obsoleted by Hash. However, the closest thing I…
Alix Axel
  • 151,645
  • 95
  • 393
  • 500