summaryrefslogtreecommitdiff
path: root/src/util/crypto
AgeCommit message (Collapse)AuthorFilesLines
2012-09-07Out-of-bounds read fix in hmac-sha-1Ondrej Kos1-1/+3
2012-06-26libcrypto fully implementedGeorge McCollister4-9/+442
Implemented working versions of the following functions for libcrypto: sss_base64_encode sss_base64_decode sss_hmac_sha1 sss_password_encrypt sss_password_decrypt test_encrypt_decrypt now expects EOK from libcrypto. test_hmac_sha1 now expects EOK from libcrypto. Added test_base64_encode to test base64 encoding implementation. Added test_base64_decode to test base64 decoding implementation. Signed-off-by: George McCollister <George.McCollister@gmail.com>
2012-04-24UTIL: Add HMAC-SHA-1 functionJan Cholasta3-0/+127
2012-02-07UTIL: Provide base64 encoding and decoding functionsJan Cholasta4-36/+139
2011-11-22Cleanup: Remove unused parametersJakub Hrozek1-4/+3
2011-09-28Multiline macro cleanupJakub Hrozek1-1/+1
This is mostly a cosmetic patch. The purpose of wrapping a multi-line macro in a do { } while(0) is to make the macro usable as a regular statement, not a compound statement. When the while(0) is terminated with a semicolon, the do { } while(0); block becomes a compound statement again.
2011-05-23Set _GNU_SOURCE globallySumit Bose3-4/+4
2011-01-21Fix uninitialized value errorSumit Bose1-1/+1
2011-01-20NSS obfuscation code cleanupJakub Hrozek1-38/+97
https://fedorahosted.org/sssd/ticket/752
2010-09-15Fix parameter order when initializing decryptionJakub Hrozek1-1/+1
2010-09-08Password obfuscation utility functionsJakub Hrozek3-0/+510
Adds two utility functions to obfuscate a password and inverse to extract the cleartext password back. So far, only NSS-based implementation is provided.
2010-09-08Move crypto functions into its own subdirJakub Hrozek5-0/+872
A refactoring patch that creates a common util/crypto subdir with per-implementation subdirectories for each underlying crypto library supported by SSSD.