summaryrefslogtreecommitdiff
path: root/src/internal.h
diff options
context:
space:
mode:
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>2016-11-07 09:21:36 +0100
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>2016-11-07 01:16:17 -0800
commit52d9fac96f1db8eb862f2622bb2abfb01b92312b (patch)
tree3386e00c9d987ce24bbda289f99d645908e5fc5b /src/internal.h
parenta2b610b035f732233e5fbdc8ed55ea134d9f007c (diff)
downloadyaca-52d9fac96f1db8eb862f2622bb2abfb01b92312b.tar.gz
yaca-52d9fac96f1db8eb862f2622bb2abfb01b92312b.tar.bz2
yaca-52d9fac96f1db8eb862f2622bb2abfb01b92312b.zip
Tab policy [IDT_M_TAB] have changed from optional to mandatory and whole code has to be adjusted. doc/coding_rules.txt updated. File access rights fixed Change-Id: I7b855be9560e9b4f134294a1f97a70a50af578c1
Diffstat (limited to 'src/internal.h')
-rw-r--r--src/internal.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/internal.h b/src/internal.h
index 4bae2aa..ac8062b 100644
--- a/src/internal.h
+++ b/src/internal.h
@@ -85,9 +85,9 @@ struct yaca_context_s {
void (*context_destroy)(const yaca_context_h ctx);
int (*get_output_length)(const yaca_context_h ctx, size_t input_len, size_t *output_len);
int (*set_property)(yaca_context_h ctx, yaca_property_e property,
- const void *value, size_t value_len);
+ const void *value, size_t value_len);
int (*get_property)(const yaca_context_h ctx, yaca_property_e property,
- void **value, size_t *value_len);
+ void **value, size_t *value_len);
};
struct yaca_backup_context_s {
@@ -172,30 +172,30 @@ void destroy_encrypt_context(const yaca_context_h ctx);
int get_encrypt_output_length(const yaca_context_h ctx, size_t input_len, size_t *output_len);
int set_encrypt_property(yaca_context_h ctx, yaca_property_e property,
- const void *value, size_t value_len);
+ const void *value, size_t value_len);
int get_encrypt_property(const yaca_context_h ctx, yaca_property_e property,
- void **value, size_t *value_len);
+ void **value, size_t *value_len);
int encrypt_get_algorithm(yaca_encrypt_algorithm_e algo,
- yaca_block_cipher_mode_e bcm,
- size_t key_bit_len,
- const EVP_CIPHER **cipher);
+ yaca_block_cipher_mode_e bcm,
+ size_t key_bit_len,
+ const EVP_CIPHER **cipher);
int encrypt_initialize(yaca_context_h *ctx,
- const EVP_CIPHER *cipher,
- const yaca_key_h sym_key,
- const yaca_key_h iv,
- enum encrypt_op_type_e op_type);
+ const EVP_CIPHER *cipher,
+ const yaca_key_h sym_key,
+ const yaca_key_h iv,
+ enum encrypt_op_type_e op_type);
int encrypt_update(yaca_context_h ctx,
- const unsigned char *input, size_t input_len,
- unsigned char *output, size_t *output_len,
- enum encrypt_op_type_e op_type);
+ const unsigned char *input, size_t input_len,
+ unsigned char *output, size_t *output_len,
+ enum encrypt_op_type_e op_type);
int encrypt_finalize(yaca_context_h ctx,
- unsigned char *output, size_t *output_len,
- enum encrypt_op_type_e op_type);
+ unsigned char *output, size_t *output_len,
+ enum encrypt_op_type_e op_type);
struct yaca_key_simple_s *key_get_simple(const yaca_key_h key);
struct yaca_key_evp_s *key_get_evp(const yaca_key_h key);