user3608595
user3608595

Reputation: 41

How to add an encryption algorithm in the FreeBSD Kernel?

I am trying to add my own cipher to the FreeBSD kernel. I searched online but couldn't really find help. I am wondering which files should i modify to link my new cipher and where to put my source code. Thanks

Upvotes: 0

Views: 233

Answers (2)

Roland Smith
Roland Smith

Reputation: 43495

See crypto(9). Most of the algorithms are found in /usr/src/sys/crypto/. Some algorithms and the cryptograhic framework code are in /usr/src/sys/opencrypto/.

Upvotes: 0

Edward Tomasz Napierala
Edward Tomasz Napierala

Reputation: 1836

Take a look at sys/opencrypto/, in particular sys/opencrypto/xform.c, to see how various algorithms are integrated with the rest of the kernel.

Upvotes: 1

Related Questions