rho-tau-extensions 5.5.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (661) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +2 -0
  3. data/LICENSE +21 -0
  4. data/README.md +6 -0
  5. data/Rakefile +90 -0
  6. data/libs/crosswalk.rb +2 -0
  7. data/libs/crosswalk/crosswalk.rb +2 -0
  8. data/libs/crosswalk/ext.yml +21 -0
  9. data/libs/crosswalk/ext/Crosswalk.xml +27 -0
  10. data/libs/crosswalk/ext/build +19 -0
  11. data/libs/crosswalk/ext/build.bat +29 -0
  12. data/libs/crosswalk/ext/platform/android/AndroidManifest.xml +9 -0
  13. data/libs/crosswalk/ext/platform/android/Rakefile +141 -0
  14. data/libs/crosswalk/ext/platform/android/adds/lib/armeabi/libxwalkcore.so +0 -0
  15. data/libs/crosswalk/ext/platform/android/adds/lib/armeabi/libxwalkdummy.so +0 -0
  16. data/libs/crosswalk/ext/platform/android/adds/lib/x86/libxwalkcore.so +0 -0
  17. data/libs/crosswalk/ext/platform/android/adds/lib/x86/libxwalkdummy.so +0 -0
  18. data/libs/crosswalk/ext/platform/android/adds/lib/xwalk_core_library_java.jar +0 -0
  19. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/bubble.9.png +0 -0
  20. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/bubble_arrow_up.png +0 -0
  21. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/color_picker_advanced_select_handle.png +0 -0
  22. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/crosswalk.png +0 -0
  23. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/dropdown_popup_background_down.9.png +0 -0
  24. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/dropdown_popup_background_up.9.png +0 -0
  25. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/ic_menu_share_holo_light.png +0 -0
  26. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/ic_search.png +0 -0
  27. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/ic_warning.png +0 -0
  28. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/ondemand_overlay.9.png +0 -0
  29. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/verify_checkmark.png +0 -0
  30. data/libs/crosswalk/ext/platform/android/adds/res/drawable-ldpi/crosswalk.png +0 -0
  31. data/libs/crosswalk/ext/platform/android/adds/res/drawable-mdpi/crosswalk.png +0 -0
  32. data/libs/crosswalk/ext/platform/android/adds/res/drawable-v21/button_borderless_compat.xml +10 -0
  33. data/libs/crosswalk/ext/platform/android/adds/res/drawable-v21/button_compat.xml +9 -0
  34. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/bubble.9.png +0 -0
  35. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/bubble_arrow_up.png +0 -0
  36. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/color_picker_advanced_select_handle.png +0 -0
  37. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/crosswalk.png +0 -0
  38. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/dropdown_popup_background_down.9.png +0 -0
  39. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/dropdown_popup_background_up.9.png +0 -0
  40. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/ic_menu_share_holo_light.png +0 -0
  41. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/ic_search.png +0 -0
  42. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/ic_warning.png +0 -0
  43. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/ondemand_overlay.9.png +0 -0
  44. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/verify_checkmark.png +0 -0
  45. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxhdpi/ic_menu_share_holo_light.png +0 -0
  46. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxhdpi/ic_search.png +0 -0
  47. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxhdpi/ic_warning.png +0 -0
  48. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxhdpi/verify_checkmark.png +0 -0
  49. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxxhdpi/ic_menu_share_holo_light.png +0 -0
  50. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxxhdpi/ic_search.png +0 -0
  51. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxxhdpi/ic_warning.png +0 -0
  52. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxxhdpi/verify_checkmark.png +0 -0
  53. data/libs/crosswalk/ext/platform/android/adds/res/drawable/autofill_chip_inset.xml +15 -0
  54. data/libs/crosswalk/ext/platform/android/adds/res/drawable/bubble.9.png +0 -0
  55. data/libs/crosswalk/ext/platform/android/adds/res/drawable/bubble_arrow_up.png +0 -0
  56. data/libs/crosswalk/ext/platform/android/adds/res/drawable/button_compat_shape.xml +9 -0
  57. data/libs/crosswalk/ext/platform/android/adds/res/drawable/color_button_background.xml +36 -0
  58. data/libs/crosswalk/ext/platform/android/adds/res/drawable/color_picker_advanced_select_handle.png +0 -0
  59. data/libs/crosswalk/ext/platform/android/adds/res/drawable/color_picker_border.xml +12 -0
  60. data/libs/crosswalk/ext/platform/android/adds/res/drawable/dropdown_label_color.xml +11 -0
  61. data/libs/crosswalk/ext/platform/android/adds/res/drawable/dropdown_popup_background.xml +13 -0
  62. data/libs/crosswalk/ext/platform/android/adds/res/drawable/dropdown_popup_background_down.9.png +0 -0
  63. data/libs/crosswalk/ext/platform/android/adds/res/drawable/dropdown_popup_background_up.9.png +0 -0
  64. data/libs/crosswalk/ext/platform/android/adds/res/drawable/ic_menu_share_holo_light.png +0 -0
  65. data/libs/crosswalk/ext/platform/android/adds/res/drawable/ic_search.png +0 -0
  66. data/libs/crosswalk/ext/platform/android/adds/res/drawable/ic_warning.png +0 -0
  67. data/libs/crosswalk/ext/platform/android/adds/res/drawable/launchscreen_bg.xml +19 -0
  68. data/libs/crosswalk/ext/platform/android/adds/res/drawable/ondemand_overlay.9.png +0 -0
  69. data/libs/crosswalk/ext/platform/android/adds/res/drawable/verify_checkmark.png +0 -0
  70. data/libs/crosswalk/ext/platform/android/adds/res/layout-land/date_time_picker_dialog.xml +42 -0
  71. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/autofill_keyboard_accessory_item.xml +40 -0
  72. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/autofill_suggestion_item.xml +18 -0
  73. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/color_picker_advanced_component.xml +46 -0
  74. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/color_picker_dialog_content.xml +51 -0
  75. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/color_picker_dialog_title.xml +41 -0
  76. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/date_time_suggestion.xml +35 -0
  77. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/dropdown_item.xml +58 -0
  78. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/multi_field_time_picker_dialog.xml +122 -0
  79. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/two_field_date_picker.xml +38 -0
  80. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/validation_message_bubble.xml +72 -0
  81. data/libs/crosswalk/ext/platform/android/adds/res/layout/autofill_keyboard_accessory_icon.xml +13 -0
  82. data/libs/crosswalk/ext/platform/android/adds/res/layout/autofill_keyboard_accessory_item.xml +17 -0
  83. data/libs/crosswalk/ext/platform/android/adds/res/layout/autofill_suggestion_item.xml +7 -0
  84. data/libs/crosswalk/ext/platform/android/adds/res/layout/color_picker_advanced_component.xml +30 -0
  85. data/libs/crosswalk/ext/platform/android/adds/res/layout/color_picker_dialog_content.xml +36 -0
  86. data/libs/crosswalk/ext/platform/android/adds/res/layout/color_picker_dialog_title.xml +25 -0
  87. data/libs/crosswalk/ext/platform/android/adds/res/layout/date_time_picker_dialog.xml +42 -0
  88. data/libs/crosswalk/ext/platform/android/adds/res/layout/date_time_suggestion.xml +16 -0
  89. data/libs/crosswalk/ext/platform/android/adds/res/layout/dropdown_item.xml +34 -0
  90. data/libs/crosswalk/ext/platform/android/adds/res/layout/multi_field_time_picker_dialog.xml +50 -0
  91. data/libs/crosswalk/ext/platform/android/adds/res/layout/two_field_date_picker.xml +26 -0
  92. data/libs/crosswalk/ext/platform/android/adds/res/layout/validation_message_bubble.xml +47 -0
  93. data/libs/crosswalk/ext/platform/android/adds/res/menu/select_action_menu.xml +54 -0
  94. data/libs/crosswalk/ext/platform/android/adds/res/raw/contacts_api.js +206 -0
  95. data/libs/crosswalk/ext/platform/android/adds/res/raw/device_capabilities_api.js +231 -0
  96. data/libs/crosswalk/ext/platform/android/adds/res/raw/empty.wav +0 -0
  97. data/libs/crosswalk/ext/platform/android/adds/res/raw/icudtl.dat +0 -0
  98. data/libs/crosswalk/ext/platform/android/adds/res/raw/launch_screen_api.js +9 -0
  99. data/libs/crosswalk/ext/platform/android/adds/res/raw/messaging_api.js +359 -0
  100. data/libs/crosswalk/ext/platform/android/adds/res/raw/presentation_api.js +144 -0
  101. data/libs/crosswalk/ext/platform/android/adds/res/raw/wifidirect_api.js +227 -0
  102. data/libs/crosswalk/ext/platform/android/adds/res/raw/xwalk.pak +0 -0
  103. data/libs/crosswalk/ext/platform/android/adds/res/values-am/android_content_strings.xml +15 -0
  104. data/libs/crosswalk/ext/platform/android/adds/res/values-am/android_ui_strings.xml +47 -0
  105. data/libs/crosswalk/ext/platform/android/adds/res/values-ar/android_content_strings.xml +15 -0
  106. data/libs/crosswalk/ext/platform/android/adds/res/values-ar/android_ui_strings.xml +47 -0
  107. data/libs/crosswalk/ext/platform/android/adds/res/values-bg/android_content_strings.xml +15 -0
  108. data/libs/crosswalk/ext/platform/android/adds/res/values-bg/android_ui_strings.xml +47 -0
  109. data/libs/crosswalk/ext/platform/android/adds/res/values-ca/android_content_strings.xml +15 -0
  110. data/libs/crosswalk/ext/platform/android/adds/res/values-ca/android_ui_strings.xml +47 -0
  111. data/libs/crosswalk/ext/platform/android/adds/res/values-cs/android_content_strings.xml +15 -0
  112. data/libs/crosswalk/ext/platform/android/adds/res/values-cs/android_ui_strings.xml +47 -0
  113. data/libs/crosswalk/ext/platform/android/adds/res/values-da/android_content_strings.xml +15 -0
  114. data/libs/crosswalk/ext/platform/android/adds/res/values-da/android_ui_strings.xml +47 -0
  115. data/libs/crosswalk/ext/platform/android/adds/res/values-de/android_content_strings.xml +15 -0
  116. data/libs/crosswalk/ext/platform/android/adds/res/values-de/android_ui_strings.xml +47 -0
  117. data/libs/crosswalk/ext/platform/android/adds/res/values-el/android_content_strings.xml +15 -0
  118. data/libs/crosswalk/ext/platform/android/adds/res/values-el/android_ui_strings.xml +47 -0
  119. data/libs/crosswalk/ext/platform/android/adds/res/values-en-rGB/android_content_strings.xml +15 -0
  120. data/libs/crosswalk/ext/platform/android/adds/res/values-en-rGB/android_ui_strings.xml +47 -0
  121. data/libs/crosswalk/ext/platform/android/adds/res/values-es-rUS/android_content_strings.xml +15 -0
  122. data/libs/crosswalk/ext/platform/android/adds/res/values-es-rUS/android_ui_strings.xml +47 -0
  123. data/libs/crosswalk/ext/platform/android/adds/res/values-es/android_content_strings.xml +15 -0
  124. data/libs/crosswalk/ext/platform/android/adds/res/values-es/android_ui_strings.xml +47 -0
  125. data/libs/crosswalk/ext/platform/android/adds/res/values-fa/android_content_strings.xml +15 -0
  126. data/libs/crosswalk/ext/platform/android/adds/res/values-fa/android_ui_strings.xml +47 -0
  127. data/libs/crosswalk/ext/platform/android/adds/res/values-fi/android_content_strings.xml +15 -0
  128. data/libs/crosswalk/ext/platform/android/adds/res/values-fi/android_ui_strings.xml +47 -0
  129. data/libs/crosswalk/ext/platform/android/adds/res/values-fr/android_content_strings.xml +15 -0
  130. data/libs/crosswalk/ext/platform/android/adds/res/values-fr/android_ui_strings.xml +47 -0
  131. data/libs/crosswalk/ext/platform/android/adds/res/values-hi/android_content_strings.xml +15 -0
  132. data/libs/crosswalk/ext/platform/android/adds/res/values-hi/android_ui_strings.xml +47 -0
  133. data/libs/crosswalk/ext/platform/android/adds/res/values-hr/android_content_strings.xml +15 -0
  134. data/libs/crosswalk/ext/platform/android/adds/res/values-hr/android_ui_strings.xml +47 -0
  135. data/libs/crosswalk/ext/platform/android/adds/res/values-hu/android_content_strings.xml +15 -0
  136. data/libs/crosswalk/ext/platform/android/adds/res/values-hu/android_ui_strings.xml +47 -0
  137. data/libs/crosswalk/ext/platform/android/adds/res/values-in/android_content_strings.xml +15 -0
  138. data/libs/crosswalk/ext/platform/android/adds/res/values-in/android_ui_strings.xml +47 -0
  139. data/libs/crosswalk/ext/platform/android/adds/res/values-it/android_content_strings.xml +15 -0
  140. data/libs/crosswalk/ext/platform/android/adds/res/values-it/android_ui_strings.xml +47 -0
  141. data/libs/crosswalk/ext/platform/android/adds/res/values-iw/android_content_strings.xml +15 -0
  142. data/libs/crosswalk/ext/platform/android/adds/res/values-iw/android_ui_strings.xml +47 -0
  143. data/libs/crosswalk/ext/platform/android/adds/res/values-ja/android_content_strings.xml +15 -0
  144. data/libs/crosswalk/ext/platform/android/adds/res/values-ja/android_ui_strings.xml +47 -0
  145. data/libs/crosswalk/ext/platform/android/adds/res/values-ko/android_content_strings.xml +15 -0
  146. data/libs/crosswalk/ext/platform/android/adds/res/values-ko/android_ui_strings.xml +47 -0
  147. data/libs/crosswalk/ext/platform/android/adds/res/values-lt/android_content_strings.xml +15 -0
  148. data/libs/crosswalk/ext/platform/android/adds/res/values-lt/android_ui_strings.xml +47 -0
  149. data/libs/crosswalk/ext/platform/android/adds/res/values-lv/android_content_strings.xml +15 -0
  150. data/libs/crosswalk/ext/platform/android/adds/res/values-lv/android_ui_strings.xml +47 -0
  151. data/libs/crosswalk/ext/platform/android/adds/res/values-nb/android_content_strings.xml +15 -0
  152. data/libs/crosswalk/ext/platform/android/adds/res/values-nb/android_ui_strings.xml +47 -0
  153. data/libs/crosswalk/ext/platform/android/adds/res/values-nl/android_content_strings.xml +15 -0
  154. data/libs/crosswalk/ext/platform/android/adds/res/values-nl/android_ui_strings.xml +47 -0
  155. data/libs/crosswalk/ext/platform/android/adds/res/values-pl/android_content_strings.xml +15 -0
  156. data/libs/crosswalk/ext/platform/android/adds/res/values-pl/android_ui_strings.xml +47 -0
  157. data/libs/crosswalk/ext/platform/android/adds/res/values-pt-rBR/android_content_strings.xml +15 -0
  158. data/libs/crosswalk/ext/platform/android/adds/res/values-pt-rBR/android_ui_strings.xml +47 -0
  159. data/libs/crosswalk/ext/platform/android/adds/res/values-pt-rPT/android_content_strings.xml +15 -0
  160. data/libs/crosswalk/ext/platform/android/adds/res/values-pt-rPT/android_ui_strings.xml +47 -0
  161. data/libs/crosswalk/ext/platform/android/adds/res/values-ro/android_content_strings.xml +15 -0
  162. data/libs/crosswalk/ext/platform/android/adds/res/values-ro/android_ui_strings.xml +47 -0
  163. data/libs/crosswalk/ext/platform/android/adds/res/values-ru/android_content_strings.xml +15 -0
  164. data/libs/crosswalk/ext/platform/android/adds/res/values-ru/android_ui_strings.xml +47 -0
  165. data/libs/crosswalk/ext/platform/android/adds/res/values-sk/android_content_strings.xml +15 -0
  166. data/libs/crosswalk/ext/platform/android/adds/res/values-sk/android_ui_strings.xml +47 -0
  167. data/libs/crosswalk/ext/platform/android/adds/res/values-sl/android_content_strings.xml +15 -0
  168. data/libs/crosswalk/ext/platform/android/adds/res/values-sl/android_ui_strings.xml +47 -0
  169. data/libs/crosswalk/ext/platform/android/adds/res/values-sr/android_content_strings.xml +15 -0
  170. data/libs/crosswalk/ext/platform/android/adds/res/values-sr/android_ui_strings.xml +47 -0
  171. data/libs/crosswalk/ext/platform/android/adds/res/values-sv/android_content_strings.xml +15 -0
  172. data/libs/crosswalk/ext/platform/android/adds/res/values-sv/android_ui_strings.xml +47 -0
  173. data/libs/crosswalk/ext/platform/android/adds/res/values-sw/android_content_strings.xml +15 -0
  174. data/libs/crosswalk/ext/platform/android/adds/res/values-sw/android_ui_strings.xml +47 -0
  175. data/libs/crosswalk/ext/platform/android/adds/res/values-th/android_content_strings.xml +15 -0
  176. data/libs/crosswalk/ext/platform/android/adds/res/values-th/android_ui_strings.xml +47 -0
  177. data/libs/crosswalk/ext/platform/android/adds/res/values-tl/android_content_strings.xml +15 -0
  178. data/libs/crosswalk/ext/platform/android/adds/res/values-tl/android_ui_strings.xml +47 -0
  179. data/libs/crosswalk/ext/platform/android/adds/res/values-tr/android_content_strings.xml +15 -0
  180. data/libs/crosswalk/ext/platform/android/adds/res/values-tr/android_ui_strings.xml +47 -0
  181. data/libs/crosswalk/ext/platform/android/adds/res/values-uk/android_content_strings.xml +15 -0
  182. data/libs/crosswalk/ext/platform/android/adds/res/values-uk/android_ui_strings.xml +47 -0
  183. data/libs/crosswalk/ext/platform/android/adds/res/values-v14/theme.xml +16 -0
  184. data/libs/crosswalk/ext/platform/android/adds/res/values-v17/styles.xml +19 -0
  185. data/libs/crosswalk/ext/platform/android/adds/res/values-v17/ui_java_styles.xml +41 -0
  186. data/libs/crosswalk/ext/platform/android/adds/res/values-v21/styles.xml +14 -0
  187. data/libs/crosswalk/ext/platform/android/adds/res/values-v21/ui_java_styles.xml +14 -0
  188. data/libs/crosswalk/ext/platform/android/adds/res/values-vi/android_content_strings.xml +15 -0
  189. data/libs/crosswalk/ext/platform/android/adds/res/values-vi/android_ui_strings.xml +47 -0
  190. data/libs/crosswalk/ext/platform/android/adds/res/values-zh-rCN/android_content_strings.xml +15 -0
  191. data/libs/crosswalk/ext/platform/android/adds/res/values-zh-rCN/android_ui_strings.xml +47 -0
  192. data/libs/crosswalk/ext/platform/android/adds/res/values-zh-rTW/android_content_strings.xml +15 -0
  193. data/libs/crosswalk/ext/platform/android/adds/res/values-zh-rTW/android_ui_strings.xml +47 -0
  194. data/libs/crosswalk/ext/platform/android/adds/res/values/android_content_strings.xml +15 -0
  195. data/libs/crosswalk/ext/platform/android/adds/res/values/android_ui_strings.xml +47 -0
  196. data/libs/crosswalk/ext/platform/android/adds/res/values/android_xwalk_strings.xml +17 -0
  197. data/libs/crosswalk/ext/platform/android/adds/res/values/ui_java_attrs.xml +9 -0
  198. data/libs/crosswalk/ext/platform/android/adds/res/values/ui_java_dimens.xml +31 -0
  199. data/libs/crosswalk/ext/platform/android/adds/res/values/ui_java_strings.xml +16 -0
  200. data/libs/crosswalk/ext/platform/android/adds/res/values/ui_java_styles.xml +101 -0
  201. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_app_strings.xml +28 -0
  202. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_attrs.xml +11 -0
  203. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_colors.xml +13 -0
  204. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_core_internal_java_strings.xml +16 -0
  205. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_core_java_strings.xml +16 -0
  206. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_dimens.xml +11 -0
  207. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_resources_list.xml +7 -0
  208. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_styles.xml +40 -0
  209. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_values.xml +10 -0
  210. data/libs/crosswalk/ext/platform/android/ext_java.files +14 -0
  211. data/libs/crosswalk/ext/platform/android/ext_native.files +7 -0
  212. data/libs/crosswalk/ext/platform/android/jni/Crosswalk_impl.cpp +61 -0
  213. data/libs/crosswalk/ext/platform/android/src/com/rho/crosswalk/Crosswalk.java +14 -0
  214. data/libs/crosswalk/ext/platform/android/src/com/rho/crosswalk/CrosswalkFactory.java +18 -0
  215. data/libs/crosswalk/ext/platform/android/src/com/rho/crosswalk/CrosswalkSingleton.java +24 -0
  216. data/libs/crosswalk/ext/platform/android/src/com/tautechnologies/tau/crosswalk/CrosswalkExtension.java +16 -0
  217. data/libs/crosswalk/ext/platform/android/src/com/tautechnologies/tau/crosswalk/RhodesListener.java +18 -0
  218. data/libs/crosswalk/ext/platform/android/src/com/tautechnologies/tau/crosswalk/TauXWResourceClient.java +182 -0
  219. data/libs/crosswalk/ext/platform/android/src/com/tautechnologies/tau/crosswalk/TauXWUIClient.java +125 -0
  220. data/libs/crosswalk/ext/platform/android/src/com/tautechnologies/tau/crosswalk/TauXWalkWebView.java +368 -0
  221. data/libs/crosswalk/ext/platform/iphone/Crosswalk.xcodeproj/project.pbxproj +368 -0
  222. data/libs/crosswalk/ext/platform/iphone/Crosswalk_Prefix.pch +7 -0
  223. data/libs/crosswalk/ext/platform/iphone/Rakefile +73 -0
  224. data/libs/crosswalk/ext/platform/iphone/impl/Crosswalk.h +14 -0
  225. data/libs/crosswalk/ext/platform/iphone/impl/Crosswalk.m +24 -0
  226. data/libs/crosswalk/ext/platform/iphone/impl/CrosswalkFactorySingleton.m +16 -0
  227. data/libs/crosswalk/ext/platform/iphone/impl/CrosswalkSetup.m +9 -0
  228. data/libs/crosswalk/ext/platform/iphone/impl/CrosswalkSingleton.h +17 -0
  229. data/libs/crosswalk/ext/platform/iphone/impl/CrosswalkSingleton.m +23 -0
  230. data/libs/crosswalk/ext/platform/iphone/impl/readme.txt +7 -0
  231. data/libs/crosswalk/ext/platform/qt/Crosswalk.pro +66 -0
  232. data/libs/crosswalk/ext/platform/qt/Rakefile +35 -0
  233. data/libs/crosswalk/ext/platform/qt/src/Crosswalk_impl.cpp +77 -0
  234. data/libs/crosswalk/ext/platform/wm/Crosswalk.sln +52 -0
  235. data/libs/crosswalk/ext/platform/wm/Crosswalk.vcproj +714 -0
  236. data/libs/crosswalk/ext/platform/wm/Crosswalk.vsprops +15 -0
  237. data/libs/crosswalk/ext/platform/wm/src/Crosswalk_impl.cpp +77 -0
  238. data/libs/crosswalk/ext/platform/wp8/Crosswalk.props +18 -0
  239. data/libs/crosswalk/ext/platform/wp8/Crosswalk.vcxproj +170 -0
  240. data/libs/crosswalk/ext/platform/wp8/Crosswalk.vcxproj.filters +50 -0
  241. data/libs/crosswalk/ext/platform/wp8/CrosswalkImpl.csproj +119 -0
  242. data/libs/crosswalk/ext/platform/wp8/CrosswalkImpl.props +8 -0
  243. data/libs/crosswalk/ext/platform/wp8/CrosswalkImpl.targets +7 -0
  244. data/libs/crosswalk/ext/platform/wp8/CrosswalkLib.props +18 -0
  245. data/libs/crosswalk/ext/platform/wp8/CrosswalkLib.vcxproj +185 -0
  246. data/libs/crosswalk/ext/platform/wp8/CrosswalkLib.vcxproj.filters +58 -0
  247. data/libs/crosswalk/ext/platform/wp8/src/Crosswalk_impl.cpp +76 -0
  248. data/libs/crosswalk/ext/platform/wp8/src/Crosswalk_impl.cs +69 -0
  249. data/libs/crosswalk/ext/platform/wp8/src/Properties/AssemblyInfo.cs +37 -0
  250. data/libs/enterprise-barcode/ext.yml +13 -0
  251. data/libs/enterprise-barcode/ext/barcode.xml +2144 -0
  252. data/libs/enterprise-barcode/ext/build +17 -0
  253. data/libs/enterprise-barcode/ext/build.bat +29 -0
  254. data/libs/enterprise-barcode/ext/platform/android/AndroidManifest.xml +31 -0
  255. data/libs/enterprise-barcode/ext/platform/android/ZXing_Info/AUTHORS +58 -0
  256. data/libs/enterprise-barcode/ext/platform/android/ZXing_Info/CHANGES +266 -0
  257. data/libs/enterprise-barcode/ext/platform/android/ZXing_Info/COPYING +201 -0
  258. data/libs/enterprise-barcode/ext/platform/android/ZXing_Info/README +11 -0
  259. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/drawable-hdpi/cancel_icon.png +0 -0
  260. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/drawable-hdpi/ok_icon.png +0 -0
  261. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/drawable-hdpi/retake_icon.png +0 -0
  262. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/drawable/cancel_icon.png +0 -0
  263. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/drawable/ok_icon.png +0 -0
  264. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/drawable/retake_icon.png +0 -0
  265. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/layout/capture.xml +122 -0
  266. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/raw/beep.ogg +0 -0
  267. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/values/attrs.xml +20 -0
  268. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/values/colors.xml +42 -0
  269. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/values/ids.xml +31 -0
  270. data/libs/enterprise-barcode/ext/platform/android/adds/lib/armeabi/liballbarcode.a +0 -0
  271. data/libs/enterprise-barcode/ext/platform/android/adds/lib/x86/liballbarcode.a +0 -0
  272. data/libs/enterprise-barcode/ext/platform/android/allbarcode.jar +0 -0
  273. data/libs/enterprise-barcode/ext/platform/iphone/Barcode.xcodeproj/project.pbxproj +524 -0
  274. data/libs/enterprise-barcode/ext/platform/iphone/Barcode_Prefix.pch +7 -0
  275. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeCallbackHelper.h +27 -0
  276. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeCallbackHelper.mm +231 -0
  277. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewController.h +95 -0
  278. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewController.m +1017 -0
  279. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewFactory.h +7 -0
  280. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewFactory.mm +58 -0
  281. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewFactoryRegister.mm +18 -0
  282. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewManager.h +16 -0
  283. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewManager.mm +32 -0
  284. data/libs/enterprise-barcode/ext/platform/iphone/Classes/ImageProvider.cpp +25 -0
  285. data/libs/enterprise-barcode/ext/platform/iphone/Classes/ImageProvider.h +15 -0
  286. data/libs/enterprise-barcode/ext/platform/iphone/Classes/ImageProvider.mm +159 -0
  287. data/libs/enterprise-barcode/ext/platform/iphone/Classes/barcode.m +123 -0
  288. data/libs/enterprise-barcode/ext/platform/iphone/Rakefile +69 -0
  289. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/COPYING +27 -0
  290. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarCameraSimulator.h +45 -0
  291. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarCaptureReader.h +111 -0
  292. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarHelpController.h +60 -0
  293. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarImage.h +69 -0
  294. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarImageScanner.h +51 -0
  295. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarReaderController.h +142 -0
  296. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarReaderView.h +135 -0
  297. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarReaderViewController.h +130 -0
  298. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarSDK.h +34 -0
  299. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarSymbol.h +71 -0
  300. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar.h +1497 -0
  301. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Decoder.h +202 -0
  302. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Exception.h +187 -0
  303. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Image.h +321 -0
  304. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/ImageScanner.h +130 -0
  305. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Processor.h +223 -0
  306. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Scanner.h +162 -0
  307. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Symbol.h +528 -0
  308. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Video.h +170 -0
  309. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Window.h +136 -0
  310. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/LICENSE +504 -0
  311. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/README +59 -0
  312. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Resources/zbar-back.png +0 -0
  313. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Resources/zbar-help.html +88 -0
  314. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Resources/zbar-helpicons.png +0 -0
  315. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Resources/zbar-samples.png +0 -0
  316. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/libzbar.a +0 -0
  317. data/libs/enterprise-barcode/ext/platform/iphone/impl/Barcode.h +21 -0
  318. data/libs/enterprise-barcode/ext/platform/iphone/impl/Barcode.m +132 -0
  319. data/libs/enterprise-barcode/ext/platform/iphone/impl/BarcodeFactory.h +10 -0
  320. data/libs/enterprise-barcode/ext/platform/iphone/impl/BarcodeFactory.m +16 -0
  321. data/libs/enterprise-barcode/ext/platform/iphone/impl/BarcodeFactorySingleton.m +16 -0
  322. data/libs/enterprise-barcode/ext/platform/iphone/impl/BarcodeSetup.m +8 -0
  323. data/libs/enterprise-barcode/ext/platform/iphone/impl/BarcodeSingleton.h +17 -0
  324. data/libs/enterprise-barcode/ext/platform/iphone/impl/BarcodeSingleton.m +22 -0
  325. data/libs/enterprise-barcode/ext/platform/iphone/impl/readme.txt +7 -0
  326. data/libs/enterprise-barcode/ext/platform/wm/Barcode.sln +44 -0
  327. data/libs/enterprise-barcode/ext/platform/wm/Barcode.vcproj +836 -0
  328. data/libs/enterprise-barcode/ext/platform/wm/Barcode.vsprops +15 -0
  329. data/libs/enterprise-barcode/ext/platform/wm/readme.txt +0 -0
  330. data/libs/enterprise-barcode/ext/platform/wm/src/Barcode_impl.cpp +376 -0
  331. data/libs/enterprise-barcode/ext/platform/wm/src/DecodeNotifier.cpp +173 -0
  332. data/libs/enterprise-barcode/ext/platform/wm/src/DecodeNotifier.h +149 -0
  333. data/libs/enterprise-barcode/ext/platform/wm/src/EMDKInterfaceAbstraction.cpp +476 -0
  334. data/libs/enterprise-barcode/ext/platform/wm/src/GetDecoderProperties.cpp +1195 -0
  335. data/libs/enterprise-barcode/ext/platform/wm/src/GetScannerProperties.cpp +553 -0
  336. data/libs/enterprise-barcode/ext/platform/wm/src/KeyInjector.cpp +177 -0
  337. data/libs/enterprise-barcode/ext/platform/wm/src/KeyInjector.h +40 -0
  338. data/libs/enterprise-barcode/ext/platform/wm/src/NotificationLoader.cpp +76 -0
  339. data/libs/enterprise-barcode/ext/platform/wm/src/NotificationLoader.h +44 -0
  340. data/libs/enterprise-barcode/ext/platform/wm/src/RSM.cpp +1211 -0
  341. data/libs/enterprise-barcode/ext/platform/wm/src/Scanner.cpp +2609 -0
  342. data/libs/enterprise-barcode/ext/platform/wm/src/Scanner.h +1099 -0
  343. data/libs/enterprise-barcode/ext/platform/wm/src/ScannerDefines.h +322 -0
  344. data/libs/enterprise-barcode/ext/platform/wm/src/SetDecoderProperties.cpp +2106 -0
  345. data/libs/enterprise-barcode/ext/platform/wm/src/SetScannerProperties.cpp +1060 -0
  346. data/libs/enterprise-barcode/ext/platform/wm/src/Utilities.cpp +184 -0
  347. data/libs/enterprise-barcode/ext/platform/wp8/BarcodeImpl.csproj +119 -0
  348. data/libs/enterprise-barcode/ext/platform/wp8/BarcodeImpl.props +8 -0
  349. data/libs/enterprise-barcode/ext/platform/wp8/BarcodeImpl.targets +35 -0
  350. data/libs/enterprise-barcode/ext/platform/wp8/BarcodeLib.props +18 -0
  351. data/libs/enterprise-barcode/ext/platform/wp8/BarcodeLib.vcxproj +185 -0
  352. data/libs/enterprise-barcode/ext/platform/wp8/BarcodeLib.vcxproj.filters +58 -0
  353. data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/Nokia.Graphics.Imaging.dll +0 -0
  354. data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/Nokia.Graphics.Imaging.winmd +0 -0
  355. data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/Nokia.Graphics.Imaging.xml +4813 -0
  356. data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/Nokia.InteropServices.WindowsRuntime.dll +0 -0
  357. data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/Nokia.InteropServices.WindowsRuntime.winmd +0 -0
  358. data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/Nokia.InteropServices.WindowsRuntime.xml +41 -0
  359. data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/OpticalReaderLib.dll +0 -0
  360. data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib.XML +68 -0
  361. data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib.dll +0 -0
  362. data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib/BarcodeReaderLib.csproj +120 -0
  363. data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib/BarcodeReaderLib.sln +34 -0
  364. data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib/CameraNavigatePage.xaml +32 -0
  365. data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib/CameraNavigatePage.xaml.cs +235 -0
  366. data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib/OpticalReaderTask.cs +182 -0
  367. data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib/Properties/AssemblyInfo.cs +37 -0
  368. data/libs/enterprise-barcode/ext/platform/wp8/lib/Nokia.Graphics.Imaging.Managed.dll +0 -0
  369. data/libs/enterprise-barcode/ext/platform/wp8/lib/Nokia.Graphics.Imaging.Managed.xml +341 -0
  370. data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/Nokia.Graphics.Imaging.dll +0 -0
  371. data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/Nokia.Graphics.Imaging.winmd +0 -0
  372. data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/Nokia.Graphics.Imaging.xml +4813 -0
  373. data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/Nokia.InteropServices.WindowsRuntime.dll +0 -0
  374. data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/Nokia.InteropServices.WindowsRuntime.winmd +0 -0
  375. data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/Nokia.InteropServices.WindowsRuntime.xml +41 -0
  376. data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/OpticalReaderLib.dll +0 -0
  377. data/libs/enterprise-barcode/ext/platform/wp8/lib/zxing.wp8.0.XML +10324 -0
  378. data/libs/enterprise-barcode/ext/platform/wp8/lib/zxing.wp8.0.dll +0 -0
  379. data/libs/enterprise-barcode/ext/platform/wp8/src/Barcode_impl.cs +630 -0
  380. data/libs/enterprise-barcode/ext/platform/wp8/src/Properties/AssemblyInfo.cs +37 -0
  381. data/libs/enterprise-barcode/public/api/generated/Rho.Barcode.js +772 -0
  382. data/libs/ie/rhobrowser.dll +0 -0
  383. data/libs/nodejs.rb +2 -0
  384. data/libs/nodejs/ext.yml +25 -0
  385. data/libs/nodejs/ext/Nodejs.xml +37 -0
  386. data/libs/nodejs/ext/build +19 -0
  387. data/libs/nodejs/ext/build.bat +29 -0
  388. data/libs/nodejs/ext/platform/android/Rakefile +161 -0
  389. data/libs/nodejs/ext/platform/android/ext_native.files +8 -0
  390. data/libs/nodejs/ext/platform/android/jxCore/jx.h +134 -0
  391. data/libs/nodejs/ext/platform/android/jxCore/jx_result.h +221 -0
  392. data/libs/nodejs/ext/platform/android/jxCore/libcares_arm.a +0 -0
  393. data/libs/nodejs/ext/platform/android/jxCore/libcares_ia32.a +0 -0
  394. data/libs/nodejs/ext/platform/android/jxCore/libcares_x64.a +0 -0
  395. data/libs/nodejs/ext/platform/android/jxCore/libchrome_zlib_arm.a +0 -0
  396. data/libs/nodejs/ext/platform/android/jxCore/libchrome_zlib_ia32.a +0 -0
  397. data/libs/nodejs/ext/platform/android/jxCore/libchrome_zlib_x64.a +0 -0
  398. data/libs/nodejs/ext/platform/android/jxCore/libhttp_parser_arm.a +0 -0
  399. data/libs/nodejs/ext/platform/android/jxCore/libhttp_parser_ia32.a +0 -0
  400. data/libs/nodejs/ext/platform/android/jxCore/libhttp_parser_x64.a +0 -0
  401. data/libs/nodejs/ext/platform/android/jxCore/libjx_arm.a +0 -0
  402. data/libs/nodejs/ext/platform/android/jxCore/libjx_ia32.a +0 -0
  403. data/libs/nodejs/ext/platform/android/jxCore/libjx_x64.a +0 -0
  404. data/libs/nodejs/ext/platform/android/jxCore/libopenssl_arm.a +0 -0
  405. data/libs/nodejs/ext/platform/android/jxCore/libopenssl_ia32.a +0 -0
  406. data/libs/nodejs/ext/platform/android/jxCore/libopenssl_x64.a +0 -0
  407. data/libs/nodejs/ext/platform/android/jxCore/libsqlite3_arm.a +0 -0
  408. data/libs/nodejs/ext/platform/android/jxCore/libsqlite3_ia32.a +0 -0
  409. data/libs/nodejs/ext/platform/android/jxCore/libsqlite3_x64.a +0 -0
  410. data/libs/nodejs/ext/platform/android/jxCore/libuv_arm.a +0 -0
  411. data/libs/nodejs/ext/platform/android/jxCore/libuv_ia32.a +0 -0
  412. data/libs/nodejs/ext/platform/android/jxCore/libuv_x64.a +0 -0
  413. data/libs/nodejs/ext/platform/android/jxCore/libv8_base_arm.a +0 -0
  414. data/libs/nodejs/ext/platform/android/jxCore/libv8_base_ia32.a +0 -0
  415. data/libs/nodejs/ext/platform/android/jxCore/libv8_base_x64.a +0 -0
  416. data/libs/nodejs/ext/platform/android/jxCore/libv8_nosnapshot_arm.a +0 -0
  417. data/libs/nodejs/ext/platform/android/jxCore/libv8_nosnapshot_ia32.a +0 -0
  418. data/libs/nodejs/ext/platform/android/jxCore/libv8_nosnapshot_x64.a +0 -0
  419. data/libs/nodejs/ext/platform/iphone/Nodejs.xcodeproj/project.pbxproj +350 -0
  420. data/libs/nodejs/ext/platform/iphone/Nodejs_Prefix.pch +7 -0
  421. data/libs/nodejs/ext/platform/iphone/Rakefile +73 -0
  422. data/libs/nodejs/ext/platform/iphone/jxCore/jx.h +134 -0
  423. data/libs/nodejs/ext/platform/iphone/jxCore/jx_result.h +221 -0
  424. data/libs/nodejs/ext/platform/iphone/jxCore/libcares.a +0 -0
  425. data/libs/nodejs/ext/platform/iphone/jxCore/libchrome_zlib.a +0 -0
  426. data/libs/nodejs/ext/platform/iphone/jxCore/libhttp_parser.a +0 -0
  427. data/libs/nodejs/ext/platform/iphone/jxCore/libjx.a +0 -0
  428. data/libs/nodejs/ext/platform/iphone/jxCore/libmozjs.a +0 -0
  429. data/libs/nodejs/ext/platform/iphone/jxCore/libopenssl.a +0 -0
  430. data/libs/nodejs/ext/platform/iphone/jxCore/libsqlite3.a +0 -0
  431. data/libs/nodejs/ext/platform/iphone/jxCore/libuv.a +0 -0
  432. data/libs/nodejs/ext/shared/jxcore/jx.h +134 -0
  433. data/libs/nodejs/ext/shared/jxcore/jx_result.h +221 -0
  434. data/libs/nodejs/ext/shared/jxcoretau.cpp +454 -0
  435. data/libs/nodejs/ext/shared/jxcoretau.h +20 -0
  436. data/libs/nodejs/ext/shared/nodejs_impl.cpp +106 -0
  437. data/libs/nodejs/nodejs.rb +2 -0
  438. data/libs/openssl-edge.rb +2 -0
  439. data/libs/openssl-edge/ext.yml +4 -0
  440. data/libs/openssl-edge/ext/Rakefile +145 -0
  441. data/libs/openssl-edge/ext/android/Rakefile +107 -0
  442. data/libs/openssl-edge/ext/android/ext_native.files +32 -0
  443. data/libs/openssl-edge/ext/android/extconf.h +91 -0
  444. data/libs/openssl-edge/ext/build +12 -0
  445. data/libs/openssl-edge/ext/build.bat +5 -0
  446. data/libs/openssl-edge/ext/extconf.rb +141 -0
  447. data/libs/openssl-edge/ext/openssl.pro +109 -0
  448. data/libs/openssl-edge/ext/openssl.sln +52 -0
  449. data/libs/openssl-edge/ext/openssl.vcproj +1010 -0
  450. data/libs/openssl-edge/ext/openssl_missing.c +1163 -0
  451. data/libs/openssl-edge/ext/openssl_missing.h +537 -0
  452. data/libs/openssl-edge/ext/ossl.c +1203 -0
  453. data/libs/openssl-edge/ext/ossl.h +242 -0
  454. data/libs/openssl-edge/ext/ossl_asn1.c +2008 -0
  455. data/libs/openssl-edge/ext/ossl_asn1.h +66 -0
  456. data/libs/openssl-edge/ext/ossl_bio.c +118 -0
  457. data/libs/openssl-edge/ext/ossl_bio.h +19 -0
  458. data/libs/openssl-edge/ext/ossl_bn.c +1153 -0
  459. data/libs/openssl-edge/ext/ossl_bn.h +23 -0
  460. data/libs/openssl-edge/ext/ossl_cipher.c +1085 -0
  461. data/libs/openssl-edge/ext/ossl_cipher.h +20 -0
  462. data/libs/openssl-edge/ext/ossl_config.c +89 -0
  463. data/libs/openssl-edge/ext/ossl_config.h +19 -0
  464. data/libs/openssl-edge/ext/ossl_digest.c +453 -0
  465. data/libs/openssl-edge/ext/ossl_digest.h +20 -0
  466. data/libs/openssl-edge/ext/ossl_engine.c +580 -0
  467. data/libs/openssl-edge/ext/ossl_engine.h +19 -0
  468. data/libs/openssl-edge/ext/ossl_hmac.c +398 -0
  469. data/libs/openssl-edge/ext/ossl_hmac.h +18 -0
  470. data/libs/openssl-edge/ext/ossl_ns_spki.c +406 -0
  471. data/libs/openssl-edge/ext/ossl_ns_spki.h +19 -0
  472. data/libs/openssl-edge/ext/ossl_ocsp.c +2013 -0
  473. data/libs/openssl-edge/ext/ossl_ocsp.h +23 -0
  474. data/libs/openssl-edge/ext/ossl_pkcs12.c +261 -0
  475. data/libs/openssl-edge/ext/ossl_pkcs12.h +13 -0
  476. data/libs/openssl-edge/ext/ossl_pkcs5.c +180 -0
  477. data/libs/openssl-edge/ext/ossl_pkcs5.h +6 -0
  478. data/libs/openssl-edge/ext/ossl_pkcs7.c +1157 -0
  479. data/libs/openssl-edge/ext/ossl_pkcs7.h +20 -0
  480. data/libs/openssl-edge/ext/ossl_pkey.c +469 -0
  481. data/libs/openssl-edge/ext/ossl_pkey.h +245 -0
  482. data/libs/openssl-edge/ext/ossl_pkey_dh.c +650 -0
  483. data/libs/openssl-edge/ext/ossl_pkey_dsa.c +672 -0
  484. data/libs/openssl-edge/ext/ossl_pkey_ec.c +1806 -0
  485. data/libs/openssl-edge/ext/ossl_pkey_rsa.c +768 -0
  486. data/libs/openssl-edge/ext/ossl_rand.c +238 -0
  487. data/libs/openssl-edge/ext/ossl_rand.h +18 -0
  488. data/libs/openssl-edge/ext/ossl_ssl.c +2724 -0
  489. data/libs/openssl-edge/ext/ossl_ssl.h +41 -0
  490. data/libs/openssl-edge/ext/ossl_ssl_session.c +352 -0
  491. data/libs/openssl-edge/ext/ossl_version.h +15 -0
  492. data/libs/openssl-edge/ext/ossl_x509.c +186 -0
  493. data/libs/openssl-edge/ext/ossl_x509.h +119 -0
  494. data/libs/openssl-edge/ext/ossl_x509attr.c +328 -0
  495. data/libs/openssl-edge/ext/ossl_x509cert.c +863 -0
  496. data/libs/openssl-edge/ext/ossl_x509crl.c +565 -0
  497. data/libs/openssl-edge/ext/ossl_x509ext.c +480 -0
  498. data/libs/openssl-edge/ext/ossl_x509name.c +547 -0
  499. data/libs/openssl-edge/ext/ossl_x509req.c +492 -0
  500. data/libs/openssl-edge/ext/ossl_x509revoked.c +279 -0
  501. data/libs/openssl-edge/ext/ossl_x509store.c +846 -0
  502. data/libs/openssl-edge/ext/ruby_missing.h +32 -0
  503. data/libs/openssl-edge/openssl-edge.rb +2 -0
  504. data/libs/openssl-edge/openssl.rb +24 -0
  505. data/libs/openssl-edge/openssl/bn.rb +35 -0
  506. data/libs/openssl-edge/openssl/buffering.rb +341 -0
  507. data/libs/openssl-edge/openssl/cipher.rb +65 -0
  508. data/libs/openssl-edge/openssl/digest.rb +61 -0
  509. data/libs/openssl-edge/openssl/ssl-internal.rb +180 -0
  510. data/libs/openssl-edge/openssl/ssl.rb +1 -0
  511. data/libs/openssl-edge/openssl/x509-internal.rb +153 -0
  512. data/libs/openssl-edge/openssl/x509.rb +1 -0
  513. data/libs/openssl.so-edge.rb +2 -0
  514. data/libs/openssl.so-edge/ext.yml +8 -0
  515. data/libs/openssl.so-edge/ext/Rakefile +140 -0
  516. data/libs/openssl.so-edge/ext/android/armeabi/libcrypto.a +0 -0
  517. data/libs/openssl.so-edge/ext/android/armeabi/libssl.a +0 -0
  518. data/libs/openssl.so-edge/ext/android/x86/libcrypto.a +0 -0
  519. data/libs/openssl.so-edge/ext/android/x86/libssl.a +0 -0
  520. data/libs/openssl.so-edge/ext/build +12 -0
  521. data/libs/openssl.so-edge/ext/build.bat +1 -0
  522. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/dh/dh_locl.h +56 -0
  523. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/dsa/dsa_locl.h +76 -0
  524. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/evp/evp_locl.h +66 -0
  525. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/hmac/hmac_lcl.h +33 -0
  526. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/asn1_int.h +94 -0
  527. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/async.h +14 -0
  528. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/bn_conf.h +28 -0
  529. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/bn_dh.h +17 -0
  530. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/bn_int.h +82 -0
  531. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/bn_srp.h +32 -0
  532. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/chacha.h +49 -0
  533. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/cryptlib.h +81 -0
  534. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/cryptlib_int.h +31 -0
  535. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/dso_conf.h +16 -0
  536. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/engine.h +20 -0
  537. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/err_int.h +17 -0
  538. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/evp_int.h +382 -0
  539. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/md32_common.h +383 -0
  540. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/objects.h +12 -0
  541. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/poly1305.h +19 -0
  542. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/rand.h +20 -0
  543. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/x509_int.h +267 -0
  544. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/ocsp/ocsp_lcl.h +216 -0
  545. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/rsa/rsa_locl.h +96 -0
  546. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/x509/x509_lcl.h +142 -0
  547. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/e_os.h +520 -0
  548. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/bio.h +26 -0
  549. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/comp.h +12 -0
  550. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/conf.h +32 -0
  551. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/constant_time_locl.h +185 -0
  552. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/dane.h +103 -0
  553. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/dso.h +216 -0
  554. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/err.h +15 -0
  555. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/numbers.h +68 -0
  556. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/o_dir.h +63 -0
  557. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/o_str.h +17 -0
  558. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/thread_once.h +42 -0
  559. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/__DECC_INCLUDE_EPILOGUE.H +16 -0
  560. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/__DECC_INCLUDE_PROLOGUE.H +20 -0
  561. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/aes.h +92 -0
  562. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/asn1.h +1096 -0
  563. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/asn1_mac.h +10 -0
  564. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/asn1t.h +924 -0
  565. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/async.h +98 -0
  566. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/bio.h +854 -0
  567. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/blowfish.h +61 -0
  568. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/bn.h +575 -0
  569. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/buffer.h +76 -0
  570. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/camellia.h +83 -0
  571. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/cast.h +53 -0
  572. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/cmac.h +41 -0
  573. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/cms.h +512 -0
  574. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/comp.h +72 -0
  575. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/conf.h +216 -0
  576. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/conf_api.h +40 -0
  577. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/crypto.h +463 -0
  578. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ct.h +518 -0
  579. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/des.h +174 -0
  580. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/dh.h +343 -0
  581. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/dsa.h +282 -0
  582. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/dtls1.h +56 -0
  583. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/e_os2.h +311 -0
  584. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ebcdic.h +33 -0
  585. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ec.h +1581 -0
  586. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ecdh.h +10 -0
  587. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ecdsa.h +10 -0
  588. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/engine.h +842 -0
  589. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/err.h +259 -0
  590. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/evp.h +1586 -0
  591. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/hmac.h +49 -0
  592. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/idea.h +64 -0
  593. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/kdf.h +75 -0
  594. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/lhash.h +204 -0
  595. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/md2.h +44 -0
  596. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/md4.h +51 -0
  597. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/md5.h +50 -0
  598. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/mdc2.h +42 -0
  599. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/modes.h +203 -0
  600. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/obj_mac.h +4577 -0
  601. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/objects.h +1097 -0
  602. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ocsp.h +409 -0
  603. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/opensslconf.h +169 -0
  604. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/opensslconf.h.in +141 -0
  605. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/opensslv.h +105 -0
  606. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ossl_typ.h +190 -0
  607. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/pem.h +501 -0
  608. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/pem2.h +20 -0
  609. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/pkcs12.h +282 -0
  610. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/pkcs7.h +404 -0
  611. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/rand.h +89 -0
  612. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/rc2.h +51 -0
  613. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/rc4.h +36 -0
  614. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/rc5.h +63 -0
  615. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ripemd.h +47 -0
  616. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/rsa.h +588 -0
  617. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/safestack.h +164 -0
  618. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/seed.h +98 -0
  619. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/sha.h +119 -0
  620. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/srp.h +131 -0
  621. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/srtp.h +50 -0
  622. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ssl.h +2527 -0
  623. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ssl2.h +24 -0
  624. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ssl3.h +307 -0
  625. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/stack.h +78 -0
  626. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/symhacks.h +52 -0
  627. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/tls1.h +972 -0
  628. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ts.h +643 -0
  629. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/txt_db.h +57 -0
  630. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ui.h +368 -0
  631. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/whrlpool.h +48 -0
  632. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/x509.h +1123 -0
  633. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/x509_vfy.h +539 -0
  634. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/x509v3.h +1005 -0
  635. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/ssl/packet_locl.h +555 -0
  636. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/ssl/record/record.h +240 -0
  637. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/ssl/record/record_locl.h +114 -0
  638. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/ssl/ssl_locl.h +2127 -0
  639. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/ssl/statem/statem.h +123 -0
  640. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/ssl/statem/statem_locl.h +124 -0
  641. data/libs/openssl.so-edge/openssl.so.rb +2 -0
  642. data/libs/webkit.rb +2 -0
  643. data/libs/webkit/ext.yml +4 -0
  644. data/libs/webkit/ext/build +12 -0
  645. data/libs/webkit/ext/build.bat +7 -0
  646. data/libs/webkit/ext/wm/Rakefile +61 -0
  647. data/libs/webkit/ext/wm/RhoMsgs.cpp +17 -0
  648. data/libs/webkit/ext/wm/RhoMsgs.h +14 -0
  649. data/libs/webkit/ext/wm/RhoWKBrowserEngine.cpp +736 -0
  650. data/libs/webkit/ext/wm/RhoWKBrowserEngine.h +105 -0
  651. data/libs/webkit/ext/wm/lib/npapi/rhobridge.dll +0 -0
  652. data/libs/webkit/ext/wm/lib/rhoengine_defs.h +80 -0
  653. data/libs/webkit/ext/wm/lib/rhowebkit.dll +0 -0
  654. data/libs/webkit/ext/wm/webkit.sln +36 -0
  655. data/libs/webkit/ext/wm/webkit.suo +0 -0
  656. data/libs/webkit/ext/wm/webkit.vcproj +800 -0
  657. data/libs/webkit/ext/wm/webkit.vsprops +20 -0
  658. data/libs/webkit/webkit.rb +2 -0
  659. data/rho-tau-extensions.gemspec +23 -0
  660. data/version +1 -0
  661. metadata +705 -0
@@ -0,0 +1,89 @@
1
+ /*
2
+ * Copyright 1995-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
+ #ifndef HEADER_RAND_H
11
+ # define HEADER_RAND_H
12
+
13
+ # include <stdlib.h>
14
+ # include <openssl/ossl_typ.h>
15
+ # include <openssl/e_os2.h>
16
+
17
+ #ifdef __cplusplus
18
+ extern "C" {
19
+ #endif
20
+
21
+ /* Already defined in ossl_typ.h */
22
+ /* typedef struct rand_meth_st RAND_METHOD; */
23
+
24
+ struct rand_meth_st {
25
+ int (*seed) (const void *buf, int num);
26
+ int (*bytes) (unsigned char *buf, int num);
27
+ void (*cleanup) (void);
28
+ int (*add) (const void *buf, int num, double entropy);
29
+ int (*pseudorand) (unsigned char *buf, int num);
30
+ int (*status) (void);
31
+ };
32
+
33
+ # ifdef BN_DEBUG
34
+ extern int rand_predictable;
35
+ # endif
36
+
37
+ int RAND_set_rand_method(const RAND_METHOD *meth);
38
+ const RAND_METHOD *RAND_get_rand_method(void);
39
+ # ifndef OPENSSL_NO_ENGINE
40
+ int RAND_set_rand_engine(ENGINE *engine);
41
+ # endif
42
+ RAND_METHOD *RAND_OpenSSL(void);
43
+ #if OPENSSL_API_COMPAT < 0x10100000L
44
+ # define RAND_cleanup() while(0) continue
45
+ #endif
46
+ int RAND_bytes(unsigned char *buf, int num);
47
+ DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num))
48
+ void RAND_seed(const void *buf, int num);
49
+ #if defined(__ANDROID__) && defined(__NDK_FPABI__)
50
+ __NDK_FPABI__ /* __attribute__((pcs("aapcs"))) on ARM */
51
+ #endif
52
+ void RAND_add(const void *buf, int num, double entropy);
53
+ int RAND_load_file(const char *file, long max_bytes);
54
+ int RAND_write_file(const char *file);
55
+ const char *RAND_file_name(char *file, size_t num);
56
+ int RAND_status(void);
57
+ # ifndef OPENSSL_NO_EGD
58
+ int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes);
59
+ int RAND_egd(const char *path);
60
+ int RAND_egd_bytes(const char *path, int bytes);
61
+ # endif
62
+ int RAND_poll(void);
63
+
64
+ #if defined(_WIN32) && (defined(BASETYPES) || defined(_WINDEF_H))
65
+ /* application has to include <windows.h> in order to use these */
66
+ DEPRECATEDIN_1_1_0(void RAND_screen(void))
67
+ DEPRECATEDIN_1_1_0(int RAND_event(UINT, WPARAM, LPARAM))
68
+ #endif
69
+
70
+ /* BEGIN ERROR CODES */
71
+ /*
72
+ * The following lines are auto generated by the script mkerr.pl. Any changes
73
+ * made after this point may be overwritten when the script is next run.
74
+ */
75
+
76
+ int ERR_load_RAND_strings(void);
77
+
78
+ /* Error codes for the RAND functions. */
79
+
80
+ /* Function codes. */
81
+ # define RAND_F_RAND_BYTES 100
82
+
83
+ /* Reason codes. */
84
+ # define RAND_R_PRNG_NOT_SEEDED 100
85
+
86
+ # ifdef __cplusplus
87
+ }
88
+ # endif
89
+ #endif
@@ -0,0 +1,51 @@
1
+ /*
2
+ * Copyright 1995-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
+ #ifndef HEADER_RC2_H
11
+ # define HEADER_RC2_H
12
+
13
+ # include <openssl/opensslconf.h>
14
+
15
+ # ifndef OPENSSL_NO_RC2
16
+ # ifdef __cplusplus
17
+ extern "C" {
18
+ # endif
19
+
20
+ typedef unsigned int RC2_INT;
21
+
22
+ # define RC2_ENCRYPT 1
23
+ # define RC2_DECRYPT 0
24
+
25
+ # define RC2_BLOCK 8
26
+ # define RC2_KEY_LENGTH 16
27
+
28
+ typedef struct rc2_key_st {
29
+ RC2_INT data[64];
30
+ } RC2_KEY;
31
+
32
+ void RC2_set_key(RC2_KEY *key, int len, const unsigned char *data, int bits);
33
+ void RC2_ecb_encrypt(const unsigned char *in, unsigned char *out,
34
+ RC2_KEY *key, int enc);
35
+ void RC2_encrypt(unsigned long *data, RC2_KEY *key);
36
+ void RC2_decrypt(unsigned long *data, RC2_KEY *key);
37
+ void RC2_cbc_encrypt(const unsigned char *in, unsigned char *out, long length,
38
+ RC2_KEY *ks, unsigned char *iv, int enc);
39
+ void RC2_cfb64_encrypt(const unsigned char *in, unsigned char *out,
40
+ long length, RC2_KEY *schedule, unsigned char *ivec,
41
+ int *num, int enc);
42
+ void RC2_ofb64_encrypt(const unsigned char *in, unsigned char *out,
43
+ long length, RC2_KEY *schedule, unsigned char *ivec,
44
+ int *num);
45
+
46
+ # ifdef __cplusplus
47
+ }
48
+ # endif
49
+ # endif
50
+
51
+ #endif
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Copyright 1995-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
+ #ifndef HEADER_RC4_H
11
+ # define HEADER_RC4_H
12
+
13
+ # include <openssl/opensslconf.h>
14
+
15
+ # ifndef OPENSSL_NO_RC4
16
+ # include <stddef.h>
17
+ #ifdef __cplusplus
18
+ extern "C" {
19
+ #endif
20
+
21
+ typedef struct rc4_key_st {
22
+ RC4_INT x, y;
23
+ RC4_INT data[256];
24
+ } RC4_KEY;
25
+
26
+ const char *RC4_options(void);
27
+ void RC4_set_key(RC4_KEY *key, int len, const unsigned char *data);
28
+ void RC4(RC4_KEY *key, size_t len, const unsigned char *indata,
29
+ unsigned char *outdata);
30
+
31
+ # ifdef __cplusplus
32
+ }
33
+ # endif
34
+ # endif
35
+
36
+ #endif
@@ -0,0 +1,63 @@
1
+ /*
2
+ * Copyright 1995-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
+ #ifndef HEADER_RC5_H
11
+ # define HEADER_RC5_H
12
+
13
+ # include <openssl/opensslconf.h>
14
+
15
+ # ifndef OPENSSL_NO_RC5
16
+ # ifdef __cplusplus
17
+ extern "C" {
18
+ # endif
19
+
20
+ # define RC5_ENCRYPT 1
21
+ # define RC5_DECRYPT 0
22
+
23
+ # define RC5_32_INT unsigned int
24
+
25
+ # define RC5_32_BLOCK 8
26
+ # define RC5_32_KEY_LENGTH 16/* This is a default, max is 255 */
27
+
28
+ /*
29
+ * This are the only values supported. Tweak the code if you want more The
30
+ * most supported modes will be RC5-32/12/16 RC5-32/16/8
31
+ */
32
+ # define RC5_8_ROUNDS 8
33
+ # define RC5_12_ROUNDS 12
34
+ # define RC5_16_ROUNDS 16
35
+
36
+ typedef struct rc5_key_st {
37
+ /* Number of rounds */
38
+ int rounds;
39
+ RC5_32_INT data[2 * (RC5_16_ROUNDS + 1)];
40
+ } RC5_32_KEY;
41
+
42
+ void RC5_32_set_key(RC5_32_KEY *key, int len, const unsigned char *data,
43
+ int rounds);
44
+ void RC5_32_ecb_encrypt(const unsigned char *in, unsigned char *out,
45
+ RC5_32_KEY *key, int enc);
46
+ void RC5_32_encrypt(unsigned long *data, RC5_32_KEY *key);
47
+ void RC5_32_decrypt(unsigned long *data, RC5_32_KEY *key);
48
+ void RC5_32_cbc_encrypt(const unsigned char *in, unsigned char *out,
49
+ long length, RC5_32_KEY *ks, unsigned char *iv,
50
+ int enc);
51
+ void RC5_32_cfb64_encrypt(const unsigned char *in, unsigned char *out,
52
+ long length, RC5_32_KEY *schedule,
53
+ unsigned char *ivec, int *num, int enc);
54
+ void RC5_32_ofb64_encrypt(const unsigned char *in, unsigned char *out,
55
+ long length, RC5_32_KEY *schedule,
56
+ unsigned char *ivec, int *num);
57
+
58
+ # ifdef __cplusplus
59
+ }
60
+ # endif
61
+ # endif
62
+
63
+ #endif
@@ -0,0 +1,47 @@
1
+ /*
2
+ * Copyright 1995-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
+ #ifndef HEADER_RIPEMD_H
11
+ # define HEADER_RIPEMD_H
12
+
13
+ # include <openssl/opensslconf.h>
14
+
15
+ #ifndef OPENSSL_NO_RMD160
16
+ # include <openssl/e_os2.h>
17
+ # include <stddef.h>
18
+ # ifdef __cplusplus
19
+ extern "C" {
20
+ # endif
21
+
22
+ # define RIPEMD160_LONG unsigned int
23
+
24
+ # define RIPEMD160_CBLOCK 64
25
+ # define RIPEMD160_LBLOCK (RIPEMD160_CBLOCK/4)
26
+ # define RIPEMD160_DIGEST_LENGTH 20
27
+
28
+ typedef struct RIPEMD160state_st {
29
+ RIPEMD160_LONG A, B, C, D, E;
30
+ RIPEMD160_LONG Nl, Nh;
31
+ RIPEMD160_LONG data[RIPEMD160_LBLOCK];
32
+ unsigned int num;
33
+ } RIPEMD160_CTX;
34
+
35
+ int RIPEMD160_Init(RIPEMD160_CTX *c);
36
+ int RIPEMD160_Update(RIPEMD160_CTX *c, const void *data, size_t len);
37
+ int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c);
38
+ unsigned char *RIPEMD160(const unsigned char *d, size_t n, unsigned char *md);
39
+ void RIPEMD160_Transform(RIPEMD160_CTX *c, const unsigned char *b);
40
+
41
+ # ifdef __cplusplus
42
+ }
43
+ # endif
44
+ # endif
45
+
46
+
47
+ #endif
@@ -0,0 +1,588 @@
1
+ /*
2
+ * Copyright 1995-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
+ #ifndef HEADER_RSA_H
11
+ # define HEADER_RSA_H
12
+
13
+ # include <openssl/opensslconf.h>
14
+
15
+ # ifndef OPENSSL_NO_RSA
16
+ # include <openssl/asn1.h>
17
+ # include <openssl/bio.h>
18
+ # include <openssl/crypto.h>
19
+ # include <openssl/ossl_typ.h>
20
+ # if OPENSSL_API_COMPAT < 0x10100000L
21
+ # include <openssl/bn.h>
22
+ # endif
23
+ # ifdef __cplusplus
24
+ extern "C" {
25
+ # endif
26
+
27
+ /* The types RSA and RSA_METHOD are defined in ossl_typ.h */
28
+
29
+ # ifndef OPENSSL_RSA_MAX_MODULUS_BITS
30
+ # define OPENSSL_RSA_MAX_MODULUS_BITS 16384
31
+ # endif
32
+
33
+ # define OPENSSL_RSA_FIPS_MIN_MODULUS_BITS 1024
34
+
35
+ # ifndef OPENSSL_RSA_SMALL_MODULUS_BITS
36
+ # define OPENSSL_RSA_SMALL_MODULUS_BITS 3072
37
+ # endif
38
+ # ifndef OPENSSL_RSA_MAX_PUBEXP_BITS
39
+
40
+ /* exponent limit enforced for "large" modulus only */
41
+ # define OPENSSL_RSA_MAX_PUBEXP_BITS 64
42
+ # endif
43
+
44
+ # define RSA_3 0x3L
45
+ # define RSA_F4 0x10001L
46
+
47
+ # define RSA_METHOD_FLAG_NO_CHECK 0x0001/* don't check pub/private
48
+ * match */
49
+
50
+ # define RSA_FLAG_CACHE_PUBLIC 0x0002
51
+ # define RSA_FLAG_CACHE_PRIVATE 0x0004
52
+ # define RSA_FLAG_BLINDING 0x0008
53
+ # define RSA_FLAG_THREAD_SAFE 0x0010
54
+ /*
55
+ * This flag means the private key operations will be handled by rsa_mod_exp
56
+ * and that they do not depend on the private key components being present:
57
+ * for example a key stored in external hardware. Without this flag
58
+ * bn_mod_exp gets called when private key components are absent.
59
+ */
60
+ # define RSA_FLAG_EXT_PKEY 0x0020
61
+
62
+ /*
63
+ * new with 0.9.6j and 0.9.7b; the built-in
64
+ * RSA implementation now uses blinding by
65
+ * default (ignoring RSA_FLAG_BLINDING),
66
+ * but other engines might not need it
67
+ */
68
+ # define RSA_FLAG_NO_BLINDING 0x0080
69
+ # if OPENSSL_API_COMPAT < 0x10100000L
70
+ /*
71
+ * Does nothing. Previously this switched off constant time behaviour.
72
+ */
73
+ # define RSA_FLAG_NO_CONSTTIME 0x0000
74
+ # endif
75
+ # if OPENSSL_API_COMPAT < 0x00908000L
76
+ /* deprecated name for the flag*/
77
+ /*
78
+ * new with 0.9.7h; the built-in RSA
79
+ * implementation now uses constant time
80
+ * modular exponentiation for secret exponents
81
+ * by default. This flag causes the
82
+ * faster variable sliding window method to
83
+ * be used for all exponents.
84
+ */
85
+ # define RSA_FLAG_NO_EXP_CONSTTIME RSA_FLAG_NO_CONSTTIME
86
+ # endif
87
+
88
+ # define EVP_PKEY_CTX_set_rsa_padding(ctx, pad) \
89
+ EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, -1, EVP_PKEY_CTRL_RSA_PADDING, \
90
+ pad, NULL)
91
+
92
+ # define EVP_PKEY_CTX_get_rsa_padding(ctx, ppad) \
93
+ EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, -1, \
94
+ EVP_PKEY_CTRL_GET_RSA_PADDING, 0, ppad)
95
+
96
+ # define EVP_PKEY_CTX_set_rsa_pss_saltlen(ctx, len) \
97
+ EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, \
98
+ (EVP_PKEY_OP_SIGN|EVP_PKEY_OP_VERIFY), \
99
+ EVP_PKEY_CTRL_RSA_PSS_SALTLEN, \
100
+ len, NULL)
101
+
102
+ # define EVP_PKEY_CTX_get_rsa_pss_saltlen(ctx, plen) \
103
+ EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, \
104
+ (EVP_PKEY_OP_SIGN|EVP_PKEY_OP_VERIFY), \
105
+ EVP_PKEY_CTRL_GET_RSA_PSS_SALTLEN, \
106
+ 0, plen)
107
+
108
+ # define EVP_PKEY_CTX_set_rsa_keygen_bits(ctx, bits) \
109
+ EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_KEYGEN, \
110
+ EVP_PKEY_CTRL_RSA_KEYGEN_BITS, bits, NULL)
111
+
112
+ # define EVP_PKEY_CTX_set_rsa_keygen_pubexp(ctx, pubexp) \
113
+ EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_KEYGEN, \
114
+ EVP_PKEY_CTRL_RSA_KEYGEN_PUBEXP, 0, pubexp)
115
+
116
+ # define EVP_PKEY_CTX_set_rsa_mgf1_md(ctx, md) \
117
+ EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, \
118
+ EVP_PKEY_OP_TYPE_SIG | EVP_PKEY_OP_TYPE_CRYPT, \
119
+ EVP_PKEY_CTRL_RSA_MGF1_MD, 0, (void *)md)
120
+
121
+ # define EVP_PKEY_CTX_set_rsa_oaep_md(ctx, md) \
122
+ EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT, \
123
+ EVP_PKEY_CTRL_RSA_OAEP_MD, 0, (void *)md)
124
+
125
+ # define EVP_PKEY_CTX_get_rsa_mgf1_md(ctx, pmd) \
126
+ EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, \
127
+ EVP_PKEY_OP_TYPE_SIG | EVP_PKEY_OP_TYPE_CRYPT, \
128
+ EVP_PKEY_CTRL_GET_RSA_MGF1_MD, 0, (void *)pmd)
129
+
130
+ # define EVP_PKEY_CTX_get_rsa_oaep_md(ctx, pmd) \
131
+ EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT, \
132
+ EVP_PKEY_CTRL_GET_RSA_OAEP_MD, 0, (void *)pmd)
133
+
134
+ # define EVP_PKEY_CTX_set0_rsa_oaep_label(ctx, l, llen) \
135
+ EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT, \
136
+ EVP_PKEY_CTRL_RSA_OAEP_LABEL, llen, (void *)l)
137
+
138
+ # define EVP_PKEY_CTX_get0_rsa_oaep_label(ctx, l) \
139
+ EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT, \
140
+ EVP_PKEY_CTRL_GET_RSA_OAEP_LABEL, 0, (void *)l)
141
+
142
+ # define EVP_PKEY_CTRL_RSA_PADDING (EVP_PKEY_ALG_CTRL + 1)
143
+ # define EVP_PKEY_CTRL_RSA_PSS_SALTLEN (EVP_PKEY_ALG_CTRL + 2)
144
+
145
+ # define EVP_PKEY_CTRL_RSA_KEYGEN_BITS (EVP_PKEY_ALG_CTRL + 3)
146
+ # define EVP_PKEY_CTRL_RSA_KEYGEN_PUBEXP (EVP_PKEY_ALG_CTRL + 4)
147
+ # define EVP_PKEY_CTRL_RSA_MGF1_MD (EVP_PKEY_ALG_CTRL + 5)
148
+
149
+ # define EVP_PKEY_CTRL_GET_RSA_PADDING (EVP_PKEY_ALG_CTRL + 6)
150
+ # define EVP_PKEY_CTRL_GET_RSA_PSS_SALTLEN (EVP_PKEY_ALG_CTRL + 7)
151
+ # define EVP_PKEY_CTRL_GET_RSA_MGF1_MD (EVP_PKEY_ALG_CTRL + 8)
152
+
153
+ # define EVP_PKEY_CTRL_RSA_OAEP_MD (EVP_PKEY_ALG_CTRL + 9)
154
+ # define EVP_PKEY_CTRL_RSA_OAEP_LABEL (EVP_PKEY_ALG_CTRL + 10)
155
+
156
+ # define EVP_PKEY_CTRL_GET_RSA_OAEP_MD (EVP_PKEY_ALG_CTRL + 11)
157
+ # define EVP_PKEY_CTRL_GET_RSA_OAEP_LABEL (EVP_PKEY_ALG_CTRL + 12)
158
+
159
+ # define RSA_PKCS1_PADDING 1
160
+ # define RSA_SSLV23_PADDING 2
161
+ # define RSA_NO_PADDING 3
162
+ # define RSA_PKCS1_OAEP_PADDING 4
163
+ # define RSA_X931_PADDING 5
164
+ /* EVP_PKEY_ only */
165
+ # define RSA_PKCS1_PSS_PADDING 6
166
+
167
+ # define RSA_PKCS1_PADDING_SIZE 11
168
+
169
+ # define RSA_set_app_data(s,arg) RSA_set_ex_data(s,0,arg)
170
+ # define RSA_get_app_data(s) RSA_get_ex_data(s,0)
171
+
172
+ RSA *RSA_new(void);
173
+ RSA *RSA_new_method(ENGINE *engine);
174
+ int RSA_bits(const RSA *rsa);
175
+ int RSA_size(const RSA *rsa);
176
+ int RSA_security_bits(const RSA *rsa);
177
+
178
+ int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
179
+ int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q);
180
+ int RSA_set0_crt_params(RSA *r,BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp);
181
+ void RSA_get0_key(const RSA *r,
182
+ const BIGNUM **n, const BIGNUM **e, const BIGNUM **d);
183
+ void RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q);
184
+ void RSA_get0_crt_params(const RSA *r,
185
+ const BIGNUM **dmp1, const BIGNUM **dmq1,
186
+ const BIGNUM **iqmp);
187
+ void RSA_clear_flags(RSA *r, int flags);
188
+ int RSA_test_flags(const RSA *r, int flags);
189
+ void RSA_set_flags(RSA *r, int flags);
190
+ ENGINE *RSA_get0_engine(const RSA *r);
191
+
192
+ /* Deprecated version */
193
+ DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
194
+ (*callback) (int, int, void *),
195
+ void *cb_arg))
196
+
197
+ /* New version */
198
+ int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb);
199
+
200
+ int RSA_X931_derive_ex(RSA *rsa, BIGNUM *p1, BIGNUM *p2, BIGNUM *q1,
201
+ BIGNUM *q2, const BIGNUM *Xp1, const BIGNUM *Xp2,
202
+ const BIGNUM *Xp, const BIGNUM *Xq1, const BIGNUM *Xq2,
203
+ const BIGNUM *Xq, const BIGNUM *e, BN_GENCB *cb);
204
+ int RSA_X931_generate_key_ex(RSA *rsa, int bits, const BIGNUM *e,
205
+ BN_GENCB *cb);
206
+
207
+ int RSA_check_key(const RSA *);
208
+ int RSA_check_key_ex(const RSA *, BN_GENCB *cb);
209
+ /* next 4 return -1 on error */
210
+ int RSA_public_encrypt(int flen, const unsigned char *from,
211
+ unsigned char *to, RSA *rsa, int padding);
212
+ int RSA_private_encrypt(int flen, const unsigned char *from,
213
+ unsigned char *to, RSA *rsa, int padding);
214
+ int RSA_public_decrypt(int flen, const unsigned char *from,
215
+ unsigned char *to, RSA *rsa, int padding);
216
+ int RSA_private_decrypt(int flen, const unsigned char *from,
217
+ unsigned char *to, RSA *rsa, int padding);
218
+ void RSA_free(RSA *r);
219
+ /* "up" the RSA object's reference count */
220
+ int RSA_up_ref(RSA *r);
221
+
222
+ int RSA_flags(const RSA *r);
223
+
224
+ void RSA_set_default_method(const RSA_METHOD *meth);
225
+ const RSA_METHOD *RSA_get_default_method(void);
226
+ const RSA_METHOD *RSA_get_method(const RSA *rsa);
227
+ int RSA_set_method(RSA *rsa, const RSA_METHOD *meth);
228
+
229
+ /* these are the actual RSA functions */
230
+ const RSA_METHOD *RSA_PKCS1_OpenSSL(void);
231
+
232
+ const RSA_METHOD *RSA_null_method(void);
233
+
234
+ DECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPublicKey)
235
+ DECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPrivateKey)
236
+
237
+ typedef struct rsa_pss_params_st {
238
+ X509_ALGOR *hashAlgorithm;
239
+ X509_ALGOR *maskGenAlgorithm;
240
+ ASN1_INTEGER *saltLength;
241
+ ASN1_INTEGER *trailerField;
242
+ } RSA_PSS_PARAMS;
243
+
244
+ DECLARE_ASN1_FUNCTIONS(RSA_PSS_PARAMS)
245
+
246
+ typedef struct rsa_oaep_params_st {
247
+ X509_ALGOR *hashFunc;
248
+ X509_ALGOR *maskGenFunc;
249
+ X509_ALGOR *pSourceFunc;
250
+ } RSA_OAEP_PARAMS;
251
+
252
+ DECLARE_ASN1_FUNCTIONS(RSA_OAEP_PARAMS)
253
+
254
+ # ifndef OPENSSL_NO_STDIO
255
+ int RSA_print_fp(FILE *fp, const RSA *r, int offset);
256
+ # endif
257
+
258
+ int RSA_print(BIO *bp, const RSA *r, int offset);
259
+
260
+ /*
261
+ * The following 2 functions sign and verify a X509_SIG ASN1 object inside
262
+ * PKCS#1 padded RSA encryption
263
+ */
264
+ int RSA_sign(int type, const unsigned char *m, unsigned int m_length,
265
+ unsigned char *sigret, unsigned int *siglen, RSA *rsa);
266
+ int RSA_verify(int type, const unsigned char *m, unsigned int m_length,
267
+ const unsigned char *sigbuf, unsigned int siglen, RSA *rsa);
268
+
269
+ /*
270
+ * The following 2 function sign and verify a ASN1_OCTET_STRING object inside
271
+ * PKCS#1 padded RSA encryption
272
+ */
273
+ int RSA_sign_ASN1_OCTET_STRING(int type,
274
+ const unsigned char *m, unsigned int m_length,
275
+ unsigned char *sigret, unsigned int *siglen,
276
+ RSA *rsa);
277
+ int RSA_verify_ASN1_OCTET_STRING(int type, const unsigned char *m,
278
+ unsigned int m_length, unsigned char *sigbuf,
279
+ unsigned int siglen, RSA *rsa);
280
+
281
+ int RSA_blinding_on(RSA *rsa, BN_CTX *ctx);
282
+ void RSA_blinding_off(RSA *rsa);
283
+ BN_BLINDING *RSA_setup_blinding(RSA *rsa, BN_CTX *ctx);
284
+
285
+ int RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen,
286
+ const unsigned char *f, int fl);
287
+ int RSA_padding_check_PKCS1_type_1(unsigned char *to, int tlen,
288
+ const unsigned char *f, int fl,
289
+ int rsa_len);
290
+ int RSA_padding_add_PKCS1_type_2(unsigned char *to, int tlen,
291
+ const unsigned char *f, int fl);
292
+ int RSA_padding_check_PKCS1_type_2(unsigned char *to, int tlen,
293
+ const unsigned char *f, int fl,
294
+ int rsa_len);
295
+ int PKCS1_MGF1(unsigned char *mask, long len, const unsigned char *seed,
296
+ long seedlen, const EVP_MD *dgst);
297
+ int RSA_padding_add_PKCS1_OAEP(unsigned char *to, int tlen,
298
+ const unsigned char *f, int fl,
299
+ const unsigned char *p, int pl);
300
+ int RSA_padding_check_PKCS1_OAEP(unsigned char *to, int tlen,
301
+ const unsigned char *f, int fl, int rsa_len,
302
+ const unsigned char *p, int pl);
303
+ int RSA_padding_add_PKCS1_OAEP_mgf1(unsigned char *to, int tlen,
304
+ const unsigned char *from, int flen,
305
+ const unsigned char *param, int plen,
306
+ const EVP_MD *md, const EVP_MD *mgf1md);
307
+ int RSA_padding_check_PKCS1_OAEP_mgf1(unsigned char *to, int tlen,
308
+ const unsigned char *from, int flen,
309
+ int num, const unsigned char *param,
310
+ int plen, const EVP_MD *md,
311
+ const EVP_MD *mgf1md);
312
+ int RSA_padding_add_SSLv23(unsigned char *to, int tlen,
313
+ const unsigned char *f, int fl);
314
+ int RSA_padding_check_SSLv23(unsigned char *to, int tlen,
315
+ const unsigned char *f, int fl, int rsa_len);
316
+ int RSA_padding_add_none(unsigned char *to, int tlen, const unsigned char *f,
317
+ int fl);
318
+ int RSA_padding_check_none(unsigned char *to, int tlen,
319
+ const unsigned char *f, int fl, int rsa_len);
320
+ int RSA_padding_add_X931(unsigned char *to, int tlen, const unsigned char *f,
321
+ int fl);
322
+ int RSA_padding_check_X931(unsigned char *to, int tlen,
323
+ const unsigned char *f, int fl, int rsa_len);
324
+ int RSA_X931_hash_id(int nid);
325
+
326
+ int RSA_verify_PKCS1_PSS(RSA *rsa, const unsigned char *mHash,
327
+ const EVP_MD *Hash, const unsigned char *EM,
328
+ int sLen);
329
+ int RSA_padding_add_PKCS1_PSS(RSA *rsa, unsigned char *EM,
330
+ const unsigned char *mHash, const EVP_MD *Hash,
331
+ int sLen);
332
+
333
+ int RSA_verify_PKCS1_PSS_mgf1(RSA *rsa, const unsigned char *mHash,
334
+ const EVP_MD *Hash, const EVP_MD *mgf1Hash,
335
+ const unsigned char *EM, int sLen);
336
+
337
+ int RSA_padding_add_PKCS1_PSS_mgf1(RSA *rsa, unsigned char *EM,
338
+ const unsigned char *mHash,
339
+ const EVP_MD *Hash, const EVP_MD *mgf1Hash,
340
+ int sLen);
341
+
342
+ #define RSA_get_ex_new_index(l, p, newf, dupf, freef) \
343
+ CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_RSA, l, p, newf, dupf, freef)
344
+ int RSA_set_ex_data(RSA *r, int idx, void *arg);
345
+ void *RSA_get_ex_data(const RSA *r, int idx);
346
+
347
+ RSA *RSAPublicKey_dup(RSA *rsa);
348
+ RSA *RSAPrivateKey_dup(RSA *rsa);
349
+
350
+ /*
351
+ * If this flag is set the RSA method is FIPS compliant and can be used in
352
+ * FIPS mode. This is set in the validated module method. If an application
353
+ * sets this flag in its own methods it is its responsibility to ensure the
354
+ * result is compliant.
355
+ */
356
+
357
+ # define RSA_FLAG_FIPS_METHOD 0x0400
358
+
359
+ /*
360
+ * If this flag is set the operations normally disabled in FIPS mode are
361
+ * permitted it is then the applications responsibility to ensure that the
362
+ * usage is compliant.
363
+ */
364
+
365
+ # define RSA_FLAG_NON_FIPS_ALLOW 0x0400
366
+ /*
367
+ * Application has decided PRNG is good enough to generate a key: don't
368
+ * check.
369
+ */
370
+ # define RSA_FLAG_CHECKED 0x0800
371
+
372
+ RSA_METHOD *RSA_meth_new(const char *name, int flags);
373
+ void RSA_meth_free(RSA_METHOD *meth);
374
+ RSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth);
375
+ const char *RSA_meth_get0_name(const RSA_METHOD *meth);
376
+ int RSA_meth_set1_name(RSA_METHOD *meth, const char *name);
377
+ int RSA_meth_get_flags(RSA_METHOD *meth);
378
+ int RSA_meth_set_flags(RSA_METHOD *meth, int flags);
379
+ void *RSA_meth_get0_app_data(const RSA_METHOD *meth);
380
+ int RSA_meth_set0_app_data(RSA_METHOD *meth, void *app_data);
381
+ int (*RSA_meth_get_pub_enc(const RSA_METHOD *meth))
382
+ (int flen, const unsigned char *from,
383
+ unsigned char *to, RSA *rsa, int padding);
384
+ int RSA_meth_set_pub_enc(RSA_METHOD *rsa,
385
+ int (*pub_enc) (int flen, const unsigned char *from,
386
+ unsigned char *to, RSA *rsa,
387
+ int padding));
388
+ int (*RSA_meth_get_pub_dec(const RSA_METHOD *meth))
389
+ (int flen, const unsigned char *from,
390
+ unsigned char *to, RSA *rsa, int padding);
391
+ int RSA_meth_set_pub_dec(RSA_METHOD *rsa,
392
+ int (*pub_dec) (int flen, const unsigned char *from,
393
+ unsigned char *to, RSA *rsa,
394
+ int padding));
395
+ int (*RSA_meth_get_priv_enc(const RSA_METHOD *meth))
396
+ (int flen, const unsigned char *from,
397
+ unsigned char *to, RSA *rsa, int padding);
398
+ int RSA_meth_set_priv_enc(RSA_METHOD *rsa,
399
+ int (*priv_enc) (int flen, const unsigned char *from,
400
+ unsigned char *to, RSA *rsa,
401
+ int padding));
402
+ int (*RSA_meth_get_priv_dec(const RSA_METHOD *meth))
403
+ (int flen, const unsigned char *from,
404
+ unsigned char *to, RSA *rsa, int padding);
405
+ int RSA_meth_set_priv_dec(RSA_METHOD *rsa,
406
+ int (*priv_dec) (int flen, const unsigned char *from,
407
+ unsigned char *to, RSA *rsa,
408
+ int padding));
409
+ int (*RSA_meth_get_mod_exp(const RSA_METHOD *meth))
410
+ (BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx);
411
+ int RSA_meth_set_mod_exp(RSA_METHOD *rsa,
412
+ int (*mod_exp) (BIGNUM *r0, const BIGNUM *I, RSA *rsa,
413
+ BN_CTX *ctx));
414
+ int (*RSA_meth_get_bn_mod_exp(const RSA_METHOD *meth))
415
+ (BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
416
+ const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
417
+ int RSA_meth_set_bn_mod_exp(RSA_METHOD *rsa,
418
+ int (*bn_mod_exp) (BIGNUM *r,
419
+ const BIGNUM *a,
420
+ const BIGNUM *p,
421
+ const BIGNUM *m,
422
+ BN_CTX *ctx,
423
+ BN_MONT_CTX *m_ctx));
424
+ int (*RSA_meth_get_init(const RSA_METHOD *meth)) (RSA *rsa);
425
+ int RSA_meth_set_init(RSA_METHOD *rsa, int (*init) (RSA *rsa));
426
+ int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa);
427
+ int RSA_meth_set_finish(RSA_METHOD *rsa, int (*finish) (RSA *rsa));
428
+ int (*RSA_meth_get_sign(const RSA_METHOD *meth))
429
+ (int type,
430
+ const unsigned char *m, unsigned int m_length,
431
+ unsigned char *sigret, unsigned int *siglen,
432
+ const RSA *rsa);
433
+ int RSA_meth_set_sign(RSA_METHOD *rsa,
434
+ int (*sign) (int type, const unsigned char *m,
435
+ unsigned int m_length,
436
+ unsigned char *sigret, unsigned int *siglen,
437
+ const RSA *rsa));
438
+ int (*RSA_meth_get_verify(const RSA_METHOD *meth))
439
+ (int dtype, const unsigned char *m,
440
+ unsigned int m_length, const unsigned char *sigbuf,
441
+ unsigned int siglen, const RSA *rsa);
442
+ int RSA_meth_set_verify(RSA_METHOD *rsa,
443
+ int (*verify) (int dtype, const unsigned char *m,
444
+ unsigned int m_length,
445
+ const unsigned char *sigbuf,
446
+ unsigned int siglen, const RSA *rsa));
447
+ int (*RSA_meth_get_keygen(const RSA_METHOD *meth))
448
+ (RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb);
449
+ int RSA_meth_set_keygen(RSA_METHOD *rsa,
450
+ int (*keygen) (RSA *rsa, int bits, BIGNUM *e,
451
+ BN_GENCB *cb));
452
+
453
+ /* BEGIN ERROR CODES */
454
+ /*
455
+ * The following lines are auto generated by the script mkerr.pl. Any changes
456
+ * made after this point may be overwritten when the script is next run.
457
+ */
458
+
459
+ int ERR_load_RSA_strings(void);
460
+
461
+ /* Error codes for the RSA functions. */
462
+
463
+ /* Function codes. */
464
+ # define RSA_F_CHECK_PADDING_MD 140
465
+ # define RSA_F_INT_RSA_VERIFY 145
466
+ # define RSA_F_OLD_RSA_PRIV_DECODE 147
467
+ # define RSA_F_PKEY_RSA_CTRL 143
468
+ # define RSA_F_PKEY_RSA_CTRL_STR 144
469
+ # define RSA_F_PKEY_RSA_SIGN 142
470
+ # define RSA_F_PKEY_RSA_VERIFYRECOVER 141
471
+ # define RSA_F_RSA_ALGOR_TO_MD 156
472
+ # define RSA_F_RSA_BUILTIN_KEYGEN 129
473
+ # define RSA_F_RSA_CHECK_KEY 123
474
+ # define RSA_F_RSA_CHECK_KEY_EX 160
475
+ # define RSA_F_RSA_CMS_DECRYPT 159
476
+ # define RSA_F_RSA_ITEM_VERIFY 148
477
+ # define RSA_F_RSA_METH_DUP 161
478
+ # define RSA_F_RSA_METH_NEW 162
479
+ # define RSA_F_RSA_METH_SET1_NAME 163
480
+ # define RSA_F_RSA_MGF1_TO_MD 157
481
+ # define RSA_F_RSA_NEW_METHOD 106
482
+ # define RSA_F_RSA_NULL 124
483
+ # define RSA_F_RSA_NULL_PRIVATE_DECRYPT 132
484
+ # define RSA_F_RSA_NULL_PRIVATE_ENCRYPT 133
485
+ # define RSA_F_RSA_NULL_PUBLIC_DECRYPT 134
486
+ # define RSA_F_RSA_NULL_PUBLIC_ENCRYPT 135
487
+ # define RSA_F_RSA_OSSL_PRIVATE_DECRYPT 101
488
+ # define RSA_F_RSA_OSSL_PRIVATE_ENCRYPT 102
489
+ # define RSA_F_RSA_OSSL_PUBLIC_DECRYPT 103
490
+ # define RSA_F_RSA_OSSL_PUBLIC_ENCRYPT 104
491
+ # define RSA_F_RSA_PADDING_ADD_NONE 107
492
+ # define RSA_F_RSA_PADDING_ADD_PKCS1_OAEP 121
493
+ # define RSA_F_RSA_PADDING_ADD_PKCS1_OAEP_MGF1 154
494
+ # define RSA_F_RSA_PADDING_ADD_PKCS1_PSS 125
495
+ # define RSA_F_RSA_PADDING_ADD_PKCS1_PSS_MGF1 152
496
+ # define RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_1 108
497
+ # define RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_2 109
498
+ # define RSA_F_RSA_PADDING_ADD_SSLV23 110
499
+ # define RSA_F_RSA_PADDING_ADD_X931 127
500
+ # define RSA_F_RSA_PADDING_CHECK_NONE 111
501
+ # define RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP 122
502
+ # define RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP_MGF1 153
503
+ # define RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1 112
504
+ # define RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_2 113
505
+ # define RSA_F_RSA_PADDING_CHECK_SSLV23 114
506
+ # define RSA_F_RSA_PADDING_CHECK_X931 128
507
+ # define RSA_F_RSA_PRINT 115
508
+ # define RSA_F_RSA_PRINT_FP 116
509
+ # define RSA_F_RSA_PRIV_ENCODE 138
510
+ # define RSA_F_RSA_PSS_TO_CTX 155
511
+ # define RSA_F_RSA_PUB_DECODE 139
512
+ # define RSA_F_RSA_SETUP_BLINDING 136
513
+ # define RSA_F_RSA_SIGN 117
514
+ # define RSA_F_RSA_SIGN_ASN1_OCTET_STRING 118
515
+ # define RSA_F_RSA_VERIFY 119
516
+ # define RSA_F_RSA_VERIFY_ASN1_OCTET_STRING 120
517
+ # define RSA_F_RSA_VERIFY_PKCS1_PSS_MGF1 126
518
+
519
+ /* Reason codes. */
520
+ # define RSA_R_ALGORITHM_MISMATCH 100
521
+ # define RSA_R_BAD_E_VALUE 101
522
+ # define RSA_R_BAD_FIXED_HEADER_DECRYPT 102
523
+ # define RSA_R_BAD_PAD_BYTE_COUNT 103
524
+ # define RSA_R_BAD_SIGNATURE 104
525
+ # define RSA_R_BLOCK_TYPE_IS_NOT_01 106
526
+ # define RSA_R_BLOCK_TYPE_IS_NOT_02 107
527
+ # define RSA_R_DATA_GREATER_THAN_MOD_LEN 108
528
+ # define RSA_R_DATA_TOO_LARGE 109
529
+ # define RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE 110
530
+ # define RSA_R_DATA_TOO_LARGE_FOR_MODULUS 132
531
+ # define RSA_R_DATA_TOO_SMALL 111
532
+ # define RSA_R_DATA_TOO_SMALL_FOR_KEY_SIZE 122
533
+ # define RSA_R_DIGEST_DOES_NOT_MATCH 158
534
+ # define RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY 112
535
+ # define RSA_R_DMP1_NOT_CONGRUENT_TO_D 124
536
+ # define RSA_R_DMQ1_NOT_CONGRUENT_TO_D 125
537
+ # define RSA_R_D_E_NOT_CONGRUENT_TO_1 123
538
+ # define RSA_R_FIRST_OCTET_INVALID 133
539
+ # define RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE 144
540
+ # define RSA_R_INVALID_DIGEST 157
541
+ # define RSA_R_INVALID_DIGEST_LENGTH 143
542
+ # define RSA_R_INVALID_HEADER 137
543
+ # define RSA_R_INVALID_LABEL 160
544
+ # define RSA_R_INVALID_MESSAGE_LENGTH 131
545
+ # define RSA_R_INVALID_MGF1_MD 156
546
+ # define RSA_R_INVALID_OAEP_PARAMETERS 161
547
+ # define RSA_R_INVALID_PADDING 138
548
+ # define RSA_R_INVALID_PADDING_MODE 141
549
+ # define RSA_R_INVALID_PSS_PARAMETERS 149
550
+ # define RSA_R_INVALID_PSS_SALTLEN 146
551
+ # define RSA_R_INVALID_SALT_LENGTH 150
552
+ # define RSA_R_INVALID_TRAILER 139
553
+ # define RSA_R_INVALID_X931_DIGEST 142
554
+ # define RSA_R_IQMP_NOT_INVERSE_OF_Q 126
555
+ # define RSA_R_KEY_SIZE_TOO_SMALL 120
556
+ # define RSA_R_LAST_OCTET_INVALID 134
557
+ # define RSA_R_MODULUS_TOO_LARGE 105
558
+ # define RSA_R_NO_PUBLIC_EXPONENT 140
559
+ # define RSA_R_NULL_BEFORE_BLOCK_MISSING 113
560
+ # define RSA_R_N_DOES_NOT_EQUAL_P_Q 127
561
+ # define RSA_R_OAEP_DECODING_ERROR 121
562
+ # define RSA_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE 148
563
+ # define RSA_R_PADDING_CHECK_FAILED 114
564
+ # define RSA_R_PKCS_DECODING_ERROR 159
565
+ # define RSA_R_P_NOT_PRIME 128
566
+ # define RSA_R_Q_NOT_PRIME 129
567
+ # define RSA_R_RSA_OPERATIONS_NOT_SUPPORTED 130
568
+ # define RSA_R_SLEN_CHECK_FAILED 136
569
+ # define RSA_R_SLEN_RECOVERY_FAILED 135
570
+ # define RSA_R_SSLV3_ROLLBACK_ATTACK 115
571
+ # define RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD 116
572
+ # define RSA_R_UNKNOWN_ALGORITHM_TYPE 117
573
+ # define RSA_R_UNKNOWN_DIGEST 166
574
+ # define RSA_R_UNKNOWN_MASK_DIGEST 151
575
+ # define RSA_R_UNKNOWN_PADDING_TYPE 118
576
+ # define RSA_R_UNSUPPORTED_ENCRYPTION_TYPE 162
577
+ # define RSA_R_UNSUPPORTED_LABEL_SOURCE 163
578
+ # define RSA_R_UNSUPPORTED_MASK_ALGORITHM 153
579
+ # define RSA_R_UNSUPPORTED_MASK_PARAMETER 154
580
+ # define RSA_R_UNSUPPORTED_SIGNATURE_TYPE 155
581
+ # define RSA_R_VALUE_MISSING 147
582
+ # define RSA_R_WRONG_SIGNATURE_LENGTH 119
583
+
584
+ # ifdef __cplusplus
585
+ }
586
+ # endif
587
+ # endif
588
+ #endif