/external/chromium_org/third_party/openssl/openssl/crypto/dh/ |
dh.h | 1 /* crypto/dh/dh.h */ 65 #error DH is disabled. 81 #define DH_FLAG_NO_EXP_CONSTTIME 0x02 /* new with 0.9.7h; the built-in DH 89 /* If this flag is set the DH method is FIPS compliant and can be used 109 /* typedef struct dh_st DH; */ 116 int (*generate_key)(DH *dh); 117 int (*compute_key)(unsigned char *key,const BIGNUM *pub_key,DH *dh); [all...] |
dh_asn1.c | 62 #include <openssl/dh.h> 75 DH_free((DH *)*pval); 83 ASN1_SIMPLE(DH, p, BIGNUM), 84 ASN1_SIMPLE(DH, g, BIGNUM), 85 ASN1_OPT(DH, length, ZLONG), 86 } ASN1_SEQUENCE_END_cb(DH, DHparams) 88 IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(DH, DHparams, DHparams) 90 DH *DHparams_dup(DH *dh) [all...] |
dh_depr.c | 1 /* crypto/dh/dh_depr.c */ 62 #include <openssl/dh.h> 67 DH *DH_generate_parameters(int prime_len, int generator, 71 DH *ret=NULL;
|
dh_key.c | 1 /* crypto/dh/dh_key.c */ 63 #include <openssl/dh.h> 65 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, 71 static int dh_init(DH *dh); [all...] |
dh_lib.c | 1 /* crypto/dh/dh_lib.c */ 62 #include <openssl/dh.h> 96 int DH_set_method(DH *dh, const DH_METHOD *meth) 101 mtmp = dh->meth; 102 if (mtmp->finish) mtmp->finish(dh); 104 if (dh->engine) 106 ENGINE_finish(dh->engine); 107 dh->engine = NULL; 110 dh->meth = meth [all...] |
dh_gen.c | 1 /* crypto/dh/dh_gen.c */ 67 #include <openssl/dh.h> 73 static int dh_builtin_genparams(DH *ret, int prime_len, int generator, BN_GENCB *cb); 75 int DH_generate_parameters_ex(DH *ret, int prime_len, int generator, BN_GENCB *cb) 95 /* We generate DH parameters as follows 113 * Since DH should be using a safe prime (both p and q are prime), 120 static int dh_builtin_genparams(DH *ret, int prime_len, int generator, BN_GENCB *cb)
|
p192.c | 1 /* crypto/dh/p192.c */ 62 #include <openssl/dh.h> 73 DH *dh; local 75 dh=DH_new(); 76 dh->p=BN_bin2bn(data,sizeof(data),NULL); 77 dh->g=BN_new(); 78 BN_set_word(dh->g,3); 79 PEM_write_DHparams(stdout,dh);
|
dh_check.c | 1 /* crypto/dh/dh_check.c */ 62 #include <openssl/dh.h> 73 int DH_check(const DH *dh, int *ret) 86 if (BN_is_word(dh->g,DH_GENERATOR_2)) 88 l=BN_mod_word(dh->p,24); 92 else if (BN_is_word(dh->g,DH_GENERATOR_3)) 94 l=BN_mod_word(dh->p,12); 98 else if (BN_is_word(dh->g,DH_GENERATOR_5)) 100 l=BN_mod_word(dh->p,10) [all...] |
p512.c | 1 /* crypto/dh/p512.c */ 62 #include <openssl/dh.h> 78 DH *dh; local 80 dh=DH_new(); 81 dh->p=BN_bin2bn(data,sizeof(data),NULL); 82 dh->g=BN_new(); 83 BN_set_word(dh->g,2); 84 PEM_write_DHparams(stdout,dh);
|
dh_ameth.c | 62 #include <openssl/dh.h> 68 DH_free(pkey->pkey.dh); 81 DH *dh = NULL; local 97 if (!(dh = d2i_DHparams(NULL, &pm, pmlen))) 110 if (!(dh->pub_key = ASN1_INTEGER_to_BN(public_key, NULL))) 117 EVP_PKEY_assign_DH(pkey, dh); 123 if (dh) 124 DH_free(dh); 131 DH *dh local 194 DH *dh = NULL; local 301 DH *dh; local [all...] |
dh_pmeth.c | 63 #include <openssl/dh.h> 67 /* DH pkey context structure */ 163 DH *dh = NULL; local 174 dh = DH_new(); 175 if (!dh) 177 ret = DH_generate_parameters_ex(dh, 180 EVP_PKEY_assign_DH(pkey, dh); 182 DH_free(dh); 188 DH *dh = NULL local [all...] |
/external/chromium_org/third_party/openssl/openssl/include/openssl/ |
dh.h | 1 /* crypto/dh/dh.h */ 65 #error DH is disabled. 81 #define DH_FLAG_NO_EXP_CONSTTIME 0x02 /* new with 0.9.7h; the built-in DH 89 /* If this flag is set the DH method is FIPS compliant and can be used 109 /* typedef struct dh_st DH; */ 116 int (*generate_key)(DH *dh); 117 int (*compute_key)(unsigned char *key,const BIGNUM *pub_key,DH *dh); [all...] |
/external/openssl/crypto/dh/ |
dh.h | 1 /* crypto/dh/dh.h */ 65 #error DH is disabled. 81 #define DH_FLAG_NO_EXP_CONSTTIME 0x02 /* new with 0.9.7h; the built-in DH 89 /* If this flag is set the DH method is FIPS compliant and can be used 109 /* typedef struct dh_st DH; */ 116 int (*generate_key)(DH *dh); 117 int (*compute_key)(unsigned char *key,const BIGNUM *pub_key,DH *dh); [all...] |
dh_asn1.c | 62 #include <openssl/dh.h> 75 DH_free((DH *)*pval); 83 ASN1_SIMPLE(DH, p, BIGNUM), 84 ASN1_SIMPLE(DH, g, BIGNUM), 85 ASN1_OPT(DH, length, ZLONG), 86 } ASN1_SEQUENCE_END_cb(DH, DHparams) 88 IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(DH, DHparams, DHparams) 90 DH *DHparams_dup(DH *dh) [all...] |
dh_depr.c | 1 /* crypto/dh/dh_depr.c */ 62 #include <openssl/dh.h> 67 DH *DH_generate_parameters(int prime_len, int generator, 71 DH *ret=NULL;
|
dh_key.c | 1 /* crypto/dh/dh_key.c */ 63 #include <openssl/dh.h> 65 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, 71 static int dh_init(DH *dh); [all...] |
dh_lib.c | 1 /* crypto/dh/dh_lib.c */ 62 #include <openssl/dh.h> 96 int DH_set_method(DH *dh, const DH_METHOD *meth) 101 mtmp = dh->meth; 102 if (mtmp->finish) mtmp->finish(dh); 104 if (dh->engine) 106 ENGINE_finish(dh->engine); 107 dh->engine = NULL; 110 dh->meth = meth [all...] |
dh_gen.c | 1 /* crypto/dh/dh_gen.c */ 67 #include <openssl/dh.h> 73 static int dh_builtin_genparams(DH *ret, int prime_len, int generator, BN_GENCB *cb); 75 int DH_generate_parameters_ex(DH *ret, int prime_len, int generator, BN_GENCB *cb) 95 /* We generate DH parameters as follows 113 * Since DH should be using a safe prime (both p and q are prime), 120 static int dh_builtin_genparams(DH *ret, int prime_len, int generator, BN_GENCB *cb)
|
p192.c | 1 /* crypto/dh/p192.c */ 62 #include <openssl/dh.h> 73 DH *dh; local 75 dh=DH_new(); 76 dh->p=BN_bin2bn(data,sizeof(data),NULL); 77 dh->g=BN_new(); 78 BN_set_word(dh->g,3); 79 PEM_write_DHparams(stdout,dh);
|
dh_check.c | 1 /* crypto/dh/dh_check.c */ 62 #include <openssl/dh.h> 73 int DH_check(const DH *dh, int *ret) 86 if (BN_is_word(dh->g,DH_GENERATOR_2)) 88 l=BN_mod_word(dh->p,24); 92 else if (BN_is_word(dh->g,DH_GENERATOR_3)) 94 l=BN_mod_word(dh->p,12); 98 else if (BN_is_word(dh->g,DH_GENERATOR_5)) 100 l=BN_mod_word(dh->p,10) [all...] |
p512.c | 1 /* crypto/dh/p512.c */ 62 #include <openssl/dh.h> 78 DH *dh; local 80 dh=DH_new(); 81 dh->p=BN_bin2bn(data,sizeof(data),NULL); 82 dh->g=BN_new(); 83 BN_set_word(dh->g,2); 84 PEM_write_DHparams(stdout,dh);
|
dh_ameth.c | 62 #include <openssl/dh.h> 68 DH_free(pkey->pkey.dh); 81 DH *dh = NULL; local 97 if (!(dh = d2i_DHparams(NULL, &pm, pmlen))) 110 if (!(dh->pub_key = ASN1_INTEGER_to_BN(public_key, NULL))) 117 EVP_PKEY_assign_DH(pkey, dh); 123 if (dh) 124 DH_free(dh); 131 DH *dh local 194 DH *dh = NULL; local 301 DH *dh; local [all...] |
/external/openssl/include/openssl/ |
dh.h | 1 /* crypto/dh/dh.h */ 65 #error DH is disabled. 81 #define DH_FLAG_NO_EXP_CONSTTIME 0x02 /* new with 0.9.7h; the built-in DH 89 /* If this flag is set the DH method is FIPS compliant and can be used 109 /* typedef struct dh_st DH; */ 116 int (*generate_key)(DH *dh); 117 int (*compute_key)(unsigned char *key,const BIGNUM *pub_key,DH *dh); [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ |
DH.java | 5 import org.bouncycastle.jcajce.provider.asymmetric.dh.KeyFactorySpi; 13 public class DH 15 private static final String PREFIX = "org.bouncycastle.jcajce.provider.asymmetric" + ".dh."; 26 provider.addAlgorithm("KeyPairGenerator.DH", PREFIX + "KeyPairGeneratorSpi"); 27 provider.addAlgorithm("Alg.Alias.KeyPairGenerator.DIFFIEHELLMAN", "DH"); 29 provider.addAlgorithm("KeyAgreement.DH", PREFIX + "KeyAgreementSpi"); 30 provider.addAlgorithm("Alg.Alias.KeyAgreement.DIFFIEHELLMAN", "DH"); 32 provider.addAlgorithm("KeyFactory.DH", PREFIX + "KeyFactorySpi"); 33 provider.addAlgorithm("Alg.Alias.KeyFactory.DIFFIEHELLMAN", "DH"); 36 registerOid(provider, PKCSObjectIdentifiers.dhKeyAgreement, "DH", keyFact) [all...] |
/art/compiler/utils/x86/ |
constants_x86.h | 37 DH = 6,
|