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
Afficher le fichier Open project: spomky-labs/jose Class Usage Examples

Méthodes publiques

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

Private Methods

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

Method Details

generate() public static méthode

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)
Résultat string