SL2 Analyzer
Read a FromSoftware .sl2 save and report what is in it
Loading...
Searching...
No Matches
crypto.py File Reference

Go to the source code of this file.

Namespaces

namespace  sl2
 
namespace  sl2.crypto
 

Functions

 sl2.crypto._aes_cbc (key, iv, ct)
 AES-128-CBC decrypt, truncated to a whole number of blocks.
 
 sl2.crypto.decrypt_ds2 (blob, key=DS2_KEY)
 Decrypt a DS2 entry: [16B MD5][16B IV][ciphertext], plaintext prefixed by a uint32 length.
 
 sl2.crypto.decrypt_iv_prefixed (blob, key)
 Decrypt a DSR or DS3 entry.
 
 sl2.crypto.decrypt_none (blob)
 "Decrypt" an unencrypted entry (PtDE, Elden Ring).
 
 sl2.crypto.decrypt_nr (blob, key=NR_KEY)
 Decrypt an Elden Ring Nightreign entry: [16B IV][ciphertext].
 
 sl2.crypto.nr_checksum_ok (pt)
 Does a decrypted Nightreign entry hash to the digest it carries?
 

Variables

 sl2.crypto.NR_MD5_FROM_END
 Where the MD5 sits, counting back from the end of a Nightreign plaintext, and how much of the plaintext it covers.
 
 sl2.crypto.NR_MD5_SKIP
 Where the MD5 sits, counting back from the end of a Nightreign plaintext, and how much of the plaintext it covers.