libbrillo: Add SecureBlob constructor from Blob

Add an explicit constructor that allows to convert Blob
into SecureBlob.

This should be useful during the transition period while
moving away from SecureBlob - if some code has mixed use
of Blob's and SecureBlob's, then the new constructor will
allow to avoid typing long iterator-based conversions.

BUG=chromium:728047
TEST=new unit test (SecureBlobTest.BlobConstructorTest)

Change-Id: Icad5f0817174f9ec671580dce402a7c361113b6a
Reviewed-on: https://chromium-review.googlesource.com/1076631
Commit-Ready: Maksim Ivanov <emaxx@chromium.org>
Tested-by: Maksim Ivanov <emaxx@chromium.org>
Reviewed-by: Dan Erat <derat@chromium.org>
Reviewed-by: Jorge Lucangeli Obes <jorgelo@chromium.org>
3 files changed