openssl_rsa_pss_verify 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. data/ext/openssl_rsa_pss_verify/extconf.rb +0 -8
  2. data/lib/openssl_rsa_pss_verify/version.rb +1 -1
  3. metadata +1 -97
  4. data/vendor/openssl/include/openssl/aes.h +0 -147
  5. data/vendor/openssl/include/openssl/asn1.h +0 -1404
  6. data/vendor/openssl/include/openssl/asn1_mac.h +0 -578
  7. data/vendor/openssl/include/openssl/asn1t.h +0 -960
  8. data/vendor/openssl/include/openssl/bio.h +0 -847
  9. data/vendor/openssl/include/openssl/blowfish.h +0 -129
  10. data/vendor/openssl/include/openssl/bn.h +0 -891
  11. data/vendor/openssl/include/openssl/buffer.h +0 -119
  12. data/vendor/openssl/include/openssl/camellia.h +0 -130
  13. data/vendor/openssl/include/openssl/cast.h +0 -107
  14. data/vendor/openssl/include/openssl/cmac.h +0 -82
  15. data/vendor/openssl/include/openssl/cms.h +0 -501
  16. data/vendor/openssl/include/openssl/comp.h +0 -80
  17. data/vendor/openssl/include/openssl/conf.h +0 -263
  18. data/vendor/openssl/include/openssl/conf_api.h +0 -89
  19. data/vendor/openssl/include/openssl/crypto.h +0 -611
  20. data/vendor/openssl/include/openssl/des.h +0 -248
  21. data/vendor/openssl/include/openssl/des_old.h +0 -446
  22. data/vendor/openssl/include/openssl/dh.h +0 -280
  23. data/vendor/openssl/include/openssl/dsa.h +0 -327
  24. data/vendor/openssl/include/openssl/dso.h +0 -409
  25. data/vendor/openssl/include/openssl/dtls1.h +0 -287
  26. data/vendor/openssl/include/openssl/e_os2.h +0 -315
  27. data/vendor/openssl/include/openssl/ebcdic.h +0 -19
  28. data/vendor/openssl/include/openssl/ec.h +0 -1167
  29. data/vendor/openssl/include/openssl/ecdh.h +0 -125
  30. data/vendor/openssl/include/openssl/ecdsa.h +0 -260
  31. data/vendor/openssl/include/openssl/engine.h +0 -842
  32. data/vendor/openssl/include/openssl/err.h +0 -386
  33. data/vendor/openssl/include/openssl/evp.h +0 -1409
  34. data/vendor/openssl/include/openssl/hmac.h +0 -110
  35. data/vendor/openssl/include/openssl/idea.h +0 -103
  36. data/vendor/openssl/include/openssl/krb5_asn.h +0 -256
  37. data/vendor/openssl/include/openssl/kssl.h +0 -183
  38. data/vendor/openssl/include/openssl/lhash.h +0 -241
  39. data/vendor/openssl/include/openssl/md4.h +0 -120
  40. data/vendor/openssl/include/openssl/md5.h +0 -120
  41. data/vendor/openssl/include/openssl/mdc2.h +0 -98
  42. data/vendor/openssl/include/openssl/modes.h +0 -135
  43. data/vendor/openssl/include/openssl/obj_mac.h +0 -4032
  44. data/vendor/openssl/include/openssl/objects.h +0 -1138
  45. data/vendor/openssl/include/openssl/ocsp.h +0 -623
  46. data/vendor/openssl/include/openssl/opensslconf.h +0 -234
  47. data/vendor/openssl/include/openssl/opensslv.h +0 -89
  48. data/vendor/openssl/include/openssl/ossl_typ.h +0 -202
  49. data/vendor/openssl/include/openssl/pem.h +0 -641
  50. data/vendor/openssl/include/openssl/pem2.h +0 -70
  51. data/vendor/openssl/include/openssl/pkcs12.h +0 -331
  52. data/vendor/openssl/include/openssl/pkcs7.h +0 -499
  53. data/vendor/openssl/include/openssl/pqueue.h +0 -94
  54. data/vendor/openssl/include/openssl/rand.h +0 -149
  55. data/vendor/openssl/include/openssl/rc2.h +0 -103
  56. data/vendor/openssl/include/openssl/rc4.h +0 -90
  57. data/vendor/openssl/include/openssl/ripemd.h +0 -107
  58. data/vendor/openssl/include/openssl/rsa.h +0 -582
  59. data/vendor/openssl/include/openssl/safestack.h +0 -2663
  60. data/vendor/openssl/include/openssl/seed.h +0 -139
  61. data/vendor/openssl/include/openssl/sha.h +0 -214
  62. data/vendor/openssl/include/openssl/srp.h +0 -172
  63. data/vendor/openssl/include/openssl/srtp.h +0 -145
  64. data/vendor/openssl/include/openssl/ssl.h +0 -2579
  65. data/vendor/openssl/include/openssl/ssl2.h +0 -272
  66. data/vendor/openssl/include/openssl/ssl23.h +0 -83
  67. data/vendor/openssl/include/openssl/ssl3.h +0 -684
  68. data/vendor/openssl/include/openssl/stack.h +0 -108
  69. data/vendor/openssl/include/openssl/symhacks.h +0 -475
  70. data/vendor/openssl/include/openssl/tls1.h +0 -735
  71. data/vendor/openssl/include/openssl/ts.h +0 -858
  72. data/vendor/openssl/include/openssl/txt_db.h +0 -112
  73. data/vendor/openssl/include/openssl/ui.h +0 -383
  74. data/vendor/openssl/include/openssl/ui_compat.h +0 -83
  75. data/vendor/openssl/include/openssl/whrlpool.h +0 -41
  76. data/vendor/openssl/include/openssl/x509.h +0 -1297
  77. data/vendor/openssl/include/openssl/x509_vfy.h +0 -567
  78. data/vendor/openssl/include/openssl/x509v3.h +0 -1007
  79. data/vendor/openssl/lib/engines/lib4758cca.so +0 -0
  80. data/vendor/openssl/lib/engines/libaep.so +0 -0
  81. data/vendor/openssl/lib/engines/libatalla.so +0 -0
  82. data/vendor/openssl/lib/engines/libcapi.so +0 -0
  83. data/vendor/openssl/lib/engines/libchil.so +0 -0
  84. data/vendor/openssl/lib/engines/libcswift.so +0 -0
  85. data/vendor/openssl/lib/engines/libgmp.so +0 -0
  86. data/vendor/openssl/lib/engines/libgost.so +0 -0
  87. data/vendor/openssl/lib/engines/libnuron.so +0 -0
  88. data/vendor/openssl/lib/engines/libpadlock.so +0 -0
  89. data/vendor/openssl/lib/engines/libsureware.so +0 -0
  90. data/vendor/openssl/lib/engines/libubsec.so +0 -0
  91. data/vendor/openssl/lib/libcrypto.a +0 -0
  92. data/vendor/openssl/lib/libcrypto.so +0 -0
  93. data/vendor/openssl/lib/libcrypto.so.1.0.0 +0 -0
  94. data/vendor/openssl/lib/libssl.a +0 -0
  95. data/vendor/openssl/lib/libssl.so +0 -0
  96. data/vendor/openssl/lib/libssl.so.1.0.0 +0 -0
  97. data/vendor/openssl/lib/pkgconfig/libcrypto.pc +0 -12
  98. data/vendor/openssl/lib/pkgconfig/libssl.pc +0 -12
  99. data/vendor/openssl/lib/pkgconfig/openssl.pc +0 -12
@@ -1,139 +0,0 @@
1
- /*
2
- * Copyright (c) 2007 KISA(Korea Information Security Agency). All rights reserved.
3
- *
4
- * Redistribution and use in source and binary forms, with or without
5
- * modification, are permitted provided that the following conditions
6
- * are met:
7
- * 1. Redistributions of source code must retain the above copyright
8
- * notice, this list of conditions and the following disclaimer.
9
- * 2. Neither the name of author nor the names of its contributors may
10
- * be used to endorse or promote products derived from this software
11
- * without specific prior written permission.
12
- *
13
- * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16
- * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
17
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23
- * SUCH DAMAGE.
24
- *
25
- */
26
- /* ====================================================================
27
- * Copyright (c) 1998-2007 The OpenSSL Project. All rights reserved.
28
- *
29
- * Redistribution and use in source and binary forms, with or without
30
- * modification, are permitted provided that the following conditions
31
- * are met:
32
- *
33
- * 1. Redistributions of source code must retain the above copyright
34
- * notice, this list of conditions and the following disclaimer.
35
- *
36
- * 2. Redistributions in binary form must reproduce the above copyright
37
- * notice, this list of conditions and the following disclaimer in
38
- * the documentation and/or other materials provided with the
39
- * distribution.
40
- *
41
- * 3. All advertising materials mentioning features or use of this
42
- * software must display the following acknowledgment:
43
- * "This product includes software developed by the OpenSSL Project
44
- * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
45
- *
46
- * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
47
- * endorse or promote products derived from this software without
48
- * prior written permission. For written permission, please contact
49
- * openssl-core@openssl.org.
50
- *
51
- * 5. Products derived from this software may not be called "OpenSSL"
52
- * nor may "OpenSSL" appear in their names without prior written
53
- * permission of the OpenSSL Project.
54
- *
55
- * 6. Redistributions of any form whatsoever must retain the following
56
- * acknowledgment:
57
- * "This product includes software developed by the OpenSSL Project
58
- * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
59
- *
60
- * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
61
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
62
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
63
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
64
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
65
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
66
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
67
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
68
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
69
- * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
70
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
71
- * OF THE POSSIBILITY OF SUCH DAMAGE.
72
- * ====================================================================
73
- *
74
- * This product includes cryptographic software written by Eric Young
75
- * (eay@cryptsoft.com). This product includes software written by Tim
76
- * Hudson (tjh@cryptsoft.com).
77
- *
78
- */
79
-
80
-
81
- #ifndef HEADER_SEED_H
82
- #define HEADER_SEED_H
83
-
84
- #include <openssl/opensslconf.h>
85
- #include <openssl/e_os2.h>
86
- #include <openssl/crypto.h>
87
-
88
- #ifdef OPENSSL_NO_SEED
89
- #error SEED is disabled.
90
- #endif
91
-
92
- #ifdef AES_LONG /* look whether we need 'long' to get 32 bits */
93
- # ifndef SEED_LONG
94
- # define SEED_LONG 1
95
- # endif
96
- #endif
97
-
98
- #if !defined(NO_SYS_TYPES_H)
99
- # include <sys/types.h>
100
- #endif
101
-
102
- #define SEED_BLOCK_SIZE 16
103
- #define SEED_KEY_LENGTH 16
104
-
105
-
106
- #ifdef __cplusplus
107
- extern "C" {
108
- #endif
109
-
110
-
111
- typedef struct seed_key_st {
112
- #ifdef SEED_LONG
113
- unsigned long data[32];
114
- #else
115
- unsigned int data[32];
116
- #endif
117
- } SEED_KEY_SCHEDULE;
118
-
119
- #ifdef OPENSSL_FIPS
120
- void private_SEED_set_key(const unsigned char rawkey[SEED_KEY_LENGTH], SEED_KEY_SCHEDULE *ks);
121
- #endif
122
- void SEED_set_key(const unsigned char rawkey[SEED_KEY_LENGTH], SEED_KEY_SCHEDULE *ks);
123
-
124
- void SEED_encrypt(const unsigned char s[SEED_BLOCK_SIZE], unsigned char d[SEED_BLOCK_SIZE], const SEED_KEY_SCHEDULE *ks);
125
- void SEED_decrypt(const unsigned char s[SEED_BLOCK_SIZE], unsigned char d[SEED_BLOCK_SIZE], const SEED_KEY_SCHEDULE *ks);
126
-
127
- void SEED_ecb_encrypt(const unsigned char *in, unsigned char *out, const SEED_KEY_SCHEDULE *ks, int enc);
128
- void SEED_cbc_encrypt(const unsigned char *in, unsigned char *out,
129
- size_t len, const SEED_KEY_SCHEDULE *ks, unsigned char ivec[SEED_BLOCK_SIZE], int enc);
130
- void SEED_cfb128_encrypt(const unsigned char *in, unsigned char *out,
131
- size_t len, const SEED_KEY_SCHEDULE *ks, unsigned char ivec[SEED_BLOCK_SIZE], int *num, int enc);
132
- void SEED_ofb128_encrypt(const unsigned char *in, unsigned char *out,
133
- size_t len, const SEED_KEY_SCHEDULE *ks, unsigned char ivec[SEED_BLOCK_SIZE], int *num);
134
-
135
- #ifdef __cplusplus
136
- }
137
- #endif
138
-
139
- #endif /* HEADER_SEED_H */
@@ -1,214 +0,0 @@
1
- /* crypto/sha/sha.h */
2
- /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3
- * All rights reserved.
4
- *
5
- * This package is an SSL implementation written
6
- * by Eric Young (eay@cryptsoft.com).
7
- * The implementation was written so as to conform with Netscapes SSL.
8
- *
9
- * This library is free for commercial and non-commercial use as long as
10
- * the following conditions are aheared to. The following conditions
11
- * apply to all code found in this distribution, be it the RC4, RSA,
12
- * lhash, DES, etc., code; not just the SSL code. The SSL documentation
13
- * included with this distribution is covered by the same copyright terms
14
- * except that the holder is Tim Hudson (tjh@cryptsoft.com).
15
- *
16
- * Copyright remains Eric Young's, and as such any Copyright notices in
17
- * the code are not to be removed.
18
- * If this package is used in a product, Eric Young should be given attribution
19
- * as the author of the parts of the library used.
20
- * This can be in the form of a textual message at program startup or
21
- * in documentation (online or textual) provided with the package.
22
- *
23
- * Redistribution and use in source and binary forms, with or without
24
- * modification, are permitted provided that the following conditions
25
- * are met:
26
- * 1. Redistributions of source code must retain the copyright
27
- * notice, this list of conditions and the following disclaimer.
28
- * 2. Redistributions in binary form must reproduce the above copyright
29
- * notice, this list of conditions and the following disclaimer in the
30
- * documentation and/or other materials provided with the distribution.
31
- * 3. All advertising materials mentioning features or use of this software
32
- * must display the following acknowledgement:
33
- * "This product includes cryptographic software written by
34
- * Eric Young (eay@cryptsoft.com)"
35
- * The word 'cryptographic' can be left out if the rouines from the library
36
- * being used are not cryptographic related :-).
37
- * 4. If you include any Windows specific code (or a derivative thereof) from
38
- * the apps directory (application code) you must include an acknowledgement:
39
- * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
40
- *
41
- * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
42
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
43
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
44
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
45
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
46
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
47
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
48
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
49
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
50
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
51
- * SUCH DAMAGE.
52
- *
53
- * The licence and distribution terms for any publically available version or
54
- * derivative of this code cannot be changed. i.e. this code cannot simply be
55
- * copied and put under another distribution licence
56
- * [including the GNU Public Licence.]
57
- */
58
-
59
- #ifndef HEADER_SHA_H
60
- #define HEADER_SHA_H
61
-
62
- #include <openssl/e_os2.h>
63
- #include <stddef.h>
64
-
65
- #ifdef __cplusplus
66
- extern "C" {
67
- #endif
68
-
69
- #if defined(OPENSSL_NO_SHA) || (defined(OPENSSL_NO_SHA0) && defined(OPENSSL_NO_SHA1))
70
- #error SHA is disabled.
71
- #endif
72
-
73
- #if defined(OPENSSL_FIPS)
74
- #define FIPS_SHA_SIZE_T size_t
75
- #endif
76
-
77
- /*
78
- * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
79
- * ! SHA_LONG has to be at least 32 bits wide. If it's wider, then !
80
- * ! SHA_LONG_LOG2 has to be defined along. !
81
- * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
82
- */
83
-
84
- #if defined(__LP32__)
85
- #define SHA_LONG unsigned long
86
- #elif defined(OPENSSL_SYS_CRAY) || defined(__ILP64__)
87
- #define SHA_LONG unsigned long
88
- #define SHA_LONG_LOG2 3
89
- #else
90
- #define SHA_LONG unsigned int
91
- #endif
92
-
93
- #define SHA_LBLOCK 16
94
- #define SHA_CBLOCK (SHA_LBLOCK*4) /* SHA treats input data as a
95
- * contiguous array of 32 bit
96
- * wide big-endian values. */
97
- #define SHA_LAST_BLOCK (SHA_CBLOCK-8)
98
- #define SHA_DIGEST_LENGTH 20
99
-
100
- typedef struct SHAstate_st
101
- {
102
- SHA_LONG h0,h1,h2,h3,h4;
103
- SHA_LONG Nl,Nh;
104
- SHA_LONG data[SHA_LBLOCK];
105
- unsigned int num;
106
- } SHA_CTX;
107
-
108
- #ifndef OPENSSL_NO_SHA0
109
- #ifdef OPENSSL_FIPS
110
- int private_SHA_Init(SHA_CTX *c);
111
- #endif
112
- int SHA_Init(SHA_CTX *c);
113
- int SHA_Update(SHA_CTX *c, const void *data, size_t len);
114
- int SHA_Final(unsigned char *md, SHA_CTX *c);
115
- unsigned char *SHA(const unsigned char *d, size_t n, unsigned char *md);
116
- void SHA_Transform(SHA_CTX *c, const unsigned char *data);
117
- #endif
118
- #ifndef OPENSSL_NO_SHA1
119
- #ifdef OPENSSL_FIPS
120
- int private_SHA1_Init(SHA_CTX *c);
121
- #endif
122
- int SHA1_Init(SHA_CTX *c);
123
- int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
124
- int SHA1_Final(unsigned char *md, SHA_CTX *c);
125
- unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md);
126
- void SHA1_Transform(SHA_CTX *c, const unsigned char *data);
127
- #endif
128
-
129
- #define SHA256_CBLOCK (SHA_LBLOCK*4) /* SHA-256 treats input data as a
130
- * contiguous array of 32 bit
131
- * wide big-endian values. */
132
- #define SHA224_DIGEST_LENGTH 28
133
- #define SHA256_DIGEST_LENGTH 32
134
-
135
- typedef struct SHA256state_st
136
- {
137
- SHA_LONG h[8];
138
- SHA_LONG Nl,Nh;
139
- SHA_LONG data[SHA_LBLOCK];
140
- unsigned int num,md_len;
141
- } SHA256_CTX;
142
-
143
- #ifndef OPENSSL_NO_SHA256
144
- #ifdef OPENSSL_FIPS
145
- int private_SHA224_Init(SHA256_CTX *c);
146
- int private_SHA256_Init(SHA256_CTX *c);
147
- #endif
148
- int SHA224_Init(SHA256_CTX *c);
149
- int SHA224_Update(SHA256_CTX *c, const void *data, size_t len);
150
- int SHA224_Final(unsigned char *md, SHA256_CTX *c);
151
- unsigned char *SHA224(const unsigned char *d, size_t n,unsigned char *md);
152
- int SHA256_Init(SHA256_CTX *c);
153
- int SHA256_Update(SHA256_CTX *c, const void *data, size_t len);
154
- int SHA256_Final(unsigned char *md, SHA256_CTX *c);
155
- unsigned char *SHA256(const unsigned char *d, size_t n,unsigned char *md);
156
- void SHA256_Transform(SHA256_CTX *c, const unsigned char *data);
157
- #endif
158
-
159
- #define SHA384_DIGEST_LENGTH 48
160
- #define SHA512_DIGEST_LENGTH 64
161
-
162
- #ifndef OPENSSL_NO_SHA512
163
- /*
164
- * Unlike 32-bit digest algorithms, SHA-512 *relies* on SHA_LONG64
165
- * being exactly 64-bit wide. See Implementation Notes in sha512.c
166
- * for further details.
167
- */
168
- #define SHA512_CBLOCK (SHA_LBLOCK*8) /* SHA-512 treats input data as a
169
- * contiguous array of 64 bit
170
- * wide big-endian values. */
171
- #if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__)
172
- #define SHA_LONG64 unsigned __int64
173
- #define U64(C) C##UI64
174
- #elif defined(__arch64__)
175
- #define SHA_LONG64 unsigned long
176
- #define U64(C) C##UL
177
- #else
178
- #define SHA_LONG64 unsigned long long
179
- #define U64(C) C##ULL
180
- #endif
181
-
182
- typedef struct SHA512state_st
183
- {
184
- SHA_LONG64 h[8];
185
- SHA_LONG64 Nl,Nh;
186
- union {
187
- SHA_LONG64 d[SHA_LBLOCK];
188
- unsigned char p[SHA512_CBLOCK];
189
- } u;
190
- unsigned int num,md_len;
191
- } SHA512_CTX;
192
- #endif
193
-
194
- #ifndef OPENSSL_NO_SHA512
195
- #ifdef OPENSSL_FIPS
196
- int private_SHA384_Init(SHA512_CTX *c);
197
- int private_SHA512_Init(SHA512_CTX *c);
198
- #endif
199
- int SHA384_Init(SHA512_CTX *c);
200
- int SHA384_Update(SHA512_CTX *c, const void *data, size_t len);
201
- int SHA384_Final(unsigned char *md, SHA512_CTX *c);
202
- unsigned char *SHA384(const unsigned char *d, size_t n,unsigned char *md);
203
- int SHA512_Init(SHA512_CTX *c);
204
- int SHA512_Update(SHA512_CTX *c, const void *data, size_t len);
205
- int SHA512_Final(unsigned char *md, SHA512_CTX *c);
206
- unsigned char *SHA512(const unsigned char *d, size_t n,unsigned char *md);
207
- void SHA512_Transform(SHA512_CTX *c, const unsigned char *data);
208
- #endif
209
-
210
- #ifdef __cplusplus
211
- }
212
- #endif
213
-
214
- #endif
@@ -1,172 +0,0 @@
1
- /* crypto/srp/srp.h */
2
- /* Written by Christophe Renou (christophe.renou@edelweb.fr) with
3
- * the precious help of Peter Sylvester (peter.sylvester@edelweb.fr)
4
- * for the EdelKey project and contributed to the OpenSSL project 2004.
5
- */
6
- /* ====================================================================
7
- * Copyright (c) 2004 The OpenSSL Project. All rights reserved.
8
- *
9
- * Redistribution and use in source and binary forms, with or without
10
- * modification, are permitted provided that the following conditions
11
- * are met:
12
- *
13
- * 1. Redistributions of source code must retain the above copyright
14
- * notice, this list of conditions and the following disclaimer.
15
- *
16
- * 2. Redistributions in binary form must reproduce the above copyright
17
- * notice, this list of conditions and the following disclaimer in
18
- * the documentation and/or other materials provided with the
19
- * distribution.
20
- *
21
- * 3. All advertising materials mentioning features or use of this
22
- * software must display the following acknowledgment:
23
- * "This product includes software developed by the OpenSSL Project
24
- * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
25
- *
26
- * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
27
- * endorse or promote products derived from this software without
28
- * prior written permission. For written permission, please contact
29
- * licensing@OpenSSL.org.
30
- *
31
- * 5. Products derived from this software may not be called "OpenSSL"
32
- * nor may "OpenSSL" appear in their names without prior written
33
- * permission of the OpenSSL Project.
34
- *
35
- * 6. Redistributions of any form whatsoever must retain the following
36
- * acknowledgment:
37
- * "This product includes software developed by the OpenSSL Project
38
- * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
39
- *
40
- * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
41
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
42
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
43
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
44
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
45
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
46
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
47
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
48
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
49
- * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
50
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
51
- * OF THE POSSIBILITY OF SUCH DAMAGE.
52
- * ====================================================================
53
- *
54
- * This product includes cryptographic software written by Eric Young
55
- * (eay@cryptsoft.com). This product includes software written by Tim
56
- * Hudson (tjh@cryptsoft.com).
57
- *
58
- */
59
- #ifndef __SRP_H__
60
- #define __SRP_H__
61
-
62
- #ifndef OPENSSL_NO_SRP
63
-
64
- #include <stdio.h>
65
- #include <string.h>
66
-
67
- #ifdef __cplusplus
68
- extern "C" {
69
- #endif
70
-
71
- #include <openssl/safestack.h>
72
- #include <openssl/bn.h>
73
- #include <openssl/crypto.h>
74
-
75
- typedef struct SRP_gN_cache_st
76
- {
77
- char *b64_bn;
78
- BIGNUM *bn;
79
- } SRP_gN_cache;
80
-
81
-
82
- DECLARE_STACK_OF(SRP_gN_cache)
83
-
84
- typedef struct SRP_user_pwd_st
85
- {
86
- char *id;
87
- BIGNUM *s;
88
- BIGNUM *v;
89
- const BIGNUM *g;
90
- const BIGNUM *N;
91
- char *info;
92
- } SRP_user_pwd;
93
-
94
- DECLARE_STACK_OF(SRP_user_pwd)
95
-
96
- typedef struct SRP_VBASE_st
97
- {
98
- STACK_OF(SRP_user_pwd) *users_pwd;
99
- STACK_OF(SRP_gN_cache) *gN_cache;
100
- /* to simulate a user */
101
- char *seed_key;
102
- BIGNUM *default_g;
103
- BIGNUM *default_N;
104
- } SRP_VBASE;
105
-
106
-
107
- /*Structure interne pour retenir les couples N et g*/
108
- typedef struct SRP_gN_st
109
- {
110
- char *id;
111
- BIGNUM *g;
112
- BIGNUM *N;
113
- } SRP_gN;
114
-
115
- DECLARE_STACK_OF(SRP_gN)
116
-
117
- SRP_VBASE *SRP_VBASE_new(char *seed_key);
118
- int SRP_VBASE_free(SRP_VBASE *vb);
119
- int SRP_VBASE_init(SRP_VBASE *vb, char * verifier_file);
120
- SRP_user_pwd *SRP_VBASE_get_by_user(SRP_VBASE *vb, char *username);
121
- char *SRP_create_verifier(const char *user, const char *pass, char **salt,
122
- char **verifier, const char *N, const char *g);
123
- int SRP_create_verifier_BN(const char *user, const char *pass, BIGNUM **salt, BIGNUM **verifier, BIGNUM *N, BIGNUM *g);
124
-
125
-
126
- #define SRP_NO_ERROR 0
127
- #define SRP_ERR_VBASE_INCOMPLETE_FILE 1
128
- #define SRP_ERR_VBASE_BN_LIB 2
129
- #define SRP_ERR_OPEN_FILE 3
130
- #define SRP_ERR_MEMORY 4
131
-
132
- #define DB_srptype 0
133
- #define DB_srpverifier 1
134
- #define DB_srpsalt 2
135
- #define DB_srpid 3
136
- #define DB_srpgN 4
137
- #define DB_srpinfo 5
138
- #undef DB_NUMBER
139
- #define DB_NUMBER 6
140
-
141
- #define DB_SRP_INDEX 'I'
142
- #define DB_SRP_VALID 'V'
143
- #define DB_SRP_REVOKED 'R'
144
- #define DB_SRP_MODIF 'v'
145
-
146
-
147
- /* see srp.c */
148
- char * SRP_check_known_gN_param(BIGNUM* g, BIGNUM* N);
149
- SRP_gN *SRP_get_default_gN(const char * id) ;
150
-
151
- /* server side .... */
152
- BIGNUM *SRP_Calc_server_key(BIGNUM *A, BIGNUM *v, BIGNUM *u, BIGNUM *b, BIGNUM *N);
153
- BIGNUM *SRP_Calc_B(BIGNUM *b, BIGNUM *N, BIGNUM *g, BIGNUM *v);
154
- int SRP_Verify_A_mod_N(BIGNUM *A, BIGNUM *N);
155
- BIGNUM *SRP_Calc_u(BIGNUM *A, BIGNUM *B, BIGNUM *N) ;
156
-
157
-
158
-
159
- /* client side .... */
160
- BIGNUM *SRP_Calc_x(BIGNUM *s, const char *user, const char *pass);
161
- BIGNUM *SRP_Calc_A(BIGNUM *a, BIGNUM *N, BIGNUM *g);
162
- BIGNUM *SRP_Calc_client_key(BIGNUM *N, BIGNUM *B, BIGNUM *g, BIGNUM *x, BIGNUM *a, BIGNUM *u);
163
- int SRP_Verify_B_mod_N(BIGNUM *B, BIGNUM *N);
164
-
165
- #define SRP_MINIMAL_N 1024
166
-
167
- #ifdef __cplusplus
168
- }
169
- #endif
170
-
171
- #endif
172
- #endif
@@ -1,145 +0,0 @@
1
- /* ssl/tls1.h */
2
- /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3
- * All rights reserved.
4
- *
5
- * This package is an SSL implementation written
6
- * by Eric Young (eay@cryptsoft.com).
7
- * The implementation was written so as to conform with Netscapes SSL.
8
- *
9
- * This library is free for commercial and non-commercial use as long as
10
- * the following conditions are aheared to. The following conditions
11
- * apply to all code found in this distribution, be it the RC4, RSA,
12
- * lhash, DES, etc., code; not just the SSL code. The SSL documentation
13
- * included with this distribution is covered by the same copyright terms
14
- * except that the holder is Tim Hudson (tjh@cryptsoft.com).
15
- *
16
- * Copyright remains Eric Young's, and as such any Copyright notices in
17
- * the code are not to be removed.
18
- * If this package is used in a product, Eric Young should be given attribution
19
- * as the author of the parts of the library used.
20
- * This can be in the form of a textual message at program startup or
21
- * in documentation (online or textual) provided with the package.
22
- *
23
- * Redistribution and use in source and binary forms, with or without
24
- * modification, are permitted provided that the following conditions
25
- * are met:
26
- * 1. Redistributions of source code must retain the copyright
27
- * notice, this list of conditions and the following disclaimer.
28
- * 2. Redistributions in binary form must reproduce the above copyright
29
- * notice, this list of conditions and the following disclaimer in the
30
- * documentation and/or other materials provided with the distribution.
31
- * 3. All advertising materials mentioning features or use of this software
32
- * must display the following acknowledgement:
33
- * "This product includes cryptographic software written by
34
- * Eric Young (eay@cryptsoft.com)"
35
- * The word 'cryptographic' can be left out if the rouines from the library
36
- * being used are not cryptographic related :-).
37
- * 4. If you include any Windows specific code (or a derivative thereof) from
38
- * the apps directory (application code) you must include an acknowledgement:
39
- * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
40
- *
41
- * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
42
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
43
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
44
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
45
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
46
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
47
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
48
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
49
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
50
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
51
- * SUCH DAMAGE.
52
- *
53
- * The licence and distribution terms for any publically available version or
54
- * derivative of this code cannot be changed. i.e. this code cannot simply be
55
- * copied and put under another distribution licence
56
- * [including the GNU Public Licence.]
57
- */
58
- /* ====================================================================
59
- * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved.
60
- *
61
- * Redistribution and use in source and binary forms, with or without
62
- * modification, are permitted provided that the following conditions
63
- * are met:
64
- *
65
- * 1. Redistributions of source code must retain the above copyright
66
- * notice, this list of conditions and the following disclaimer.
67
- *
68
- * 2. Redistributions in binary form must reproduce the above copyright
69
- * notice, this list of conditions and the following disclaimer in
70
- * the documentation and/or other materials provided with the
71
- * distribution.
72
- *
73
- * 3. All advertising materials mentioning features or use of this
74
- * software must display the following acknowledgment:
75
- * "This product includes software developed by the OpenSSL Project
76
- * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
77
- *
78
- * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
79
- * endorse or promote products derived from this software without
80
- * prior written permission. For written permission, please contact
81
- * openssl-core@openssl.org.
82
- *
83
- * 5. Products derived from this software may not be called "OpenSSL"
84
- * nor may "OpenSSL" appear in their names without prior written
85
- * permission of the OpenSSL Project.
86
- *
87
- * 6. Redistributions of any form whatsoever must retain the following
88
- * acknowledgment:
89
- * "This product includes software developed by the OpenSSL Project
90
- * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
91
- *
92
- * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
93
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
94
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
95
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
96
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
97
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
98
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
99
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
100
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
101
- * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
102
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
103
- * OF THE POSSIBILITY OF SUCH DAMAGE.
104
- * ====================================================================
105
- *
106
- * This product includes cryptographic software written by Eric Young
107
- * (eay@cryptsoft.com). This product includes software written by Tim
108
- * Hudson (tjh@cryptsoft.com).
109
- *
110
- */
111
- /*
112
- DTLS code by Eric Rescorla <ekr@rtfm.com>
113
-
114
- Copyright (C) 2006, Network Resonance, Inc.
115
- Copyright (C) 2011, RTFM, Inc.
116
- */
117
-
118
- #ifndef HEADER_D1_SRTP_H
119
- #define HEADER_D1_SRTP_H
120
-
121
- #ifdef __cplusplus
122
- extern "C" {
123
- #endif
124
-
125
-
126
- #define SRTP_AES128_CM_SHA1_80 0x0001
127
- #define SRTP_AES128_CM_SHA1_32 0x0002
128
- #define SRTP_AES128_F8_SHA1_80 0x0003
129
- #define SRTP_AES128_F8_SHA1_32 0x0004
130
- #define SRTP_NULL_SHA1_80 0x0005
131
- #define SRTP_NULL_SHA1_32 0x0006
132
-
133
- int SSL_CTX_set_tlsext_use_srtp(SSL_CTX *ctx, const char *profiles);
134
- int SSL_set_tlsext_use_srtp(SSL *ctx, const char *profiles);
135
- SRTP_PROTECTION_PROFILE *SSL_get_selected_srtp_profile(SSL *s);
136
-
137
- STACK_OF(SRTP_PROTECTION_PROFILE) *SSL_get_srtp_profiles(SSL *ssl);
138
- SRTP_PROTECTION_PROFILE *SSL_get_selected_srtp_profile(SSL *s);
139
-
140
- #ifdef __cplusplus
141
- }
142
- #endif
143
-
144
- #endif
145
-