Home
last modified time | relevance | path

Searched refs:sk (Results 1 – 4 of 4) sorted by relevance

/crypto/
Dalgif_skcipher.c60 static inline int skcipher_sndbuf(struct sock *sk) in skcipher_sndbuf() argument
62 struct alg_sock *ask = alg_sk(sk); in skcipher_sndbuf()
65 return max_t(int, max_t(int, sk->sk_sndbuf & PAGE_MASK, PAGE_SIZE) - in skcipher_sndbuf()
69 static inline bool skcipher_writable(struct sock *sk) in skcipher_writable() argument
71 return PAGE_SIZE <= skcipher_sndbuf(sk); in skcipher_writable()
74 static int skcipher_alloc_sgl(struct sock *sk) in skcipher_alloc_sgl() argument
76 struct alg_sock *ask = alg_sk(sk); in skcipher_alloc_sgl()
86 sgl = sock_kmalloc(sk, sizeof(*sgl) + in skcipher_alloc_sgl()
106 static void skcipher_pull_sgl(struct sock *sk, int used) in skcipher_pull_sgl() argument
108 struct alg_sock *ask = alg_sk(sk); in skcipher_pull_sgl()
[all …]
Daf_alg.c124 if (sock->sk) in af_alg_release()
125 sock_put(sock->sk); in af_alg_release()
130 void af_alg_release_parent(struct sock *sk) in af_alg_release_parent() argument
132 struct alg_sock *ask = alg_sk(sk); in af_alg_release_parent()
136 sk = ask->parent; in af_alg_release_parent()
137 ask = alg_sk(sk); in af_alg_release_parent()
139 lock_sock(sk); in af_alg_release_parent()
143 release_sock(sk); in af_alg_release_parent()
146 sock_put(sk); in af_alg_release_parent()
152 struct sock *sk = sock->sk; in alg_bind() local
[all …]
Dalgif_hash.c46 struct sock *sk = sock->sk; in hash_sendmsg() local
47 struct alg_sock *ask = alg_sk(sk); in hash_sendmsg()
54 if (limit > sk->sk_sndbuf) in hash_sendmsg()
55 limit = sk->sk_sndbuf; in hash_sendmsg()
57 lock_sock(sk); in hash_sendmsg()
110 release_sock(sk); in hash_sendmsg()
118 struct sock *sk = sock->sk; in hash_sendpage() local
119 struct alg_sock *ask = alg_sk(sk); in hash_sendpage()
126 lock_sock(sk); in hash_sendpage()
155 release_sock(sk); in hash_sendpage()
[all …]
Dtwofish_common.c508 ctx->s[2][i] = mds[2][q1[q0[(a) ^ sc] ^ sg] ^ sk]; \
516 ctx->s[2][i] = mds[2][q1[q0[q0[(a) ^ sc] ^ sg] ^ sk] ^ so]; \
594 u8 si = 0, sj = 0, sk = 0, sl = 0, sm = 0, sn = 0, so = 0, sp = 0; in __twofish_setkey() local
629 CALC_S (si, sj, sk, sl, 16, 0x00, 0x2D, 0x01, 0x2D); /* 01 A4 02 A4 */ in __twofish_setkey()
630 CALC_S (si, sj, sk, sl, 17, 0x2D, 0xA4, 0x44, 0x8A); /* A4 56 A1 55 */ in __twofish_setkey()
631 CALC_S (si, sj, sk, sl, 18, 0x8A, 0xD5, 0xBF, 0xD1); /* 55 82 FC 87 */ in __twofish_setkey()
632 CALC_S (si, sj, sk, sl, 19, 0xD1, 0x7F, 0x3D, 0x99); /* 87 F3 C1 5A */ in __twofish_setkey()
633 CALC_S (si, sj, sk, sl, 20, 0x99, 0x46, 0x66, 0x96); /* 5A 1E 47 58 */ in __twofish_setkey()
634 CALC_S (si, sj, sk, sl, 21, 0x96, 0x3C, 0x5B, 0xED); /* 58 C6 AE DB */ in __twofish_setkey()
635 CALC_S (si, sj, sk, sl, 22, 0xED, 0x37, 0x4F, 0xE0); /* DB 68 3D 9E */ in __twofish_setkey()
[all …]