<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">Hi Asha,</div>
<div class=""><br class="">
</div>
<div class="">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 class=""><br class="">
</div>
<div class="">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 class=""><br class="">
</div>
<div class="">-Doug</div>
<br class="">
<div class="">--------------------<br class="">
Douglas Mendizábal<br class="">
IRC: redrobot<br class="">
PGP Key: 245C 7B6F 70E9 D8F3 F5D5 0CC9 AD14 1F30 2D58 923C </div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Mar 30, 2015, at 12:46 PM, Asha Seshagiri <<a href="mailto:asha.seshagiri@gmail.com" class="">asha.seshagiri@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Any help would be appreciated ?
<div class="">Thanks in advance !</div>
<div class=""><br class="">
</div>
<div class="">Thanks and Regards,</div>
<div class="">Asha Seshagiri</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Mon, Mar 30, 2015 at 12:45 PM, Asha Seshagiri <span dir="ltr" class="">
<<a href="mailto:asha.seshagiri@gmail.com" target="_blank" class="">asha.seshagiri@gmail.com</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" class="">Hi All ,
<div class=""><br class="">
</div>
<div class="">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 class="">For ex :Consider the order request to create the secret :</div>
<div class=""><br class="">
</div>
<div class="">
<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)" class="">POST v1/orders
Header<span style="color:rgb(167,29,93)" class="">:</span> content<span style="color:rgb(167,29,93)" class="">-</span>type<span style="color:rgb(167,29,93)" class="">=</span>application/json
X<span style="color:rgb(167,29,93)" class="">-</span>Project<span style="color:rgb(167,29,93)" class="">-</span>Id<span style="color:rgb(167,29,93)" class="">:</span> {project_id}
{
<span style="color:rgb(24,54,145)" class=""><span class="">"</span>type<span class="">"</span></span><span style="color:rgb(167,29,93)" class="">:</span> <span style="color:rgb(24,54,145)" class=""><span class="">"</span>key<span class="">"</span></span>,
<span style="color:rgb(24,54,145)" class=""><span class="">"</span>meta<span class="">"</span></span><span style="color:rgb(167,29,93)" class="">:</span> {
<span style="color:rgb(24,54,145)" class=""><span class="">"</span>name<span class="">"</span></span><span style="color:rgb(167,29,93)" class="">:</span> <span style="color:rgb(24,54,145)" class=""><span class="">"</span>secretname<span class="">"</span></span>,
<span style="color:rgb(24,54,145)" class=""><span class="">"</span>algorithm<span class="">"</span></span><span style="color:rgb(167,29,93)" class="">:</span> <span style="color:rgb(24,54,145)" class=""><span class="">"</span>AES<span class="">"</span></span>,
<span style="color:rgb(24,54,145)" class=""><span class="">"</span>bit_length<span class="">"</span></span><span style="color:rgb(167,29,93)" class="">:</span> <span style="color:rgb(0,134,179)" class="">256</span>,
<span style="color:rgb(24,54,145)" class=""><span class="">"</span>mode<span class="">"</span></span><span style="color:rgb(167,29,93)" class="">:</span> <span style="color:rgb(24,54,145)" class=""><span class="">"</span>cbc<span class="">"</span></span>,<b class="">
</b><span style="color:rgb(24,54,145)" class=""><span class="">"</span>payload_content_type<span class="">"</span></span><span style="color:rgb(167,29,93)" class="">:</span> <span style="color:rgb(24,54,145)" class=""><span class="">"</span>application/octet-stream<span class="">"</span></span>
}
}</pre>
</div>
<div class=""><br class="">
</div>
<div class="">What does the mode value "cbc " indicate ?<span class="HOEnZb"><font color="#888888" class=""><br class="">
-- <br class="">
<div class="">
<div class=""><em class="">Thanks and Regards,</em></div>
<div class=""><em class="">Asha Seshagiri</em></div>
</div>
</font></span></div>
</div>
</blockquote>
</div>
<br class="">
<br clear="all" class="">
<div class=""><br class="">
</div>
-- <br class="">
<div class="gmail_signature">
<div class=""><em class="">Thanks and Regards,</em></div>
<div class=""><em class="">Asha Seshagiri</em></div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</body>
</html>