'whirlpool' => 64,
);
-
/**
* @param string $secretKeyMaterial
* @param string $algorithm Name of hashing algorithm
$context[] = gethostname();
// Setup salt cache. Use APC, or fallback to the main cache if it isn't setup
- $cache = ObjectCache::newAccelerator( $wgMainCacheType );
+ $cache = ObjectCache::getLocalServerInstance( $wgMainCacheType );
if ( is_null( self::$singleton ) ) {
self::$singleton = new self( $secret, $wgHKDFAlgorithm, $cache, $context );
);
}
-
/**
* RFC5869 defines HKDF in 2 steps, extraction and expansion.
* From http://eprint.iacr.org/2010/264.pdf: