2 * This header declares the necessary definitions for using the
3 * exponentiation acceleration capabilities of Atalla cards. The only
4 * cryptographic operation is performed by "ASI_RSAPrivateKeyOpFn" and this
5 * takes a structure that defines an "RSA private key". However, it is really
6 * only performing a regular mod_exp using the supplied modulus and exponent
7 * - no CRT form is being used. Hence, it is a generic mod_exp function in
8 * disguise, and we use it as such. Thanks to the people at Atalla for
9 * letting me know these definitions are fine and that they can be reproduced
13 typedef struct ItemStr {
18 typedef struct RSAPrivateKeyStr {
30 * Predeclare the function pointer types that we dynamically load from the
31 * DSO. These use the same names and form that Ben's original support code
32 * had (in crypto/bn/bn_exp.c) unless of course I've inadvertently changed
33 * the style somewhere along the way!
36 typedef int tfnASI_GetPerformanceStatistics(int reset_flag,
37 unsigned int *ret_buf);
39 typedef int tfnASI_GetHardwareConfig(long card_num, unsigned int *ret_buf);
41 typedef int tfnASI_RSAPrivateKeyOpFn(RSAPrivateKey * rsaKey,
42 unsigned char *output,
44 unsigned int modulus_len);