PHP Class Jose\Util\ConcatKDF

This class is used by the ECDH-ES algorithms
See also: https://tools.ietf.org/html/rfc7518#section-4.6.2
Datei anzeigen Open project: spomky-labs/jose Class Usage Examples

Public Methods

Method Description
generate ( string $Z, string $algorithm, integer $encryption_key_size, string $apu = '', string $apv = '' ) : string Key Derivation Function.

Private Methods

Method Description
toInt32Bits ( integer $value ) : string Convert an integer into a 32 bits string.

Method Details

generate() public static method

Key Derivation Function.
public static generate ( string $Z, string $algorithm, integer $encryption_key_size, string $apu = '', string $apv = '' ) : string
$Z string Shared secret
$algorithm string Encryption algorithm
$encryption_key_size integer Size of the encryption key
$apu string Agreement PartyUInfo (information about the producer)
$apv string Agreement PartyVInfo (information about the recipient)
return string