openssl_rsa_pss_verify 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. data/.gitignore +5 -0
  2. data/.rspec +2 -0
  3. data/.ruby-gemset +1 -0
  4. data/.ruby-version +1 -0
  5. data/Gemfile +4 -0
  6. data/Gemfile.lock +35 -0
  7. data/README +1 -0
  8. data/Rakefile +4 -0
  9. data/ext/openssl_rsa_pss_verify/extconf.rb +15 -0
  10. data/ext/openssl_rsa_pss_verify/openssl_rsa_pss_verify_ext.c +56 -0
  11. data/lib/openssl_rsa_pss_verify/version.rb +3 -0
  12. data/lib/openssl_rsa_pss_verify.rb +2 -0
  13. data/openssl_rsa_pss_verify.gemspec +26 -0
  14. data/tasks/compile.rake +12 -0
  15. data/tasks/rspec.rake +12 -0
  16. data/vendor/openssl/include/openssl/aes.h +147 -0
  17. data/vendor/openssl/include/openssl/asn1.h +1404 -0
  18. data/vendor/openssl/include/openssl/asn1_mac.h +578 -0
  19. data/vendor/openssl/include/openssl/asn1t.h +960 -0
  20. data/vendor/openssl/include/openssl/bio.h +847 -0
  21. data/vendor/openssl/include/openssl/blowfish.h +129 -0
  22. data/vendor/openssl/include/openssl/bn.h +891 -0
  23. data/vendor/openssl/include/openssl/buffer.h +119 -0
  24. data/vendor/openssl/include/openssl/camellia.h +130 -0
  25. data/vendor/openssl/include/openssl/cast.h +107 -0
  26. data/vendor/openssl/include/openssl/cmac.h +82 -0
  27. data/vendor/openssl/include/openssl/cms.h +501 -0
  28. data/vendor/openssl/include/openssl/comp.h +80 -0
  29. data/vendor/openssl/include/openssl/conf.h +263 -0
  30. data/vendor/openssl/include/openssl/conf_api.h +89 -0
  31. data/vendor/openssl/include/openssl/crypto.h +611 -0
  32. data/vendor/openssl/include/openssl/des.h +248 -0
  33. data/vendor/openssl/include/openssl/des_old.h +446 -0
  34. data/vendor/openssl/include/openssl/dh.h +280 -0
  35. data/vendor/openssl/include/openssl/dsa.h +327 -0
  36. data/vendor/openssl/include/openssl/dso.h +409 -0
  37. data/vendor/openssl/include/openssl/dtls1.h +287 -0
  38. data/vendor/openssl/include/openssl/e_os2.h +315 -0
  39. data/vendor/openssl/include/openssl/ebcdic.h +19 -0
  40. data/vendor/openssl/include/openssl/ec.h +1167 -0
  41. data/vendor/openssl/include/openssl/ecdh.h +125 -0
  42. data/vendor/openssl/include/openssl/ecdsa.h +260 -0
  43. data/vendor/openssl/include/openssl/engine.h +842 -0
  44. data/vendor/openssl/include/openssl/err.h +386 -0
  45. data/vendor/openssl/include/openssl/evp.h +1409 -0
  46. data/vendor/openssl/include/openssl/hmac.h +110 -0
  47. data/vendor/openssl/include/openssl/idea.h +103 -0
  48. data/vendor/openssl/include/openssl/krb5_asn.h +256 -0
  49. data/vendor/openssl/include/openssl/kssl.h +183 -0
  50. data/vendor/openssl/include/openssl/lhash.h +241 -0
  51. data/vendor/openssl/include/openssl/md4.h +120 -0
  52. data/vendor/openssl/include/openssl/md5.h +120 -0
  53. data/vendor/openssl/include/openssl/mdc2.h +98 -0
  54. data/vendor/openssl/include/openssl/modes.h +135 -0
  55. data/vendor/openssl/include/openssl/obj_mac.h +4032 -0
  56. data/vendor/openssl/include/openssl/objects.h +1138 -0
  57. data/vendor/openssl/include/openssl/ocsp.h +623 -0
  58. data/vendor/openssl/include/openssl/opensslconf.h +234 -0
  59. data/vendor/openssl/include/openssl/opensslv.h +89 -0
  60. data/vendor/openssl/include/openssl/ossl_typ.h +202 -0
  61. data/vendor/openssl/include/openssl/pem.h +641 -0
  62. data/vendor/openssl/include/openssl/pem2.h +70 -0
  63. data/vendor/openssl/include/openssl/pkcs12.h +331 -0
  64. data/vendor/openssl/include/openssl/pkcs7.h +499 -0
  65. data/vendor/openssl/include/openssl/pqueue.h +94 -0
  66. data/vendor/openssl/include/openssl/rand.h +149 -0
  67. data/vendor/openssl/include/openssl/rc2.h +103 -0
  68. data/vendor/openssl/include/openssl/rc4.h +90 -0
  69. data/vendor/openssl/include/openssl/ripemd.h +107 -0
  70. data/vendor/openssl/include/openssl/rsa.h +582 -0
  71. data/vendor/openssl/include/openssl/safestack.h +2663 -0
  72. data/vendor/openssl/include/openssl/seed.h +139 -0
  73. data/vendor/openssl/include/openssl/sha.h +214 -0
  74. data/vendor/openssl/include/openssl/srp.h +172 -0
  75. data/vendor/openssl/include/openssl/srtp.h +145 -0
  76. data/vendor/openssl/include/openssl/ssl.h +2579 -0
  77. data/vendor/openssl/include/openssl/ssl2.h +272 -0
  78. data/vendor/openssl/include/openssl/ssl23.h +83 -0
  79. data/vendor/openssl/include/openssl/ssl3.h +684 -0
  80. data/vendor/openssl/include/openssl/stack.h +108 -0
  81. data/vendor/openssl/include/openssl/symhacks.h +475 -0
  82. data/vendor/openssl/include/openssl/tls1.h +735 -0
  83. data/vendor/openssl/include/openssl/ts.h +858 -0
  84. data/vendor/openssl/include/openssl/txt_db.h +112 -0
  85. data/vendor/openssl/include/openssl/ui.h +383 -0
  86. data/vendor/openssl/include/openssl/ui_compat.h +83 -0
  87. data/vendor/openssl/include/openssl/whrlpool.h +41 -0
  88. data/vendor/openssl/include/openssl/x509.h +1297 -0
  89. data/vendor/openssl/include/openssl/x509_vfy.h +567 -0
  90. data/vendor/openssl/include/openssl/x509v3.h +1007 -0
  91. data/vendor/openssl/lib/engines/lib4758cca.so +0 -0
  92. data/vendor/openssl/lib/engines/libaep.so +0 -0
  93. data/vendor/openssl/lib/engines/libatalla.so +0 -0
  94. data/vendor/openssl/lib/engines/libcapi.so +0 -0
  95. data/vendor/openssl/lib/engines/libchil.so +0 -0
  96. data/vendor/openssl/lib/engines/libcswift.so +0 -0
  97. data/vendor/openssl/lib/engines/libgmp.so +0 -0
  98. data/vendor/openssl/lib/engines/libgost.so +0 -0
  99. data/vendor/openssl/lib/engines/libnuron.so +0 -0
  100. data/vendor/openssl/lib/engines/libpadlock.so +0 -0
  101. data/vendor/openssl/lib/engines/libsureware.so +0 -0
  102. data/vendor/openssl/lib/engines/libubsec.so +0 -0
  103. data/vendor/openssl/lib/libcrypto.a +0 -0
  104. data/vendor/openssl/lib/libcrypto.so +0 -0
  105. data/vendor/openssl/lib/libcrypto.so.1.0.0 +0 -0
  106. data/vendor/openssl/lib/libssl.a +0 -0
  107. data/vendor/openssl/lib/libssl.so +0 -0
  108. data/vendor/openssl/lib/libssl.so.1.0.0 +0 -0
  109. data/vendor/openssl/lib/pkgconfig/libcrypto.pc +12 -0
  110. data/vendor/openssl/lib/pkgconfig/libssl.pc +12 -0
  111. data/vendor/openssl/lib/pkgconfig/openssl.pc +12 -0
  112. metadata +208 -0
@@ -0,0 +1,135 @@
1
+ /* ====================================================================
2
+ * Copyright (c) 2008 The OpenSSL Project. All rights reserved.
3
+ *
4
+ * Rights for redistribution and usage in source and binary
5
+ * forms are granted according to the OpenSSL license.
6
+ */
7
+
8
+ #include <stddef.h>
9
+
10
+ typedef void (*block128_f)(const unsigned char in[16],
11
+ unsigned char out[16],
12
+ const void *key);
13
+
14
+ typedef void (*cbc128_f)(const unsigned char *in, unsigned char *out,
15
+ size_t len, const void *key,
16
+ unsigned char ivec[16], int enc);
17
+
18
+ typedef void (*ctr128_f)(const unsigned char *in, unsigned char *out,
19
+ size_t blocks, const void *key,
20
+ const unsigned char ivec[16]);
21
+
22
+ typedef void (*ccm128_f)(const unsigned char *in, unsigned char *out,
23
+ size_t blocks, const void *key,
24
+ const unsigned char ivec[16],unsigned char cmac[16]);
25
+
26
+ void CRYPTO_cbc128_encrypt(const unsigned char *in, unsigned char *out,
27
+ size_t len, const void *key,
28
+ unsigned char ivec[16], block128_f block);
29
+ void CRYPTO_cbc128_decrypt(const unsigned char *in, unsigned char *out,
30
+ size_t len, const void *key,
31
+ unsigned char ivec[16], block128_f block);
32
+
33
+ void CRYPTO_ctr128_encrypt(const unsigned char *in, unsigned char *out,
34
+ size_t len, const void *key,
35
+ unsigned char ivec[16], unsigned char ecount_buf[16],
36
+ unsigned int *num, block128_f block);
37
+
38
+ void CRYPTO_ctr128_encrypt_ctr32(const unsigned char *in, unsigned char *out,
39
+ size_t len, const void *key,
40
+ unsigned char ivec[16], unsigned char ecount_buf[16],
41
+ unsigned int *num, ctr128_f ctr);
42
+
43
+ void CRYPTO_ofb128_encrypt(const unsigned char *in, unsigned char *out,
44
+ size_t len, const void *key,
45
+ unsigned char ivec[16], int *num,
46
+ block128_f block);
47
+
48
+ void CRYPTO_cfb128_encrypt(const unsigned char *in, unsigned char *out,
49
+ size_t len, const void *key,
50
+ unsigned char ivec[16], int *num,
51
+ int enc, block128_f block);
52
+ void CRYPTO_cfb128_8_encrypt(const unsigned char *in, unsigned char *out,
53
+ size_t length, const void *key,
54
+ unsigned char ivec[16], int *num,
55
+ int enc, block128_f block);
56
+ void CRYPTO_cfb128_1_encrypt(const unsigned char *in, unsigned char *out,
57
+ size_t bits, const void *key,
58
+ unsigned char ivec[16], int *num,
59
+ int enc, block128_f block);
60
+
61
+ size_t CRYPTO_cts128_encrypt_block(const unsigned char *in, unsigned char *out,
62
+ size_t len, const void *key,
63
+ unsigned char ivec[16], block128_f block);
64
+ size_t CRYPTO_cts128_encrypt(const unsigned char *in, unsigned char *out,
65
+ size_t len, const void *key,
66
+ unsigned char ivec[16], cbc128_f cbc);
67
+ size_t CRYPTO_cts128_decrypt_block(const unsigned char *in, unsigned char *out,
68
+ size_t len, const void *key,
69
+ unsigned char ivec[16], block128_f block);
70
+ size_t CRYPTO_cts128_decrypt(const unsigned char *in, unsigned char *out,
71
+ size_t len, const void *key,
72
+ unsigned char ivec[16], cbc128_f cbc);
73
+
74
+ size_t CRYPTO_nistcts128_encrypt_block(const unsigned char *in, unsigned char *out,
75
+ size_t len, const void *key,
76
+ unsigned char ivec[16], block128_f block);
77
+ size_t CRYPTO_nistcts128_encrypt(const unsigned char *in, unsigned char *out,
78
+ size_t len, const void *key,
79
+ unsigned char ivec[16], cbc128_f cbc);
80
+ size_t CRYPTO_nistcts128_decrypt_block(const unsigned char *in, unsigned char *out,
81
+ size_t len, const void *key,
82
+ unsigned char ivec[16], block128_f block);
83
+ size_t CRYPTO_nistcts128_decrypt(const unsigned char *in, unsigned char *out,
84
+ size_t len, const void *key,
85
+ unsigned char ivec[16], cbc128_f cbc);
86
+
87
+ typedef struct gcm128_context GCM128_CONTEXT;
88
+
89
+ GCM128_CONTEXT *CRYPTO_gcm128_new(void *key, block128_f block);
90
+ void CRYPTO_gcm128_init(GCM128_CONTEXT *ctx,void *key,block128_f block);
91
+ void CRYPTO_gcm128_setiv(GCM128_CONTEXT *ctx, const unsigned char *iv,
92
+ size_t len);
93
+ int CRYPTO_gcm128_aad(GCM128_CONTEXT *ctx, const unsigned char *aad,
94
+ size_t len);
95
+ int CRYPTO_gcm128_encrypt(GCM128_CONTEXT *ctx,
96
+ const unsigned char *in, unsigned char *out,
97
+ size_t len);
98
+ int CRYPTO_gcm128_decrypt(GCM128_CONTEXT *ctx,
99
+ const unsigned char *in, unsigned char *out,
100
+ size_t len);
101
+ int CRYPTO_gcm128_encrypt_ctr32(GCM128_CONTEXT *ctx,
102
+ const unsigned char *in, unsigned char *out,
103
+ size_t len, ctr128_f stream);
104
+ int CRYPTO_gcm128_decrypt_ctr32(GCM128_CONTEXT *ctx,
105
+ const unsigned char *in, unsigned char *out,
106
+ size_t len, ctr128_f stream);
107
+ int CRYPTO_gcm128_finish(GCM128_CONTEXT *ctx,const unsigned char *tag,
108
+ size_t len);
109
+ void CRYPTO_gcm128_tag(GCM128_CONTEXT *ctx, unsigned char *tag, size_t len);
110
+ void CRYPTO_gcm128_release(GCM128_CONTEXT *ctx);
111
+
112
+ typedef struct ccm128_context CCM128_CONTEXT;
113
+
114
+ void CRYPTO_ccm128_init(CCM128_CONTEXT *ctx,
115
+ unsigned int M, unsigned int L, void *key,block128_f block);
116
+ int CRYPTO_ccm128_setiv(CCM128_CONTEXT *ctx,
117
+ const unsigned char *nonce, size_t nlen, size_t mlen);
118
+ void CRYPTO_ccm128_aad(CCM128_CONTEXT *ctx,
119
+ const unsigned char *aad, size_t alen);
120
+ int CRYPTO_ccm128_encrypt(CCM128_CONTEXT *ctx,
121
+ const unsigned char *inp, unsigned char *out, size_t len);
122
+ int CRYPTO_ccm128_decrypt(CCM128_CONTEXT *ctx,
123
+ const unsigned char *inp, unsigned char *out, size_t len);
124
+ int CRYPTO_ccm128_encrypt_ccm64(CCM128_CONTEXT *ctx,
125
+ const unsigned char *inp, unsigned char *out, size_t len,
126
+ ccm128_f stream);
127
+ int CRYPTO_ccm128_decrypt_ccm64(CCM128_CONTEXT *ctx,
128
+ const unsigned char *inp, unsigned char *out, size_t len,
129
+ ccm128_f stream);
130
+ size_t CRYPTO_ccm128_tag(CCM128_CONTEXT *ctx, unsigned char *tag, size_t len);
131
+
132
+ typedef struct xts128_context XTS128_CONTEXT;
133
+
134
+ int CRYPTO_xts128_encrypt(const XTS128_CONTEXT *ctx, const unsigned char iv[16],
135
+ const unsigned char *inp, unsigned char *out, size_t len, int enc);