encryption - What is an s2k algorithm? -


What is the definition of an s2k algorithm? For example, "PBKDF2 (SHA-1)" is a s2k algorithm.

Here is some boldan code that refers to s2k:

  AutoSeeded_RNG rng; Std :: auto_ptr & lt; S2K & gt; S2k (get_s2k ("PBKDF2 (SHA-1)")); S2k-> Set_iterations (8192); S2k-> New_rends_stilt (RNG, 8); SymmetricKey bc_key = s2k- & gt; Derive_key (key_len, "BLK" + passphrase); Initial vectors iv = s2k-> Derive_key (iv_len, "IVL" + passphrase); Symmetric Mac_key = s2k-> Derive_key (16, "MAC" + passphrase);  

change the passphrase to the string-to-key (S2K) specifier Use the symmetric key encryption / decryption key to encrypt the secret part of the private key in the private keyring, and use it to change the passphrase in the encryption key for encrypted messages. In places Gets it

Source (with more information)):


Comments