Searched refs:DH (Results 1 - 25 of 74) sorted by relevance

123

/freebsd-11-stable/crypto/openssh/
H A Ddh.h35 DH *choose_dh(int, int, int);
36 DH *dh_new_group_asc(const char *, const char *);
37 DH *dh_new_group(BIGNUM *, BIGNUM *);
38 DH *dh_new_group1(void);
39 DH *dh_new_group14(void);
40 DH *dh_new_group16(void);
41 DH *dh_new_group18(void);
42 DH *dh_new_group_fallback(int);
44 int dh_gen_key(DH *, int);
45 int dh_pub_is_valid(DH *, BIGNU
[all...]
H A Ddh.c145 DH *
215 dh_pub_is_valid(DH *dh, BIGNUM *dh_pub)
223 logit("invalid public DH value: negative");
227 logit("invalid public DH value: <= 1");
238 logit("invalid public DH value: >= p-1");
252 logit("invalid public DH value (%d/%d)",
260 dh_gen_key(DH *dh, int need)
283 DH *
286 DH *dh;
303 DH *
[all...]
H A Dmonitor_wrap.h42 DH *mm_choose_dh(int, int, int);
/freebsd-11-stable/crypto/openssl/crypto/dh/
H A Ddh.h65 # 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);
131 int (*generate_params) (DH *d
[all...]
H A Ddh_depr.c66 DH *DH_generate_parameters(int prime_len, int generator,
70 DH *ret = NULL;
H A Ddh_asn1.c77 DH_free((DH *)*pval);
85 ASN1_SIMPLE(DH, p, BIGNUM),
86 ASN1_SIMPLE(DH, g, BIGNUM),
87 ASN1_OPT(DH, length, ZLONG),
88 } ASN1_SEQUENCE_END_cb(DH, DHparams)
90 IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(DH, DHparams, DHparams)
93 * Internal only structures for handling X9.42 DH: this gets translated to or
94 * from a DH structure straight away.
129 /* Application leve function: read in X9.42 DH parameters into DH structur
[all...]
H A Ddh_key.c65 static int generate_key(DH *dh);
66 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh);
67 static int dh_bn_mod_exp(const DH *dh, BIGNUM *r,
70 static int dh_init(DH *dh);
71 static int dh_finish(DH *dh);
73 int DH_generate_key(DH *dh)
85 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)
97 int DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh)
112 "OpenSSL DH Method",
128 static int generate_key(DH *d
[all...]
H A Ddh_prn.c65 int DHparams_print_fp(FILE *fp, const DH *x)
H A Ddh_lib.c95 int DH_set_method(DH *dh, const DH_METHOD *meth)
117 DH *DH_new(void)
122 DH *DH_new_method(ENGINE *engine)
124 DH *ret;
126 ret = (DH *)OPENSSL_malloc(sizeof(DH));
182 void DH_free(DH *r)
189 REF_PRINT("DH", r);
228 int DH_up_ref(DH *r)
232 REF_PRINT("DH",
[all...]
H A Ddh_gen.c73 static int dh_builtin_genparams(DH *ret, int prime_len, int generator,
76 int DH_generate_parameters_ex(DH *ret, int prime_len, int generator,
96 * We generate DH parameters as follows
114 * Since DH should be using a safe prime (both p and q are prime),
122 static int dh_builtin_genparams(DH *ret, int prime_len, int generator,
H A Dp192.c73 DH *dh;
H A Dp512.c78 DH *dh;
H A Ddh_ameth.c73 * i2d/d2i like DH parameter functions which use the appropriate routine for
74 * PKCS#3 DH or X9.42 DH.
77 static DH *d2i_dhp(const EVP_PKEY *pkey, const unsigned char **pp,
85 static int i2d_dhp(const EVP_PKEY *pkey, const DH *a, unsigned char **pp)
107 DH *dh = NULL;
153 DH *dh;
201 * PKCS#8 DH is defined in PKCS#11 of all places. It is similar to DH in that
216 DH *d
[all...]
H A Ddh_check.c74 int DH_check(const DH *dh, int *ret)
151 int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret)
H A Dp1024.c85 DH *dh;
H A Ddh_pmeth.c72 /* DH pkey context structure */
85 /* KDF (if any) to use for DH */
358 DH *dh = NULL;
417 DH *dh = NULL;
436 DH *dh;
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-objcopy/COFF/
H A DReader.cpp27 const dos_header *DH = COFFObj.getDOSHeader(); local
29 if (!DH)
33 Obj.DosHeader = *DH;
34 if (DH->AddressOfNewExeHeader > sizeof(*DH))
35 Obj.DosStub = ArrayRef<uint8_t>(reinterpret_cast<const uint8_t *>(&DH[1]),
36 DH->AddressOfNewExeHeader - sizeof(*DH));
/freebsd-11-stable/crypto/openssl/crypto/pem/
H A Dpem_pkey.c251 /* Transparently read in PKCS#3 or X9.42 DH parameters */
253 DH *PEM_read_bio_DHparams(BIO *bp, DH **x, pem_password_cb *cb, void *u)
259 DH *ret = NULL;
278 DH *PEM_read_DHparams(FILE *fp, DH **x, pem_password_cb *cb, void *u)
281 DH *ret;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DCOFFEmitter.cpp408 object::dos_header DH; local
409 memset(&DH, 0, sizeof(DH));
412 DH.Magic[0] = 'M';
413 DH.Magic[1] = 'Z';
417 DH.AddressOfRelocationTable = sizeof(DH);
419 DH.AddressOfNewExeHeader = DOSStubSize;
422 OS.write(reinterpret_cast<char *>(&DH), sizeof(DH));
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A DLLVMContext.h186 void setDiagnosticHandler(std::unique_ptr<DiagnosticHandler> &&DH,
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DCOFFDumper.cpp115 void printDOSHeader(const dos_header *DH);
637 if (const dos_header *DH = Obj->getDOSHeader())
638 printDOSHeader(DH);
641 void COFFDumper::printDOSHeader(const dos_header *DH) { argument
643 W.printString("Magic", StringRef(DH->Magic, sizeof(DH->Magic)));
644 W.printNumber("UsedBytesInTheLastPage", DH->UsedBytesInTheLastPage);
645 W.printNumber("FileSizeInPages", DH->FileSizeInPages);
646 W.printNumber("NumberOfRelocationItems", DH->NumberOfRelocationItems);
647 W.printNumber("HeaderSizeInParagraphs", DH
[all...]
/freebsd-11-stable/crypto/openssl/crypto/dsa/
H A Ddsa_lib.c290 DH *DSA_dup_DH(const DSA *r)
293 * DSA has p, q, g, optional pub_key, optional priv_key. DH has p,
297 DH *ret = NULL;
/freebsd-11-stable/crypto/openssl/engines/ccgost/
H A Dgost94_keyx.c33 DH *dh)
56 DH *dh = DH_new();
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DSourceMgr.h119 void setDiagHandler(DiagHandlerTy DH, void *Ctx = nullptr) { argument
120 DiagHandler = DH;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/
H A DLLVMContext.cpp125 void LLVMContext::setDiagnosticHandler(std::unique_ptr<DiagnosticHandler> &&DH, argument
127 pImpl->DiagHandler = std::move(DH);

Completed in 682 milliseconds

123