7.4 KiB

Functions

You can find documentation for every public function of WHY2 below.

Core

Crypto

Function Description
why2_sum_segment Calculate SUM++ for input; Used for padding seed
why2_random Write crypto-secure random number into dest
why2_seed_random Seed why2_seeded_random output
why2_seeded_random Generate random number based on seed passed in why2_seed_random

Decrypter

Function Description
why2_decrypt_text Text from will be decrypted with key and returned

Encrypter

Function Description
why2_encrypt_text Text from will be encrypted with key and returned

Flags

Getters

Function Description
why2_get_encryption_separator This functions doesn't have any description.
why2_get_key_length This functions doesn't have any description.
why2_get_default_flags This generates why2_input_flags with default values
why2_get_flags Returns used flags
why2_no_output Same as why2_get_default_flags() but for why2_output_flags
why2_get_encryption_operation Returns functions which is used for encryption & decryption
why2_get_flags_changed This functions doesn't have any description.
why2_get_padding_changed This functions doesn't have any description.
why2_get_memory_identifier Returns string used in linked list (in memory.c) for identifying nodes when running garbage collector
why2_get_default_memory_identifier This functions doesn't have any description.

Setters

Function Description
why2_set_encryption_separator This functions doesn't have any description.
why2_set_key_length This functions doesn't have any description.
why2_set_flags This functions doesn't have any description.
why2_set_encryption_operation This functions doesn't have any description.
why2_set_memory_identifier This functions doesn't have any description.
why2_set_padding Set padding rate without rewriting input flags
why2_reset_memory_identifier This functions doesn't have any description.

Linked-list

Function Description
why2_list_push Push element to list back
why2_list_push_at Push element to index index of list
why2_list_remove Remove element
why2_list_remove_at Remove element with index index
why2_list_remove_back Remove last element
why2_list_find Find element in list
why2_list_get_size Get size
why2_list_reverse Reverses list

Memory

Function Description
why2_malloc This functions doesn't have any description.
why2_calloc This functions doesn't have any description.
why2_realloc This doesn't preserve content of pointer!
why2_recalloc Same as why2_realloc but fills the pointer with null-terms
why2_strdup This functions doesn't have any description.
why2_fopen This functions doesn't have any description.
why2_fdopen This functions doesn't have any description.
why2_opendir This functions doesn't have any description.
why2_deallocate This functions doesn't have any description.
why2_clean_memory identifier specifies which nodes to deallocate | this is basically garbage collector | pass why2_get_default_memory_identifier() for deallocating everything

Logger

Chat