Re: Crypto Update for 2.6.38

From: Pavel Roskin
Date: Thu Jan 06 2011 - 21:39:34 EST

Quoting Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>:

setsockopt(tfmfd, SOL_ALG, ALG_SET_KEY,
"\x51\x2e\x03\xd5\x34\x12\x00\x06", 16);

By the way, is it a good idea to use setsockopt() this way? Some keys may be large. And if AEAD is supported, will it use setsockopt() for the unencrypted authenticated data?

Maybe some variation of write() or sendto() would be more appropriate?

Pavel Roskin
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at