Hi Asha,

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”.

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.

-Doug

--------------------
Douglas Mendizábal
IRC: redrobot
PGP Key: 245C 7B6F 70E9 D8F3 F5D5  0CC9 AD14 1F30 2D58 923C

On Mar 30, 2015, at 12:46 PM, Asha Seshagiri 
<[email protected]<mailto:[email protected]>> wrote:

Any help would be appreciated ?
Thanks in advance !

Thanks and Regards,
Asha Seshagiri

On Mon, Mar 30, 2015 at 12:45 PM, Asha Seshagiri 
<[email protected]<mailto:[email protected]>> wrote:
Hi All ,

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?
For ex :Consider the order request to create the secret :


POST v1/orders

Header: content-type=application/json
        X-Project-Id: {project_id}
{
  "type": "key",
  "meta": {
    "name": "secretname",
    "algorithm": "AES",
    "bit_length": 256,
    "mode": "cbc",
    "payload_content_type": "application/octet-stream"
  }
}

What does the mode  value "cbc " indicate ?
--
Thanks and Regards,
Asha Seshagiri



--
Thanks and Regards,
Asha Seshagiri

__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: [email protected]?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to