Handle encryption API call order 06/83506/4
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 10 Aug 2016 08:44:44 +0000 (10:44 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 16 Aug 2016 13:34:10 +0000 (06:34 -0700)
commit49184d8a67021c68fb38bc6a14fc1862beacf696
tree4e7f311f22a64bb7c461cc7248b06ae34101eda5
parent264f9d1a369ba73eadce35c939ec667150990095
Handle encryption API call order

Encryption, decryption, seal & open API functions have to be called in specific
order. This commit introduces state change matrices that are used to verify the
correct call order.

Change-Id: I99029d55bb26af9ec34d7297548c331fbbc41522
src/encrypt.c
src/internal.h