X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tfcrypt.c;fp=tfcrypt.c;h=aac2e68e5116da44c74763f31ba13d8130d91826;hb=5faadb0da4b63d4aa3359cfd97953738ee59a90d;hp=7da9e99e550623fdce783b84d4ee420161d2383c;hpb=ef3f3a7b878b0be4da7a22a6954f378aa86561e3;p=tfcrypt.git diff --git a/tfcrypt.c b/tfcrypt.c index 7da9e99..aac2e68 100644 --- a/tfcrypt.c +++ b/tfcrypt.c @@ -364,7 +364,7 @@ _baddfname: "%s: invalid block size value", s); } else blksize = (size_t)tfc_modifysize((tfc_fsize)blksize, strchr(s, ':')); - if (blksize < TF_BLOCK_SIZE) xerror(NO, YES, YES, + if (do_edcrypt != TFC_DO_PLAIN && blksize < TF_BLOCK_SIZE) xerror(NO, YES, YES, "%s: block size is lesser than TF_BLOCK_SIZE (%u bytes)", s, TFC_U(TF_BLOCK_SIZE)); if (blksize > TFC_BLKSIZE) xerror(NO, YES, YES, "%s: block size exceeds %u bytes",