Library code stub
authorMateusz Kulikowski <m.kulikowski@samsung.com>
Thu, 31 Mar 2016 06:25:16 +0000 (08:25 +0200)
committerMateusz Kulikowski <m.kulikowski@samsung.com>
Thu, 7 Apr 2016 09:23:30 +0000 (11:23 +0200)
commit35ca7af835518ff2d0184e2dc7aa7f24e5120d43
tree30a47ba8b600fbcf303fe1736e7d1e903b7eee16
parent95cc08fbfd23b26484fb073761c84f32ba4fe95b
Library code stub

- Basic symmetric key handling
- Simple API
- crypto.c: use OPENSSL_alloc/free

Addons:
- (simple) top-level makefile, makefiles update
- Basic error codes
- Stubs for all crypto-api functions (all examples are linked properly)
- dump_hex() for examples
- Moved API headers to api/ top-level-directory
- crypto.c: init, rand_bytes, get_output_length
- ctx_p.h: stub of context
- digest.c: message digest support
- key.c: key sanity check, key import (untested), free
- simple.c: implementation of simple api (only digest tested)
- drop types_p.h

Signed-off-by: Mateusz Kulikowski <m.kulikowski@samsung.com>
Change-Id: I1438e8466934443afe55bb05eddd7580b9798a6a
31 files changed:
.gitignore
Makefile [new file with mode: 0644]
api/crypto/crypto.h [new file with mode: 0644]
api/crypto/digest.h [new file with mode: 0644]
api/crypto/encrypt.h [new file with mode: 0644]
api/crypto/error.h [new file with mode: 0644]
api/crypto/key.h [new file with mode: 0644]
api/crypto/sign.h [new file with mode: 0644]
api/crypto/simple.h [new file with mode: 0644]
api/crypto/types.h [new file with mode: 0644]
examples/Makefile
examples/misc.c [new file with mode: 0644]
examples/test.c [new file with mode: 0644]
readme.txt
src/Makefile [new file with mode: 0644]
src/crypto.c [new file with mode: 0644]
src/ctx_p.h [new file with mode: 0644]
src/digest.c [new file with mode: 0644]
src/encrypt.c [new file with mode: 0644]
src/include/crypto/crypto.h [deleted file]
src/include/crypto/digest.h [deleted file]
src/include/crypto/encrypt.h [deleted file]
src/include/crypto/error.h [deleted file]
src/include/crypto/key.h [deleted file]
src/include/crypto/sign.h [deleted file]
src/include/crypto/simple.h [deleted file]
src/include/crypto/types.h [deleted file]
src/key.c [new file with mode: 0644]
src/key_p.h [new file with mode: 0644]
src/sign.c [new file with mode: 0644]
src/simple.c [new file with mode: 0644]