Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/B-Con/crypto-algorithms
/ functions
Functions
81 in github.com/B-Con/crypto-algorithms
⨍
Functions
81
◇
Types & classes
0
↓ 34 callers
Function
AddRoundKey
Performs the AddRoundKey step. Each round has its own pre-generated 16-byte key in the form of 4 integers (the "w" array). Each integer is XOR'd by on
aes.c:592
↓ 16 callers
Function
ShiftRows
Performs the ShiftRows step. All rows are shifted cylindrically to the left.
aes.c:686
↓ 16 callers
Function
SubBytes
Performs the SubBytes step. All bytes in the state are substituted with a pre-calculated value from a lookup table.
aes.c:641
↓ 14 callers
Function
InvShiftRows
All rows are shifted cylindrically to the right.
aes.c:712
↓ 14 callers
Function
InvSubBytes
aes.c:661
↓ 13 callers
Function
InvMixColumns
aes.c:835
↓ 13 callers
Function
MixColumns
Performs the MixColums step. The state is multiplied by itself using matrix multiplication in a Galios Field 2^8. All multiplication is pre-computed i
aes.c:745
↓ 12 callers
Function
revchar
FUNCTION DEFINITIONS ***********************/
base64.c:21
↓ 10 callers
Function
des_key_setup
des.c:193
↓ 7 callers
Function
des_crypt
des.c:233
↓ 5 callers
Function
aes_encrypt
aes.c:929
↓ 5 callers
Function
aes_key_setup
Performs the action of generating the keys that will be used in every round of encryption. "key" is the user-supplied input key, "w" is the output key
aes.c:555
↓ 5 callers
Function
blowfish_encrypt
FUNCTION DEFINITIONS ***********************/
blowfish.c:167
↓ 5 callers
Function
xor_buf
FUNCTION DEFINITIONS ***********************/ XORs the in and out buffers, storing the result in out. Length is in bytes.
aes.c:223
↓ 4 callers
Function
aes_encrypt_ctr
Performs the encryption in-place, the input and output buffers may be the same. Input may be an arbitrary length (in bytes).
aes.c:322
↓ 4 callers
Function
md2_update
md2.c:77
↓ 4 callers
Function
md5_update
md5.c:134
↓ 4 callers
Function
three_des_crypt
des.c:264
↓ 4 callers
Function
three_des_key_setup
des.c:250
↓ 3 callers
Function
aes_decrypt_ccm
plaintext_len = ciphertext_len - mac_len Needs a flag for whether the MAC matches.
aes.c:418
↓ 3 callers
Function
aes_decrypt_ctr
aes.c:345
↓ 3 callers
Function
aes_encrypt_ccm
* AES - CCM *******************/ out_len = payload_len + assoc_len
aes.c:355
↓ 3 callers
Function
blowfish_decrypt
blowfish.c:203
↓ 3 callers
Function
blowfish_key_setup
blowfish.c:239
↓ 3 callers
Function
increment_iv
* AES - CTR *******************/
aes.c:308
↓ 3 callers
Function
md2_final
md2.c:91
↓ 3 callers
Function
md2_init
md2.c:66
↓ 3 callers
Function
md2_transform
FUNCTION DEFINITIONS ***********************/
md2.c:40
↓ 3 callers
Function
md5_final
md5.c:149
↓ 3 callers
Function
md5_init
md5.c:124
↓ 3 callers
Function
md5_transform
FUNCTION DEFINITIONS ***********************/
md5.c:35
↓ 3 callers
Function
sha1_final
sha1.c:108
↓ 3 callers
Function
sha1_init
sha1.c:78
↓ 3 callers
Function
sha1_transform
FUNCTION DEFINITIONS ***********************/
sha1.c:21
↓ 3 callers
Function
sha1_update
sha1.c:93
↓ 3 callers
Function
sha256_final
sha256.c:114
↓ 3 callers
Function
sha256_init
sha256.c:85
↓ 3 callers
Function
sha256_transform
FUNCTION DEFINITIONS ***********************/
sha256.c:44
↓ 3 callers
Function
sha256_update
sha256.c:99
↓ 2 callers
Function
SubWord
Substitutes a word using the AES S-Box.
aes.c:541
↓ 2 callers
Function
aes_decrypt
aes.c:1002
↓ 2 callers
Function
aes_encrypt_cbc_mac
aes.c:257
↓ 2 callers
Function
base64_decode
base64.c:88
↓ 2 callers
Function
base64_encode
base64.c:37
↓ 2 callers
Function
ccm_format_assoc_data
aes.c:506
↓ 2 callers
Function
ccm_format_payload_data
aes.c:520
↓ 2 callers
Function
ccm_prepare_first_ctr_blk
Creates the first counter block. First byte is flags, then the nonce, then the incremented part.
aes.c:486
↓ 2 callers
Function
ccm_prepare_first_format_blk
aes.c:493
↓ 2 callers
Function
f
des.c:135
↓ 2 callers
Function
rot13
FUNCTION DEFINITIONS ***********************/
rot-13.c:17
↓ 1 callers
Function
IP
FUNCTION DEFINITIONS ***********************/ Initial (Inv)Permutation step
des.c:79
↓ 1 callers
Function
InvIP
des.c:100
↓ 1 callers
Function
aes_cbc_test
aes_test.c:73
↓ 1 callers
Function
aes_ccm_test
aes_test.c:165
↓ 1 callers
Function
aes_ctr_test
aes_test.c:121
↓ 1 callers
Function
aes_decrypt_cbc
aes.c:282
↓ 1 callers
Function
aes_ecb_test
aes_test.c:29
↓ 1 callers
Function
aes_encrypt_cbc
* AES - CBC *******************/
aes.c:234
↓ 1 callers
Function
aes_test
aes_test.c:268
↓ 1 callers
Function
arcfour_generate_stream
This does not hold state between calls. It always generates the stream starting from the first output byte.
arcfour.c:33
↓ 1 callers
Function
arcfour_key_setup
FUNCTION DEFINITIONS ***********************/
arcfour.c:16
↓ 1 callers
Function
base64_test
FUNCTION DEFINITIONS ***********************/
base64_test.c:20
↓ 1 callers
Function
blowfish_test
FUNCTION DEFINITIONS ***********************/
blowfish_test.c:20
↓ 1 callers
Function
des_test
FUNCTION DEFINITIONS ***********************/
des_test.c:20
↓ 1 callers
Function
md2_test
FUNCTION DEFINITIONS ***********************/
md2_test.c:21
↓ 1 callers
Function
md5_test
FUNCTION DEFINITIONS ***********************/
md5_test.c:21
↓ 1 callers
Function
rc4_test
FUNCTION DEFINITIONS ***********************/
arcfour_test.c:20
↓ 1 callers
Function
rot13_test
FUNCTION DEFINITIONS ***********************/
rot-13_test.c:20
↓ 1 callers
Function
sha1_test
FUNCTION DEFINITIONS ***********************/
sha1_test.c:21
↓ 1 callers
Function
sha256_test
FUNCTION DEFINITIONS ***********************/
sha256_test.c:21
Function
main
des_test.c:78
Function
main
sha256_test.c:56
Function
main
arcfour_test.c:42
Function
main
sha1_test.c:53
Function
main
md2_test.c:55
Function
main
base64_test.c:49
Function
main
md5_test.c:55
Function
main
aes_test.c:280
Function
main
rot-13_test.c:39
Function
main
blowfish_test.c:63
Function
print_hex
FUNCTION DEFINITIONS ***********************/
aes_test.c:21