K2hash::addAttrCryptPass K2hash Class K2hash::addSubkey

K2hash::addAttrPluginLib

Adds the user-defined library to handle attributes

Description

public bool K2hash::addAttrPluginLib ( string $libfile )

Adds the user-defined library to handle attributes. k2hash supports for adding user-defined attributes to keys by using this method.

Parameters

Return Values

Returns true on success or false on failure.

Examples

<?php
$k2hash = new K2hash();
$k2hash->openMem();
var_dump($k2hash->addAttrPluginLib("/tmp/libk2htestattr.so"));
$k2hash->close();
?>

The above example will output:

bool(true)

See Also

K2hash::addAttrCryptPass K2hash Class K2hash::addSubkey