Last change
on this file since 380 was 331, checked in by coas-nagasima, 6 years ago |
prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-chdr
|
File size:
1.6 KB
|
Rev | Line | |
---|
[331] | 1 | /*
|
---|
| 2 | * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
|
---|
| 3 | *
|
---|
| 4 | * Licensed under the OpenSSL license (the "License"). You may not use
|
---|
| 5 | * this file except in compliance with the License. You can obtain a copy
|
---|
| 6 | * in the file LICENSE in the source distribution or at
|
---|
| 7 | * https://www.openssl.org/source/license.html
|
---|
| 8 | */
|
---|
| 9 |
|
---|
| 10 | #include <openssl/dh.h>
|
---|
| 11 |
|
---|
| 12 | struct dh_st {
|
---|
| 13 | /*
|
---|
| 14 | * This first argument is used to pick up errors when a DH is passed
|
---|
| 15 | * instead of a EVP_PKEY
|
---|
| 16 | */
|
---|
| 17 | int pad;
|
---|
| 18 | int version;
|
---|
| 19 | BIGNUM *p;
|
---|
| 20 | BIGNUM *g;
|
---|
| 21 | long length; /* optional */
|
---|
| 22 | BIGNUM *pub_key; /* g^x % p */
|
---|
| 23 | BIGNUM *priv_key; /* x */
|
---|
| 24 | int flags;
|
---|
| 25 | BN_MONT_CTX *method_mont_p;
|
---|
| 26 | /* Place holders if we want to do X9.42 DH */
|
---|
| 27 | BIGNUM *q;
|
---|
| 28 | BIGNUM *j;
|
---|
| 29 | unsigned char *seed;
|
---|
| 30 | int seedlen;
|
---|
| 31 | BIGNUM *counter;
|
---|
| 32 | int references;
|
---|
| 33 | CRYPTO_EX_DATA ex_data;
|
---|
| 34 | const DH_METHOD *meth;
|
---|
| 35 | ENGINE *engine;
|
---|
| 36 | CRYPTO_RWLOCK *lock;
|
---|
| 37 | };
|
---|
| 38 |
|
---|
| 39 | struct dh_method {
|
---|
| 40 | char *name;
|
---|
| 41 | /* Methods here */
|
---|
| 42 | int (*generate_key) (DH *dh);
|
---|
| 43 | int (*compute_key) (unsigned char *key, const BIGNUM *pub_key, DH *dh);
|
---|
| 44 |
|
---|
| 45 | /* Can be null */
|
---|
| 46 | int (*bn_mod_exp) (const DH *dh, BIGNUM *r, const BIGNUM *a,
|
---|
| 47 | const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx,
|
---|
| 48 | BN_MONT_CTX *m_ctx);
|
---|
| 49 | int (*init) (DH *dh);
|
---|
| 50 | int (*finish) (DH *dh);
|
---|
| 51 | int flags;
|
---|
| 52 | char *app_data;
|
---|
| 53 | /* If this is non-NULL, it will be used to generate parameters */
|
---|
| 54 | int (*generate_params) (DH *dh, int prime_len, int generator,
|
---|
| 55 | BN_GENCB *cb);
|
---|
| 56 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.