When the body of the mail contains even sequences of \r\n then during either of the simple or relaxed canonicalization techniques null pointer exception gets thrown which is fixed
To & Subject headers have been removed from mandatory tags as mails sent from mail client for instance need not have the headers but the mail is valid & need to be signed
Issue scenarios & fixes