ta/pkcs11/src/token_capabilities.c
/*
 * Return true if @id is a valid mechanism ID
 */
Return true if @id is a valid mechanism ID
Return true if @id is a valid mechanism ID
bool mechanism_is_valid(enum pkcs11_mechanism_id id)
{
	size_t n = 0;
	for (n = 0; n < ARRAY_SIZE(pkcs11_modes); n++)
		if (id == pkcs11_modes[n].id)
			return true;
	return false;
}
bool mechanism_is_valid ( enum pkcs11_mechanism_id id ) { size_t n = 0 ; for ( n = 0 ; n < ARRAY_SIZE ( pkcs11_modes ) ; n ++ ) if ( id == pkcs11_modes [ n ] . id ) return true ; return false ; }
Return true if @id is a valid mechanism ID
Return true if @id is a valid mechanism ID