• Ondrej Kozina's avatar
    luks1: harden checks for possibly corrupted headers · bef56af7
    Ondrej Kozina authored
    this patches improves two areas:
    
    1) it checks for keyslot areas overlaping each other
    2) it checks if all keyslot areas fit in header area of device
       (pre-data-offset area) or if it can fit file (detached header)
       it's being loaded from. Those new checks are based on real data
       found in header (offsets) rather than based on assumption calculated
       from key length
    bef56af7
keymanage.c 34.1 KB