如何将一些新功能添加到OpenSSL API中,以便将GPU用于我编写的某些加密算法(AES,RSA等)?例如,我希望使用命令<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>effects</key>
<dict>
<key>localizableStrings</key>
<array>
<dict>
<key>comments</key>
<string>Localizable index words</string>
<key>index</key>
<string>noises, audio, hear, level, volume, louder, softer, quieter, increase, decrease, raise, lower, speaker, beep, warning, bell, ding, ring, hearing, beeping, dinging, ringing</string>
<key>title</key>
<string>Alerts and sound effects</string>
</dict>
<dict>
<key>comments</key>
<string>Localizable index words</string>
<key>index</key>
<string>audio, hear, level, volume, louder, softer, quieter, increase, decrease, raise, lower, music, speakers, hearing</string>
<key>title</key>
<string>Sound volume</string>
</dict>
<dict>
<key>comments</key>
<string>Localizable index words</string>
<key>index</key>
<string>audio, hear, level, volume, louder, softer, quieter, increase, decrease, raise, lower, quiet, silent, silence, turn off, hearing, muting</string>
<key>title</key>
<string>Mute the sound</string>
</dict>
<dict>
<key>comments</key>
<string>Localizable index words</string>
<key>index</key>
<string>menubar</string>
<key>title</key>
<string>Show volume in menu bar</string>
</dict>
</array>
</dict>
<key>input</key>
<dict>
<key>localizableStrings</key>
<array>
<dict>
<key>comments</key>
<string>Localizable index words</string>
<key>index</key>
<string>audio, hear, level, volume, louder, softer, quieter, increase, decrease, raise, lower, devices, sources, microphones, instruments, MIDI, record, line in, hearing, recording</string>
<key>title</key>
<string>Sound input</string>
</dict>
</array>
</dict>
<key>output</key>
<dict>
<key>localizableStrings</key>
<array>
<dict>
<key>comments</key>
<string>Localizable index words</string>
<key>index</key>
<string>devices, headphones, headsets, speakers, hear, balance, hearing, head phones, head sets</string>
<key>title</key>
<string>Sound output</string>
</dict>
<dict>
<key>comments</key>
<string>Localizable index words</string>
<key>index</key>
<string>airplay, speakers</string>
<key>title</key>
<string>AirPlay audio streaming</string>
</dict>
</array>
</dict>
</dict>
</plist>
和OpenSSL来使用我的openssl -engine cuda_engine genrsa -out rsa.key 1024
CUDA代码而不是原始代码。我必须提到我想在Windows 7 SP1(64位)上执行此操作。即使是虚拟解决方案也会有所帮助,因为我需要理解这种机制。
答案 0 :(得分:1)
这是一篇由OpenSSL dev撰写的关于构建引擎的深入帖子。
Lesson 1: A Minimum Useless Engine
Lesson 2: An Example MD5 Engine
我还建议查看OpenSSL源代码树中的引擎。
如果您没有启用动态引擎支持,则只需重新编译openssl。附加信息OpenSSL Wiki
对于openssl app / library添加到openssl.cnf。
openssl_conf = openssl_def
[openssl_def]
engines = engines_section
[engines_section]
silly = silly_section
[silly_section]
engine_id = silly
dynamic_path = /home/workingdir/silly_engine.dll
init = 0