Re: Here's a nugget...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 16, 2013 at 06:59:04PM +0000, Myklebust, Trond wrote:
> In gss_krb5_add_padding():
> 
> 	memset(p, padding, padding);

RFC 1964 1.2.2.3:

	"Data padding: Before encryption and/or signature calculation,
	plaintext data is padded to the next highest multiple of 8
	bytes, by appending between 1 and 8 bytes, the value of each
	such byte being the total number of pad bytes."

You could add a comment referencing that if you think the memset is
confusing.

--b.
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux