3 #include <linux/kernel.h>
4 #include <linux/list.h>
21 crypto_free_cipher(ctx->
tfm);
33 ctx->
tfm = crypto_alloc_cipher(
"aes", 0, 0);
35 if (IS_ERR(ctx->
tfm)) {
36 err = PTR_ERR(ctx->
tfm);
38 pr_err(
"TCP: TFO aes cipher alloc error: %d\n", err);
41 err = crypto_cipher_setkey(ctx->
tfm, key, len);
43 pr_err(
"TCP: TFO cipher key error: %d\n", err);
44 crypto_free_cipher(ctx->
tfm);
49 spin_lock(&tcp_fastopen_ctx_lock);
52 lockdep_is_held(&tcp_fastopen_ctx_lock));
54 spin_unlock(&tcp_fastopen_ctx_lock);
75 crypto_cipher_encrypt_one(ctx->
tfm,
83 static int __init tcp_fastopen_init(
void)