<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://forum.yubico.com/feed.php?f=22&amp;t=1918" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2015-06-15T02:57:06+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=22&amp;t=1918</id>
<entry>
<author><name><![CDATA[jgoguen]]></name></author>
<updated>2015-06-15T02:57:06+01:00</updated>
<published>2015-06-15T02:57:06+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1918&amp;p=7425#p7425</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1918&amp;p=7425#p7425"/>
<title type="html"><![CDATA[YubiHSM acting as an oracle]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1918&amp;p=7425#p7425"><![CDATA[
I'm trying to find out if I can have a YubiHSM act as an oracle - that is, I set some secret key on the YubiHSM, then I pass the HSM a value for encryption (or decryption) and I get back the encrypted (or decrypted) result. For example, after initializing the YubiHSM with a secret key, I might do something like this:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">encrypted_value = yubihsm_encrypt(plaintext_to_protect)<br />decrypted_plaintext = yubihsm_decrypt(encrypted_data)</div><br /><br />Is this something I can do, preferably in C/C++, or is the best I can do have the YubiHSM act as storage for the secret keys?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3762">jgoguen</a> — Mon Jun 15, 2015 2:57 am</p><hr />
]]></content>
</entry>
</feed>