This source file includes following definitions.
- kpp_request_ctx
- kpp_tfm_ctx
- kpp_request_complete
- kpp_alg_name
1
2
3
4
5
6
7
8 #ifndef _CRYPTO_KPP_INT_H
9 #define _CRYPTO_KPP_INT_H
10 #include <crypto/kpp.h>
11 #include <crypto/algapi.h>
12
13
14
15
16 static inline void *kpp_request_ctx(struct kpp_request *req)
17 {
18 return req->__ctx;
19 }
20
21 static inline void *kpp_tfm_ctx(struct crypto_kpp *tfm)
22 {
23 return tfm->base.__crt_ctx;
24 }
25
26 static inline void kpp_request_complete(struct kpp_request *req, int err)
27 {
28 req->base.complete(&req->base, err);
29 }
30
31 static inline const char *kpp_alg_name(struct crypto_kpp *tfm)
32 {
33 return crypto_kpp_tfm(tfm)->__crt_alg->cra_name;
34 }
35
36
37
38
39
40
41
42
43
44
45
46 int crypto_register_kpp(struct kpp_alg *alg);
47
48
49
50
51
52
53
54
55
56
57 void crypto_unregister_kpp(struct kpp_alg *alg);
58
59 #endif