PHP Class Jose\Algorithm\KeyEncryption\PBES2AESKW

Inheritance: implements Jose\Algorithm\KeyEncryption\KeyWrappingInterface
Exibir arquivo Open project: spomky-labs/jose

Public Methods

Method Description
__construct ( integer $salt_size = 64, integer $nb_count = 4096 )
getKeyManagementMode ( )
unwrapKey ( Jose\Object\JWKInterface $key, $encrypted_cek, array $header )
wrapKey ( Jose\Object\JWKInterface $key, $cek, array $complete_headers, array &$additional_headers )

Protected Methods

Method Description
checkHeaderAdditionalParameters ( array $header )
checkHeaderAlgorithm ( array $header )
checkKey ( Jose\Object\JWKInterface $key )
getHashAlgorithm ( ) : string
getKeySize ( ) : integer
getWrapper ( ) : AESKW\A128KW | AESKW\A192KW | AESKW\A256KW

Method Details

__construct() public method

public __construct ( integer $salt_size = 64, integer $nb_count = 4096 )
$salt_size integer
$nb_count integer

checkHeaderAdditionalParameters() protected method

protected checkHeaderAdditionalParameters ( array $header )
$header array

checkHeaderAlgorithm() protected method

protected checkHeaderAlgorithm ( array $header )
$header array

checkKey() protected method

protected checkKey ( Jose\Object\JWKInterface $key )
$key Jose\Object\JWKInterface

getHashAlgorithm() abstract protected method

abstract protected getHashAlgorithm ( ) : string
return string

getKeyManagementMode() public method

getKeySize() abstract protected method

abstract protected getKeySize ( ) : integer
return integer

getWrapper() abstract protected method

abstract protected getWrapper ( ) : AESKW\A128KW | AESKW\A192KW | AESKW\A256KW
return AESKW\A128KW | AESKW\A192KW | AESKW\A256KW

unwrapKey() public method

public unwrapKey ( Jose\Object\JWKInterface $key, $encrypted_cek, array $header )
$key Jose\Object\JWKInterface
$header array

wrapKey() public method

public wrapKey ( Jose\Object\JWKInterface $key, $cek, array $complete_headers, array &$additional_headers )
$key Jose\Object\JWKInterface
$complete_headers array
$additional_headers array