Register crypto modules. More...
Go to the source code of this file.
Data Structures | |
struct | CryptModuleSpecs |
Functions | |
void | crypto_module_register (const struct CryptModuleSpecs *specs) |
Register a new crypto module. | |
const struct CryptModuleSpecs * | crypto_module_lookup (int identifier) |
Lookup a crypto module by name. | |
Register crypto modules.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file crypt_mod.h.
void crypto_module_register | ( | const struct CryptModuleSpecs * | specs | ) |
Register a new crypto module.
specs | API functions |
Definition at line 54 of file crypt_mod.c.
const struct CryptModuleSpecs * crypto_module_lookup | ( | int | identifier | ) |
Lookup a crypto module by name.
identifier | Name, e.g. APPLICATION_PGP |
ptr | Crypto module |
This function is usually used via the CRYPT_MOD_CALL[_CHECK] macros.
Definition at line 68 of file crypt_mod.c.