/crypto/ |
D | af_alg.c | 121 if (sock->sk) { in af_alg_release() 122 sock_put(sock->sk); in af_alg_release() 123 sock->sk = NULL; in af_alg_release() 129 void af_alg_release_parent(struct sock *sk) in af_alg_release_parent() argument 131 struct alg_sock *ask = alg_sk(sk); in af_alg_release_parent() 134 sk = ask->parent; in af_alg_release_parent() 135 ask = alg_sk(sk); in af_alg_release_parent() 141 sock_put(sk); in af_alg_release_parent() 148 struct sock *sk = sock->sk; in alg_bind() local 149 struct alg_sock *ask = alg_sk(sk); in alg_bind() [all …]
|
D | algif_hash.c | 32 static int hash_alloc_result(struct sock *sk, struct hash_ctx *ctx) in hash_alloc_result() argument 41 ctx->result = sock_kmalloc(sk, ds, GFP_KERNEL); in hash_alloc_result() 50 static void hash_free_result(struct sock *sk, struct hash_ctx *ctx) in hash_free_result() argument 59 sock_kzfree_s(sk, ctx->result, ds); in hash_free_result() 67 struct sock *sk = sock->sk; in hash_sendmsg() local 68 struct alg_sock *ask = alg_sk(sk); in hash_sendmsg() 73 if (limit > sk->sk_sndbuf) in hash_sendmsg() 74 limit = sk->sk_sndbuf; in hash_sendmsg() 76 lock_sock(sk); in hash_sendmsg() 79 hash_free_result(sk, ctx); in hash_sendmsg() [all …]
|
D | algif_skcipher.c | 40 struct sock *sk = sock->sk; in skcipher_sendmsg() local 41 struct alg_sock *ask = alg_sk(sk); in skcipher_sendmsg() 53 struct sock *sk = sock->sk; in _skcipher_recvmsg() local 54 struct alg_sock *ask = alg_sk(sk); in _skcipher_recvmsg() 65 err = af_alg_wait_for_data(sk, flags, bs); in _skcipher_recvmsg() 71 areq = af_alg_alloc_areq(sk, sizeof(struct af_alg_async_req) + in _skcipher_recvmsg() 77 err = af_alg_get_rsgl(sk, msg, flags, areq, ctx->used, &len); in _skcipher_recvmsg() 92 areq->tsgl_entries = af_alg_count_tsgl(sk, len, 0); in _skcipher_recvmsg() 95 areq->tsgl = sock_kmalloc(sk, array_size(sizeof(*areq->tsgl), in _skcipher_recvmsg() 103 af_alg_pull_tsgl(sk, len, areq->tsgl, 0); in _skcipher_recvmsg() [all …]
|
D | algif_aead.c | 44 static inline bool aead_sufficient_data(struct sock *sk) in aead_sufficient_data() argument 46 struct alg_sock *ask = alg_sk(sk); in aead_sufficient_data() 63 struct sock *sk = sock->sk; in aead_sendmsg() local 64 struct alg_sock *ask = alg_sk(sk); in aead_sendmsg() 91 struct sock *sk = sock->sk; in _aead_recvmsg() local 92 struct alg_sock *ask = alg_sk(sk); in _aead_recvmsg() 110 err = af_alg_wait_for_data(sk, flags, 0); in _aead_recvmsg() 130 if (!aead_sufficient_data(sk)) in _aead_recvmsg() 153 areq = af_alg_alloc_areq(sk, sizeof(struct af_alg_async_req) + in _aead_recvmsg() 159 err = af_alg_get_rsgl(sk, msg, flags, areq, outlen, &usedpages); in _aead_recvmsg() [all …]
|
D | algif_rng.c | 110 struct sock *sk = sock->sk; in rng_recvmsg() local 111 struct alg_sock *ask = alg_sk(sk); in rng_recvmsg() 120 struct sock *sk = sock->sk; in rng_test_recvmsg() local 121 struct alg_sock *ask = alg_sk(sk); in rng_test_recvmsg() 125 lock_sock(sock->sk); in rng_test_recvmsg() 128 release_sock(sock->sk); in rng_test_recvmsg() 136 struct alg_sock *ask = alg_sk(sock->sk); in rng_test_sendmsg() 139 lock_sock(sock->sk); in rng_test_sendmsg() 160 release_sock(sock->sk); in rng_test_sendmsg() 232 static void rng_sock_destruct(struct sock *sk) in rng_sock_destruct() argument [all …]
|
D | twofish_common.c | 494 ctx->s[2][i] = mds[2][q1[q0[(a) ^ sc] ^ sg] ^ sk]; \ 502 ctx->s[2][i] = mds[2][q1[q0[q0[(a) ^ sc] ^ sg] ^ sk] ^ so]; \ 580 u8 si = 0, sj = 0, sk = 0, sl = 0, sm = 0, sn = 0, so = 0, sp = 0; in __twofish_setkey() local 612 CALC_S (si, sj, sk, sl, 16, 0x00, 0x2D, 0x01, 0x2D); /* 01 A4 02 A4 */ in __twofish_setkey() 613 CALC_S (si, sj, sk, sl, 17, 0x2D, 0xA4, 0x44, 0x8A); /* A4 56 A1 55 */ in __twofish_setkey() 614 CALC_S (si, sj, sk, sl, 18, 0x8A, 0xD5, 0xBF, 0xD1); /* 55 82 FC 87 */ in __twofish_setkey() 615 CALC_S (si, sj, sk, sl, 19, 0xD1, 0x7F, 0x3D, 0x99); /* 87 F3 C1 5A */ in __twofish_setkey() 616 CALC_S (si, sj, sk, sl, 20, 0x99, 0x46, 0x66, 0x96); /* 5A 1E 47 58 */ in __twofish_setkey() 617 CALC_S (si, sj, sk, sl, 21, 0x96, 0x3C, 0x5B, 0xED); /* 58 C6 AE DB */ in __twofish_setkey() 618 CALC_S (si, sj, sk, sl, 22, 0xED, 0x37, 0x4F, 0xE0); /* DB 68 3D 9E */ in __twofish_setkey() [all …]
|
D | crypto_user_base.c | 187 struct net *net = sock_net(in_skb->sk); in crypto_report() 425 struct net *net = sock_net(skb->sk); in crypto_user_rcv_msg()
|
D | ecc.c | 1151 u64 sk[2][ECC_MAX_DIGITS]; in ecc_point_mult() local 1157 carry = vli_add(sk[0], scalar, curve->n, ndigits); in ecc_point_mult() 1158 vli_add(sk[1], sk[0], curve->n, ndigits); in ecc_point_mult() 1159 scalar = sk[!carry]; in ecc_point_mult()
|
D | crypto_user_stat.c | 298 struct net *net = sock_net(in_skb->sk); in crypto_reportstat()
|