I can't seem to find an answer to this question. There is the Linux Crypto API, and the OpenBSD Crypto Framework (OCF). I can't find anyting on Google as to whether Ubuntu supports OCF or if the Ubuntu kernel uses the Linux Crypto API.