Fix bits/bytes error in TEE_InitRefAttribute 67/170267/2
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 16 Feb 2018 11:09:52 +0000 (12:09 +0100)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 2 Mar 2018 13:36:08 +0000 (13:36 +0000)
commit7de40f083b3732940c63f0e07cb8368932b79b39
treef5e5643de5cc76a8970aac9758139e5f87fab62a
parentaf818e81ce13b4e80f51c8510d5ef4108ce7986d
Fix bits/bytes error in TEE_InitRefAttribute

According to TEE spec TEE_InitRefAttribute() should treat the length argument
as a length in bytes not bits.

This commit adjusts all TEE_InitRefAttribute() invocations and
TEE_Attribute::content.ref.length referencese to use length in bytes.

Change-Id: I84f7cce90987c69453b2dda5071dfd9c1ee3f3b4
ssflib/src/ssf_storage.cpp