fixed signedness warning
added support for self-encryption mode, updated POD accordingly.