Skip to content
  • Daniel P. Berrangé's avatar
    84f7f180
    crypto: import an implementation of the XTS cipher mode · 84f7f180
    Daniel P. Berrangé authored
    
    
    The XTS (XEX with tweaked-codebook and ciphertext stealing)
    cipher mode is commonly used in full disk encryption. There
    is unfortunately no implementation of it in either libgcrypt
    or nettle, so we need to provide our own.
    
    The libtomcrypt project provides a repository of crypto
    algorithms under a choice of either "public domain" or
    the "what the fuck public license".
    
    So this impl is taken from the libtomcrypt GIT repo and
    adapted to be compatible with the way we need to call
    ciphers provided by nettle/gcrypt.
    
    Reviewed-by: default avatarEric Blake <eblake@redhat.com>
    Signed-off-by: default avatarDaniel P. Berrange <berrange@redhat.com>
    84f7f180
    crypto: import an implementation of the XTS cipher mode
    Daniel P. Berrangé authored
    
    
    The XTS (XEX with tweaked-codebook and ciphertext stealing)
    cipher mode is commonly used in full disk encryption. There
    is unfortunately no implementation of it in either libgcrypt
    or nettle, so we need to provide our own.
    
    The libtomcrypt project provides a repository of crypto
    algorithms under a choice of either "public domain" or
    the "what the fuck public license".
    
    So this impl is taken from the libtomcrypt GIT repo and
    adapted to be compatible with the way we need to call
    ciphers provided by nettle/gcrypt.
    
    Reviewed-by: default avatarEric Blake <eblake@redhat.com>
    Signed-off-by: default avatarDaniel P. Berrange <berrange@redhat.com>
Loading