Home > |
FM SDK Programming Guide > HSM Functions Reference
|
---|
A number of libraries are required to use the functionality provided by the SafeNet FM SDK. This chapter describes the function sets provided by these libraries.
As well as the functions described in this section, the full set of PKCS#11 functions are also available to the FM. The PKCS#11 functions are described in the Cprov Programmer Manual, and the PKCS#11 standard. The library libfmcprov.a provides the PKCS#11 functions.
•HIFACE Reply Management Functions
•Functionality module dispatch switcher function
•Serial communication functions
•High Resolution Timer Functions
•Cprov function patching helper function
•Current Application ID functions
•PKCS#11 State Management Functions
The FM SDK supports a subset of the ISO C 99 standard library, as defined by ISO/IEC 9899:1999. In general, floating point math, multibyte character, localization and I/O APIs are not supported; printf and vprintf are exceptions and are redirected to the logging channel.
In addition to the standard library, C99 language features not present in ANSI C (C89/90) can be used.
The following functions are provided by libfmcrt.a:
assert
isalnum, isalpha, isblank, iscntrl, isdigit, isgraph, islower, isprint, ispunct, isspace, isupper, isxdigit, tolower, toupper
printf, sprintf, sscanf, vprintf, vsprintf, snprintf, vsnprintf, vsscanf
va_arg(), va_start(), va_end(), va_copy()
abs, atoi, atol, atoll, bsearch, calloc, div, free, labs, llabs, ldiv, lldiv, malloc, qsort, rand, realloc, srand, strtol, strtoll, strtoul, strtoull
memchr, memcmp, memcpy, memmove, memset, strcat, strchr, strcmp, strcpy, strcspn, strlen, strncat, strncmp, strncpy, strpbrk, strrchr, strspn, strstr, strerror, strtok
asctime, clock, ctime, gmtime, localtime, mktime, strftime, time, difftime
The FMS SDK also supports the following common, but non-ISO library functions in their GNU form.
Note: These may not be available in emulation mode. See Supported C APIs.
isascii, toascii
strdup, strsep
The following standard headers and their contained APIs are not supported by the FM SDK:
complex.h, fenv.h, float.h, locale.h, math.h, signal.h, tgmath.h, wchar.h, and wctype.h