<div dir="ltr">Thanks a lot  Douglas for your response. It helped me .<div>What are the possible values of algorithm attribute? Is AES only supported algorithm type for  Barbican or does it support any other algorithm type?<br><br></div><div>Thanks and Regards,</div><div>Asha Seshagiri</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 30, 2015 at 1:04 PM, Douglas Mendizabal <span dir="ltr"><<a href="mailto:douglas.mendizabal@rackspace.com" target="_blank">douglas.mendizabal@rackspace.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
<div>Hi Asha,</div>
<div><br>
</div>
<div>Barbican Orders of type “key” are intended to generate keys suitable for encryption.  The metadata associated with the key order defines the encryption scheme in which the key will be used.  In the example you provided, the order is requesting
 a key that is suitable for use in a block cipher.  Specifically you’re requesting a key that will be used with the “AES” block cipher, so the “mode" describes the mode of operation to be used, which in this case is Cipher Block Chaining or “CBC”.</div>
<div><br>
</div>
<div>Acceptable values for “mode” are dependent on the value of the “algorithm” attribute.  When requesting orders for keys to be used in AES encryption, the values for “mode” correspond to the other possible modes of operation for AES, such as “ECB”,
 “CTR”, etc.</div>
<div><br>
</div>
<div>-Doug</div>
<br>
<div>--------------------<br>
Douglas Mendizábal<br>
IRC: redrobot<br>
PGP Key: 245C 7B6F 70E9 D8F3 F5D5  0CC9 AD14 1F30 2D58 923C </div><div><div class="h5">
<br>
<div>
<blockquote type="cite">
<div>On Mar 30, 2015, at 12:46 PM, Asha Seshagiri <<a href="mailto:asha.seshagiri@gmail.com" target="_blank">asha.seshagiri@gmail.com</a>> wrote:</div>
<br>
<div>
<div dir="ltr">Any help would be appreciated ?
<div>Thanks in advance !</div>
<div><br>
</div>
<div>Thanks and Regards,</div>
<div>Asha Seshagiri</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Mar 30, 2015 at 12:45 PM, Asha Seshagiri <span dir="ltr">
<<a href="mailto:asha.seshagiri@gmail.com" target="_blank">asha.seshagiri@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi All ,
<div><br>
</div>
<div>What is the use of the mode attribute ? what does the value of this attribute signify and what are the possible values of this attribute?</div>
<div>For ex :Consider the order request to create the secret :</div>
<div><br>
</div>
<div>
<pre style="overflow:auto;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:13.6000003814697px;margin-top:0px;margin-bottom:0px;font-stretch:normal;line-height:1.45;padding:16px;border-radius:3px;word-wrap:normal;word-break:normal;color:rgb(51,51,51);background-color:rgb(247,247,247)">POST v1/orders

Header<span style="color:rgb(167,29,93)">:</span> content<span style="color:rgb(167,29,93)">-</span>type<span style="color:rgb(167,29,93)">=</span>application/json
        X<span style="color:rgb(167,29,93)">-</span>Project<span style="color:rgb(167,29,93)">-</span>Id<span style="color:rgb(167,29,93)">:</span> {project_id}
{
  <span style="color:rgb(24,54,145)"><span>"</span>type<span>"</span></span><span style="color:rgb(167,29,93)">:</span> <span style="color:rgb(24,54,145)"><span>"</span>key<span>"</span></span>,
  <span style="color:rgb(24,54,145)"><span>"</span>meta<span>"</span></span><span style="color:rgb(167,29,93)">:</span> {
    <span style="color:rgb(24,54,145)"><span>"</span>name<span>"</span></span><span style="color:rgb(167,29,93)">:</span> <span style="color:rgb(24,54,145)"><span>"</span>secretname<span>"</span></span>,
    <span style="color:rgb(24,54,145)"><span>"</span>algorithm<span>"</span></span><span style="color:rgb(167,29,93)">:</span> <span style="color:rgb(24,54,145)"><span>"</span>AES<span>"</span></span>,
    <span style="color:rgb(24,54,145)"><span>"</span>bit_length<span>"</span></span><span style="color:rgb(167,29,93)">:</span> <span style="color:rgb(0,134,179)">256</span>,
    <span style="color:rgb(24,54,145)"><span>"</span>mode<span>"</span></span><span style="color:rgb(167,29,93)">:</span> <span style="color:rgb(24,54,145)"><span>"</span>cbc<span>"</span></span>,<b>
    </b><span style="color:rgb(24,54,145)"><span>"</span>payload_content_type<span>"</span></span><span style="color:rgb(167,29,93)">:</span> <span style="color:rgb(24,54,145)"><span>"</span>application/octet-stream<span>"</span></span>
  }
}</pre>
</div>
<div><br>
</div>
<div>What does the mode  value "cbc " indicate ?<span><font color="#888888"><br>
-- <br>
<div>
<div><em>Thanks and Regards,</em></div>
<div><em>Asha Seshagiri</em></div>
</div>
</font></span></div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div>
<div><em>Thanks and Regards,</em></div>
<div><em>Asha Seshagiri</em></div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div></div></div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div><em>Thanks and Regards,</em></div>
<div><em>Asha Seshagiri</em></div></div>
</div>