/* Public key algorithm internals * * See Documentation/crypto/asymmetric-keys.txt * * Copyright (C) 2012 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public Licence * as published by the Free Software Foundation; either version * 2 of the Licence, or (at your option) any later version. */#include <crypto/public_key.h>externstructasymmetric_key_subtypepublic_key_subtype;/* * Public key algorithm definition. */structpublic_key_algorithm{constchar*name;u8n_pub_mpi;/* Number of MPIs in public key */u8n_sec_mpi;/* Number of MPIs in secret key */u8n_sig_mpi;/* Number of MPIs in a signature */int(*verify_signature)(conststructpublic_key*key,conststructpublic_key_signature*sig);};externconststructpublic_key_algorithmRSA_public_key_algorithm;/* * public_key.c */externintpublic_key_verify_signature(conststructpublic_key*pk,conststructpublic_key_signature*sig);