From: Lukasz Pawelczyk Date: Tue, 5 Apr 2016 10:35:39 +0000 (+0200) Subject: Re-indent the definitions after adding the API prefix. X-Git-Tag: accepted/tizen/common/20160810.161523~247 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc2b9342f829f06dfb3f9ecfa527d45e5f1a8735;p=platform%2Fcore%2Fsecurity%2Fyaca.git Re-indent the definitions after adding the API prefix. Change-Id: Ic887def78ea211b6fbf0e1670e9b4c623884e71a --- diff --git a/src/crypto.c b/src/crypto.c index 74193da..89e289a 100644 --- a/src/crypto.c +++ b/src/crypto.c @@ -83,13 +83,13 @@ API int owl_rand_bytes(char *data, size_t data_len) } API int owl_ctx_set_param(owl_ctx_h ctx, owl_ex_param_e param, - const void *value, size_t value_len) + const void *value, size_t value_len) { return OWL_ERROR_NOT_IMPLEMENTED; } API int owl_ctx_get_param(const owl_ctx_h ctx, owl_ex_param_e param, - void **value, size_t *value_len) + void **value, size_t *value_len) { return OWL_ERROR_NOT_IMPLEMENTED; } @@ -109,8 +109,8 @@ API int owl_get_output_length(const owl_ctx_h ctx, size_t input_len) } API int owl_get_iv_length(owl_enc_algo_e algo, - owl_block_cipher_mode_e bcm, - size_t key_len) + owl_block_cipher_mode_e bcm, + size_t key_len) { return OWL_ERROR_NOT_IMPLEMENTED; } diff --git a/src/encrypt.c b/src/encrypt.c index 88d140f..a7aadbc 100644 --- a/src/encrypt.c +++ b/src/encrypt.c @@ -27,103 +27,103 @@ #include API int owl_encrypt_init(owl_ctx_h *ctx, - owl_enc_algo_e algo, - owl_block_cipher_mode_e bcm, - const owl_key_h sym_key, - const owl_key_h iv) + owl_enc_algo_e algo, + owl_block_cipher_mode_e bcm, + const owl_key_h sym_key, + const owl_key_h iv) { return OWL_ERROR_NOT_IMPLEMENTED; } API int owl_encrypt_update(owl_ctx_h ctx, - const char *plain, - size_t plain_len, - char *cipher, - size_t *cipher_len) + const char *plain, + size_t plain_len, + char *cipher, + size_t *cipher_len) { return OWL_ERROR_NOT_IMPLEMENTED; } API int owl_encrypt_final(owl_ctx_h ctx, - char *cipher, - size_t *cipher_len) + char *cipher, + size_t *cipher_len) { return OWL_ERROR_NOT_IMPLEMENTED; } API int owl_decrypt_init(owl_ctx_h *ctx, - owl_enc_algo_e algo, - owl_block_cipher_mode_e bcm, - const owl_key_h sym_key, - const owl_key_h iv) + owl_enc_algo_e algo, + owl_block_cipher_mode_e bcm, + const owl_key_h sym_key, + const owl_key_h iv) { return OWL_ERROR_NOT_IMPLEMENTED; } API int owl_decrypt_update(owl_ctx_h ctx, - const char *cipher, - size_t cipher_len, - char *plain, - size_t *plain_len) + const char *cipher, + size_t cipher_len, + char *plain, + size_t *plain_len) { return OWL_ERROR_NOT_IMPLEMENTED; } API int owl_decrypt_final(owl_ctx_h ctx, - char *plain, - size_t *plain_len) + char *plain, + size_t *plain_len) { return OWL_ERROR_NOT_IMPLEMENTED; } API int owl_seal_init(owl_ctx_h *ctx, - const owl_key_h pub_key, - owl_enc_algo_e algo, - owl_block_cipher_mode_e bcm, - owl_key_h *sym_key, - owl_key_h *iv) + const owl_key_h pub_key, + owl_enc_algo_e algo, + owl_block_cipher_mode_e bcm, + owl_key_h *sym_key, + owl_key_h *iv) { return OWL_ERROR_NOT_IMPLEMENTED; } API int owl_seal_update(owl_ctx_h ctx, - const char *plain, - size_t plain_len, - char *cipher, - size_t *cipher_len) + const char *plain, + size_t plain_len, + char *cipher, + size_t *cipher_len) { return OWL_ERROR_NOT_IMPLEMENTED; } API int owl_seal_final(owl_ctx_h ctx, - char *cipher, - size_t *cipher_len) + char *cipher, + size_t *cipher_len) { return OWL_ERROR_NOT_IMPLEMENTED; } API int owl_open_init(owl_ctx_h *ctx, - const owl_key_h prv_key, - owl_enc_algo_e algo, - owl_block_cipher_mode_e bcm, - const owl_key_h sym_key, - const owl_key_h iv) + const owl_key_h prv_key, + owl_enc_algo_e algo, + owl_block_cipher_mode_e bcm, + const owl_key_h sym_key, + const owl_key_h iv) { return OWL_ERROR_NOT_IMPLEMENTED; } API int owl_open_update(owl_ctx_h ctx, - const char *cipher, - size_t cipher_len, - char *plain, - size_t *plain_len) + const char *cipher, + size_t cipher_len, + char *plain, + size_t *plain_len) { return OWL_ERROR_NOT_IMPLEMENTED; } API int owl_open_final(owl_ctx_h ctx, - char *plain, - size_t *plain_len) + char *plain, + size_t *plain_len) { return OWL_ERROR_NOT_IMPLEMENTED; } diff --git a/src/key.c b/src/key.c index 080c427..a448da8 100644 --- a/src/key.c +++ b/src/key.c @@ -46,10 +46,10 @@ API int owl_key_get_length(const owl_key_h key) } API int owl_key_import(owl_key_h *key, - owl_key_fmt_e key_fmt, - owl_key_type_e key_type, - const char *data, - size_t data_len) + owl_key_fmt_e key_fmt, + owl_key_type_e key_type, + const char *data, + size_t data_len) { owl_key_h nk = NULL; @@ -79,9 +79,9 @@ API int owl_key_import(owl_key_h *key, } API int owl_key_export(const owl_key_h key, - owl_key_fmt_e key_fmt, - char **data, - size_t *data_len) + owl_key_fmt_e key_fmt, + char **data, + size_t *data_len) { size_t byte_len; @@ -105,8 +105,8 @@ API int owl_key_export(const owl_key_h key, } API int owl_key_gen(owl_key_h *sym_key, - owl_key_type_e key_type, - size_t key_len) + owl_key_type_e key_type, + size_t key_len) { int ret; @@ -132,9 +132,9 @@ API int owl_key_gen(owl_key_h *sym_key, } API int owl_key_gen_pair(owl_key_h *prv_key, - owl_key_h *pub_key, - owl_key_type_e key_type, - size_t key_len) + owl_key_h *pub_key, + owl_key_type_e key_type, + size_t key_len) { return OWL_ERROR_NOT_IMPLEMENTED; } @@ -148,28 +148,28 @@ API void owl_key_free(owl_key_h key) } API int owl_key_derive_dh(const owl_key_h prv_key, - const owl_key_h pub_key, - owl_key_h *sym_key) + const owl_key_h pub_key, + owl_key_h *sym_key) { return OWL_ERROR_NOT_IMPLEMENTED; } API int owl_key_derive_kea(const owl_key_h prv_key, - const owl_key_h pub_key, - const owl_key_h prv_key_auth, - const owl_key_h pub_key_auth, - owl_key_h *sym_key) + const owl_key_h pub_key, + const owl_key_h prv_key_auth, + const owl_key_h pub_key_auth, + owl_key_h *sym_key) { return OWL_ERROR_NOT_IMPLEMENTED; } API int owl_key_derive_pbkdf2(const char *password, - const char *salt, - size_t salt_len, - int iter, - owl_digest_algo_e algo, - owl_key_len_e key_len, - owl_key_h *key) + const char *salt, + size_t salt_len, + int iter, + owl_digest_algo_e algo, + owl_key_len_e key_len, + owl_key_h *key) { return OWL_ERROR_NOT_IMPLEMENTED; } diff --git a/src/sign.c b/src/sign.c index 8c82103..1e1e1c9 100644 --- a/src/sign.c +++ b/src/sign.c @@ -27,43 +27,43 @@ #include API int owl_sign_init(owl_ctx_h *ctx, - owl_digest_algo_e algo, - const owl_key_h key) + owl_digest_algo_e algo, + const owl_key_h key) { return OWL_ERROR_NOT_IMPLEMENTED; } API int owl_sign_update(owl_ctx_h ctx, - const char *data, - size_t data_len) + const char *data, + size_t data_len) { return OWL_ERROR_NOT_IMPLEMENTED; } API int owl_sign_final(owl_ctx_h ctx, - char *mac, - size_t *mac_len) + char *mac, + size_t *mac_len) { return OWL_ERROR_NOT_IMPLEMENTED; } API int owl_verify_init(owl_ctx_h *ctx, - owl_digest_algo_e algo, - const owl_key_h key) + owl_digest_algo_e algo, + const owl_key_h key) { return OWL_ERROR_NOT_IMPLEMENTED; } API int owl_verify_update(owl_ctx_h ctx, - const char *data, - size_t data_len) + const char *data, + size_t data_len) { return OWL_ERROR_NOT_IMPLEMENTED; } API int owl_verify_final(owl_ctx_h ctx, - const char *mac, - size_t mac_len) + const char *mac, + size_t mac_len) { return OWL_ERROR_NOT_IMPLEMENTED; } diff --git a/src/simple.c b/src/simple.c index 250c5b9..03874e3 100644 --- a/src/simple.c +++ b/src/simple.c @@ -31,10 +31,10 @@ #include API int owl_digest_calc(owl_digest_algo_e algo, - const char *data, - size_t data_len, - char **digest, - size_t *digest_len) + const char *data, + size_t data_len, + char **digest, + size_t *digest_len) { owl_ctx_h ctx; int ret; @@ -79,13 +79,13 @@ err: } API int owl_encrypt(owl_enc_algo_e algo, - owl_block_cipher_mode_e bcm, - const owl_key_h sym_key, - const owl_key_h iv, - const char *plain, - size_t plain_len, - char **cipher, - size_t *cipher_len) + owl_block_cipher_mode_e bcm, + const owl_key_h sym_key, + const owl_key_h iv, + const char *plain, + size_t plain_len, + char **cipher, + size_t *cipher_len) { owl_ctx_h ctx; int ret; @@ -141,13 +141,13 @@ err: } API int owl_decrypt(owl_enc_algo_e algo, - owl_block_cipher_mode_e bcm, - const owl_key_h sym_key, - const owl_key_h iv, - const char *cipher, - size_t cipher_len, - char **plain, - size_t *plain_len) + owl_block_cipher_mode_e bcm, + const owl_key_h sym_key, + const owl_key_h iv, + const char *cipher, + size_t cipher_len, + char **plain, + size_t *plain_len) { owl_ctx_h ctx; int ret;