Home
last modified time | relevance | path

Searched full:dh (Results 1 – 25 of 486) sorted by relevance

12345678910>>...20

/OK3568_Linux_fs/buildroot/dl/rtmpdump/git/librtmp/
H A Ddh.h58 static int MDH_generate_key(MDH *dh) in MDH_generate_key() argument
61 MP_set(&dh->ctx.P, dh->p); in MDH_generate_key()
62 MP_set(&dh->ctx.G, dh->g); in MDH_generate_key()
63 dh->ctx.len = 128; in MDH_generate_key()
64 dhm_make_public(&dh->ctx, 1024, out, 1, havege_random, &RTMP_TLS_ctx->hs); in MDH_generate_key()
65 MP_new(dh->pub_key); in MDH_generate_key()
66 MP_new(dh->priv_key); in MDH_generate_key()
67 MP_set(dh->pub_key, &dh->ctx.GX); in MDH_generate_key()
68 MP_set(dh->priv_key, &dh->ctx.X); in MDH_generate_key()
72 static int MDH_compute_key(uint8_t *secret, size_t len, MP_t pub, MDH *dh) in MDH_compute_key() argument
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/host_include/openssl/
H A Ddh.h69 // DH contains functions for performing Diffie-Hellman key agreement in
79 // DH_new returns a new, empty DH object or NULL on error.
80 OPENSSL_EXPORT DH *DH_new(void);
82 // DH_free decrements the reference count of |dh| and frees it if the reference
84 OPENSSL_EXPORT void DH_free(DH *dh);
86 // DH_up_ref increments the reference count of |dh| and returns one.
87 OPENSSL_EXPORT int DH_up_ref(DH *dh);
92 // DH_get0_pub_key returns |dh|'s public key.
93 OPENSSL_EXPORT const BIGNUM *DH_get0_pub_key(const DH *dh);
95 // DH_get0_priv_key returns |dh|'s private key, or NULL if |dh| is a public key.
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/openssl/
H A Ddh.h69 // DH contains functions for performing Diffie-Hellman key agreement in
79 // DH_new returns a new, empty DH object or NULL on error.
80 OPENSSL_EXPORT DH *DH_new(void);
82 // DH_free decrements the reference count of |dh| and frees it if the reference
84 OPENSSL_EXPORT void DH_free(DH *dh);
86 // DH_up_ref increments the reference count of |dh| and returns one.
87 OPENSSL_EXPORT int DH_up_ref(DH *dh);
92 // DH_get0_pub_key returns |dh|'s public key.
93 OPENSSL_EXPORT const BIGNUM *DH_get0_pub_key(const DH *dh);
95 // DH_get0_priv_key returns |dh|'s private key, or NULL if |dh| is a public key.
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/host_include/openssl/
H A Ddh.h69 // DH contains functions for performing Diffie-Hellman key agreement in
79 // DH_new returns a new, empty DH object or NULL on error.
80 OPENSSL_EXPORT DH *DH_new(void);
82 // DH_free decrements the reference count of |dh| and frees it if the reference
84 OPENSSL_EXPORT void DH_free(DH *dh);
86 // DH_up_ref increments the reference count of |dh| and returns one.
87 OPENSSL_EXPORT int DH_up_ref(DH *dh);
92 // DH_get0_pub_key returns |dh|'s public key.
93 OPENSSL_EXPORT const BIGNUM *DH_get0_pub_key(const DH *dh);
95 // DH_get0_priv_key returns |dh|'s private key, or NULL if |dh| is a public key.
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/openssl/
H A Ddh.h69 // DH contains functions for performing Diffie-Hellman key agreement in
79 // DH_new returns a new, empty DH object or NULL on error.
80 OPENSSL_EXPORT DH *DH_new(void);
82 // DH_free decrements the reference count of |dh| and frees it if the reference
84 OPENSSL_EXPORT void DH_free(DH *dh);
86 // DH_up_ref increments the reference count of |dh| and returns one.
87 OPENSSL_EXPORT int DH_up_ref(DH *dh);
92 // DH_get0_pub_key returns |dh|'s public key.
93 OPENSSL_EXPORT const BIGNUM *DH_get0_pub_key(const DH *dh);
95 // DH_get0_priv_key returns |dh|'s private key, or NULL if |dh| is a public key.
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v1/export-user_ta/include/openssl/
H A Ddh.h70 // DH contains functions for performing Diffie-Hellman key agreement in
76 // DH_new returns a new, empty DH object or NULL on error.
77 OPENSSL_EXPORT DH *DH_new(void);
79 // DH_free decrements the reference count of |dh| and frees it if the reference
81 OPENSSL_EXPORT void DH_free(DH *dh);
83 // DH_up_ref increments the reference count of |dh| and returns one.
84 OPENSSL_EXPORT int DH_up_ref(DH *dh);
89 // DH_get0_key sets |*out_pub_key| and |*out_priv_key|, if non-NULL, to |dh|'s
90 // public and private key, respectively. If |dh| is a public key, the private
92 OPENSSL_EXPORT void DH_get0_key(const DH *dh, const BIGNUM **out_pub_key,
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v1/export-user_ta/host_include/openssl/
H A Ddh.h70 // DH contains functions for performing Diffie-Hellman key agreement in
76 // DH_new returns a new, empty DH object or NULL on error.
77 OPENSSL_EXPORT DH *DH_new(void);
79 // DH_free decrements the reference count of |dh| and frees it if the reference
81 OPENSSL_EXPORT void DH_free(DH *dh);
83 // DH_up_ref increments the reference count of |dh| and returns one.
84 OPENSSL_EXPORT int DH_up_ref(DH *dh);
89 // DH_get0_key sets |*out_pub_key| and |*out_priv_key|, if non-NULL, to |dh|'s
90 // public and private key, respectively. If |dh| is a public key, the private
92 OPENSSL_EXPORT void DH_get0_key(const DH *dh, const BIGNUM **out_pub_key,
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/host/openssl/include/openssl/
H A Ddh.h1 /* crypto/dh/dh.h */
65 # error DH is disabled.
83 * new with 0.9.7h; the built-in DH
93 * If this flag is set the DH method is FIPS compliant and can be used in
114 /* typedef struct dh_st DH; */
120 int (*generate_key) (DH *dh);
121 int (*compute_key) (unsigned char *key, const BIGNUM *pub_key, DH *dh);
123 int (*bn_mod_exp) (const DH *dh, BIGNUM *r, const BIGNUM *a,
126 int (*init) (DH *dh);
127 int (*finish) (DH *dh);
[all …]
/OK3568_Linux_fs/buildroot/package/ibrdtnd/
H A D0001-ibrdtnd-added-openssl-compatibility.patch45 - write(request, state.dh->pub_key);
46 - write(request, state.dh->p);
47 - write(request, state.dh->g);
48 + DH_get0_pqg(state.dh, &p, NULL, &g);
49 + DH_get0_key(state.dh, &pub_key, NULL);
67 + throw ibrcommon::Exception("Error while allocating space for DH parameters");
74 state.dh = DH_new();
77 - read(data, &state.dh->p);
78 - read(data, &state.dh->g);
82 + if (DH_set0_pqg(state.dh, p, NULL, g))
[all …]
/OK3568_Linux_fs/kernel/include/crypto/
H A Ddh.h12 * DOC: DH Helper Functions
14 * To use DH with the KPP cipher API, the following data structure and
17 * To use DH with KPP, the following functions should be used to operate on
18 * a DH private key. The packet private key that can be set with
23 * struct dh - define a DH private key
25 * @key: Private DH key
29 * @key_size: Size of the private DH key
30 * @p_size: Size of DH parameter P
31 * @q_size: Size of DH parameter Q
32 * @g_size: Size of DH generator G
[all …]
/OK3568_Linux_fs/kernel/net/netfilter/
H A Dxt_dccp.c37 const struct dccp_hdr *dh, in dccp_find_option() argument
42 unsigned int optoff = __dccp_hdr_len(dh); in dccp_find_option()
43 unsigned int optlen = dh->dccph_doff*4 - __dccp_hdr_len(dh); in dccp_find_option()
46 if (dh->dccph_doff * 4 < __dccp_hdr_len(dh)) in dccp_find_option()
83 match_types(const struct dccp_hdr *dh, u_int16_t typemask) in match_types() argument
85 return typemask & (1 << dh->dccph_type); in match_types()
90 const struct dccp_hdr *dh, bool *hotdrop) in match_option() argument
92 return dccp_find_option(option, skb, protoff, dh, hotdrop); in match_option()
99 const struct dccp_hdr *dh; in dccp_mt() local
105 dh = skb_header_pointer(skb, par->thoff, sizeof(_dh), &_dh); in dccp_mt()
[all …]
H A Dxt_hashlimit.c366 struct dsthash_ent *dh; in htable_selective_cleanup() local
370 hlist_for_each_entry_safe(dh, n, &ht->hash[i], node) { in htable_selective_cleanup()
371 if (time_after_eq(jiffies, dh->expires) || select_all) in htable_selective_cleanup()
372 dsthash_free(ht, dh); in htable_selective_cleanup()
529 static void rateinfo_recalc(struct dsthash_ent *dh, unsigned long now, in rateinfo_recalc() argument
532 unsigned long delta = now - dh->rateinfo.prev; in rateinfo_recalc()
539 u64 interval = dh->rateinfo.interval * HZ; in rateinfo_recalc()
544 dh->rateinfo.prev = now; in rateinfo_recalc()
545 dh->rateinfo.prev_window = in rateinfo_recalc()
546 ((dh->rateinfo.current_rate * interval) > in rateinfo_recalc()
[all …]
/OK3568_Linux_fs/buildroot/package/pound/
H A D0001-fix-openssl-1.0.2.patch32 +# include <openssl/dh.h>
35 +DH *get_dh2048()
68 + DH *dh = DH_new();
71 + if (dh == NULL)
76 + || !DH_set0_pqg(dh, dhp_bn, NULL, dhg_bn)) {
77 + DH_free(dh);
82 + return dh;
94 +static inline int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g)
99 + if ((dh->p == NULL && p == NULL)
100 + || (dh->g == NULL && g == NULL))
[all …]
/OK3568_Linux_fs/kernel/drivers/firmware/
H A Ddmi-sysfs.c35 struct dmi_header dh; member
70 const struct dmi_header *dh,
116 const struct dmi_header *dh, void *);
126 static void find_dmi_entry_helper(const struct dmi_header *dh, in find_dmi_entry_helper() argument
133 if (dh->type != entry->dh.type) in find_dmi_entry_helper()
149 data->ret = data->callback(entry, dh, data->private); in find_dmi_entry_helper()
180 * dh. This includes both the formatted portion as well as the
183 static size_t dmi_entry_length(const struct dmi_header *dh) in dmi_entry_length() argument
185 const char *p = (const char *)dh; in dmi_entry_length()
187 p += dh->length; in dmi_entry_length()
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/share/i18n/locales/
H A Dsq_AL58 % &[before 1]E<dh<<<Dh<<<DH
73 % &[before 1]E<dh<<<dH<<<Dh<<<DH
90 % <exemplarCharacters type="index">[A B C Ç D {DH} E Ë F G {GJ} H I J K L {LL} M N {NJ} O P Q R {RR…
97 collating-symbol <dh-digraph>
108 collating-element <dh> from "dh"
109 collating-element <dH> from "dH"
110 collating-element <Dh> from "Dh"
111 collating-element <DH> from "DH"
148 <dh-digraph>
170 <dh> <dh-digraph>;"<BASE><BASE>";"<MIN><MIN>";IGNORE
[all …]
H A Dom_KE72 % &Z<ch<<<Ch<<<CH<dh<<<Dh<<<DH<kh<<<Kh<<<KH<ny<<<Ny<<<NY<ph<<<Ph<<<PH<sh<<<Sh
90 collating-symbol <dh-digraph>
91 collating-element <dh> from "dh"
92 collating-element <dH> from "dH"
93 collating-element <Dh> from "Dh"
94 collating-element <DH> from "DH"
118 <dh-digraph>
128 <dh> <dh-digraph>;"<BASE><BASE>";"<MIN><MIN>";IGNORE
129 <dH> <dh-digraph>;"<BASE><BASE>";"<MIN><CAP>";IGNORE
130 <Dh> <dh-digraph>;"<BASE><BASE>";"<CAP><MIN>";IGNORE
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/share/i18n/locales/
H A Dsq_AL58 % &[before 1]E<dh<<<Dh<<<DH
73 % &[before 1]E<dh<<<dH<<<Dh<<<DH
90 % <exemplarCharacters type="index">[A B C Ç D {DH} E Ë F G {GJ} H I J K L {LL} M N {NJ} O P Q R {RR…
97 collating-symbol <dh-digraph>
108 collating-element <dh> from "dh"
109 collating-element <dH> from "dH"
110 collating-element <Dh> from "Dh"
111 collating-element <DH> from "DH"
148 <dh-digraph>
170 <dh> <dh-digraph>;"<BASE><BASE>";"<MIN><MIN>";IGNORE
[all …]
H A Dom_KE72 % &Z<ch<<<Ch<<<CH<dh<<<Dh<<<DH<kh<<<Kh<<<KH<ny<<<Ny<<<NY<ph<<<Ph<<<PH<sh<<<Sh
90 collating-symbol <dh-digraph>
91 collating-element <dh> from "dh"
92 collating-element <dH> from "dH"
93 collating-element <Dh> from "Dh"
94 collating-element <DH> from "DH"
118 <dh-digraph>
128 <dh> <dh-digraph>;"<BASE><BASE>";"<MIN><MIN>";IGNORE
129 <dH> <dh-digraph>;"<BASE><BASE>";"<MIN><CAP>";IGNORE
130 <Dh> <dh-digraph>;"<BASE><BASE>";"<CAP><MIN>";IGNORE
[all …]
/OK3568_Linux_fs/kernel/net/dccp/
H A Dinput.c187 const struct dccp_hdr *dh = dccp_hdr(skb); in dccp_check_seqno() local
204 if (dh->dccph_type == DCCP_PKT_SYNC || in dccp_check_seqno()
205 dh->dccph_type == DCCP_PKT_SYNCACK) { in dccp_check_seqno()
227 if (dh->dccph_type == DCCP_PKT_CLOSEREQ || in dccp_check_seqno()
228 dh->dccph_type == DCCP_PKT_CLOSE || in dccp_check_seqno()
229 dh->dccph_type == DCCP_PKT_RESET) { in dccp_check_seqno()
239 if (dh->dccph_type != DCCP_PKT_SYNC && in dccp_check_seqno()
264 "sending SYNC...\n", dccp_packet_name(dh->dccph_type), in dccp_check_seqno()
274 if (dh->dccph_type == DCCP_PKT_RESET) in dccp_check_seqno()
284 const struct dccp_hdr *dh, const unsigned int len) in __dccp_rcv_established() argument
[all …]
H A Dipv4.c236 const struct dccp_hdr *dh; in dccp_v4_err() local
252 dh = (struct dccp_hdr *)(skb->data + offset); in dccp_v4_err()
255 iph->daddr, dh->dccph_dport, in dccp_v4_err()
256 iph->saddr, ntohs(dh->dccph_sport), in dccp_v4_err()
267 seq = dccp_hdr_seq(dh); in dccp_v4_err()
372 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v4_send_check() local
375 dh->dccph_checksum = dccp_v4_csum_finish(skb, in dccp_v4_send_check()
493 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v4_send_response() local
495 dh->dccph_checksum = dccp_v4_csum_finish(skb, ireq->ir_loc_addr, in dccp_v4_send_response()
656 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v4_do_rcv() local
[all …]
H A Doutput.c49 struct dccp_hdr *dh; in dccp_transmit_skb() local
51 const u32 dccp_header_size = sizeof(*dh) + in dccp_transmit_skb()
100 dh = dccp_zeroed_hdr(skb, dccp_header_size); in dccp_transmit_skb()
101 dh->dccph_type = dcb->dccpd_type; in dccp_transmit_skb()
102 dh->dccph_sport = inet->inet_sport; in dccp_transmit_skb()
103 dh->dccph_dport = inet->inet_dport; in dccp_transmit_skb()
104 dh->dccph_doff = (dccp_header_size + dcb->dccpd_opt_len) / 4; in dccp_transmit_skb()
105 dh->dccph_ccval = dcb->dccpd_ccval; in dccp_transmit_skb()
106 dh->dccph_cscov = dp->dccps_pcslen; in dccp_transmit_skb()
108 dh->dccph_x = 1; in dccp_transmit_skb()
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/qat/qat_common/
H A Dqat_asym_algs.c9 #include <crypto/dh.h>
117 struct qat_dh_input_params dh; member
121 struct qat_dh_output_params dh; member
130 struct qat_dh_ctx *dh; member
134 struct kpp_request *dh; member
143 struct kpp_request *areq = req->areq.dh; in qat_dh_cb()
144 struct device *dev = &GET_DEV(req->ctx.dh->inst->accel_dev); in qat_dh_cb()
152 dma_free_coherent(dev, req->ctx.dh->p_size, in qat_dh_cb()
153 req->src_align, req->in.dh.in.b); in qat_dh_cb()
155 dma_unmap_single(dev, req->in.dh.in.b, in qat_dh_cb()
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Ddccp.h78 static inline struct dccp_hdr_ext *dccp_hdrx(const struct dccp_hdr *dh) in dccp_hdrx() argument
80 return (struct dccp_hdr_ext *)((unsigned char *)dh + sizeof(*dh)); in dccp_hdrx()
83 static inline unsigned int __dccp_basic_hdr_len(const struct dccp_hdr *dh) in __dccp_basic_hdr_len() argument
85 return sizeof(*dh) + (dh->dccph_x ? sizeof(struct dccp_hdr_ext) : 0); in __dccp_basic_hdr_len()
90 const struct dccp_hdr *dh = dccp_hdr(skb); in dccp_basic_hdr_len() local
91 return __dccp_basic_hdr_len(dh); in dccp_basic_hdr_len()
94 static inline __u64 dccp_hdr_seq(const struct dccp_hdr *dh) in dccp_hdr_seq() argument
96 __u64 seq_nr = ntohs(dh->dccph_seq); in dccp_hdr_seq()
98 if (dh->dccph_x != 0) in dccp_hdr_seq()
99 seq_nr = (seq_nr << 32) + ntohl(dccp_hdrx(dh)->dccph_seq_low); in dccp_hdr_seq()
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/hisilicon/hpre/
H A Dhpre_crypto.c4 #include <crypto/dh.h>
82 struct hpre_dh_ctx dh; member
93 struct kpp_request *dh; member
236 /* when the data is dh's source, we should format it */ in hpre_hw_data_init()
376 areq = req->areq.dh; in hpre_dh_cb()
471 h_req->areq.dh = kreq; in hpre_msg_request_set()
474 msg->key = cpu_to_le64(ctx->dh.dma_xa_p); in hpre_msg_request_set()
532 msg->in = cpu_to_le64(ctx->dh.dma_g); in hpre_dh_compute_value()
577 static int hpre_dh_set_params(struct hpre_ctx *ctx, struct dh *params) in hpre_dh_set_params()
590 ctx->dh.xa_p = dma_alloc_coherent(dev, sz << 1, in hpre_dh_set_params()
[all …]
/OK3568_Linux_fs/kernel/fs/quota/
H A Dquota_tree.c96 struct qt_disk_dqdbheader *dh) in check_dquot_block_header() argument
101 le32_to_cpu(dh->dqdh_next_free), 0, in check_dquot_block_header()
106 le32_to_cpu(dh->dqdh_prev_free), 0, in check_dquot_block_header()
116 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; in get_free_dqblk() local
126 ret = check_dquot_block_header(info, dh); in get_free_dqblk()
129 info->dqi_free_blk = le32_to_cpu(dh->dqdh_next_free); in get_free_dqblk()
149 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; in put_free_dqblk() local
152 dh->dqdh_next_free = cpu_to_le32(info->dqi_free_blk); in put_free_dqblk()
153 dh->dqdh_prev_free = cpu_to_le32(0); in put_free_dqblk()
154 dh->dqdh_entries = cpu_to_le16(0); in put_free_dqblk()
[all …]

12345678910>>...20