Skip to content

Commit

Permalink
Worked on Python bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Jan 14, 2024
1 parent 805b5f0 commit d418bfa
Show file tree
Hide file tree
Showing 10 changed files with 788 additions and 37 deletions.
6 changes: 4 additions & 2 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
To do:
* RC4 add libfcrypto_rc4_crypt_cbc functions
* Add support for cast5
* Add support for cast6
* Add support for blowfish
* Add support for Anubis
* Add support for reversed Serpent
* Add support for Twofish
* Blowfish add support for CFB and OFB
* DES3 add support for CBC, CFB and OFB
* RC4 add libfcrypto_rc4_crypt_cbc functions
* Serpent add support for CFB and OFB

20170901
* see `git log' for more recent change log
Expand Down
18 changes: 18 additions & 0 deletions include/libfcrypto.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,12 @@ int libfcrypto_des3_context_set_key(
libfcrypto_error_t **error );

/* De- or encrypts a buffer of data using DES3
*
* This function is deprecated use libfcrypto_des3_crypt_ecb instead
*
* Returns 1 if successful or -1 on error
*/
LIBFCRYPTO_DEPRECATED \
LIBFCRYPTO_EXTERN \
int libfcrypto_des3_crypt(
libfcrypto_des3_context_t *context,
Expand All @@ -195,6 +199,20 @@ int libfcrypto_des3_crypt(
size_t output_data_size,
libfcrypto_error_t **error );

/* De- or encrypts a block of data using DES3-ECB (Electronic CodeBook)
* The size must be a multitude of the DES3 block size (8 byte)
* Returns 1 if successful or -1 on error
*/
LIBFCRYPTO_EXTERN \
int libfcrypto_des3_crypt_ecb(
libfcrypto_des3_context_t *context,
int mode,
const uint8_t *input_data,
size_t input_data_size,
uint8_t *output_data,
size_t output_data_size,
libfcrypto_error_t **error );

/* -------------------------------------------------------------------------
* RC4 context functions
* ------------------------------------------------------------------------- */
Expand Down
Loading

0 comments on commit d418bfa

Please sign in to comment.