Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wrote a custom algorithm using the kernel crypto API (by modifying the existing SHA1 and DES algorithms), compiled and added the .KO object to kernel.

How can I use my algorithm in ipsec and other app that use cryptographic communication?

share|improve this question

migrated from serverfault.com Aug 17 '11 at 8:41

This question came from our site for system and network administrators.

Each application has its own way of specifying which algorithms to use. So… which IPsec stack are you using? – Gilles Aug 17 '11 at 9:29
i use KLIPS stack. – haw3d Aug 19 '11 at 12:21
First Law of Cryptography: Thou shall not roll your own crypto. Sorry, someone had to say it ;) – Marcin Oct 12 '12 at 12:47

Do not use homebrewed crypto for anything remotely serious. The risk is just too great.

share|improve this answer

Strongswan is generally considered to be the IPSec suite of choice (for VPNs) on Linux. Is that what you are looking for?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.