SecLibJwkAlgorithm
in package
Implements a PHP Sec Lib backed JWK Algorithm.
Table of Contents
Properties
- $transformFunc : callable(AsymmetricKey): AsymmetricKey
Methods
- __construct() : mixed
- algorithms() : array<string|int, string>
- applyIeeeSignatureFormat() : EC
- applyPkcs1Padding() : RSA
- applyPssPadding() : RSA
- create() : SecLibJwkAlgorithm
- defineAlgorithm() : void
- ensureEcKey() : EC
- ensureRsaKey() : RSA
- getAlgorithm() : string
- transform() : AsymmetricKey
- transformEdDsa() : EC
- transformEs256() : EC
- transformEs256K() : EC
- transformEs384() : EC
- transformEs512() : EC
- transformPs256() : RSA
- transformPs384() : RSA
- transformPs512() : RSA
- transformRs256() : RSA
- transformRs384() : RSA
- transformRs512() : RSA
Properties
$transformFunc
public
callable(AsymmetricKey): AsymmetricKey
$transformFunc
Methods
__construct()
public
__construct(string $algo, callable(AsymmetricKey): AsymmetricKey $transformFunc) : mixed
Parameters
- $algo : string
- $transformFunc : callable(AsymmetricKey): AsymmetricKey
algorithms()
public
static algorithms() : array<string|int, string>
Return values
array<string|int, string>applyIeeeSignatureFormat()
public
static applyIeeeSignatureFormat(EC $key) : EC
Parameters
- $key : EC
Tags
Return values
ECapplyPkcs1Padding()
public
static applyPkcs1Padding(RSA $key) : RSA
Parameters
- $key : RSA
Tags
Return values
RSAapplyPssPadding()
public
static applyPssPadding(RSA $key) : RSA
Parameters
- $key : RSA
Tags
Return values
RSAcreate()
public
static create(string $algo) : SecLibJwkAlgorithm
Parameters
- $algo : string
Tags
Return values
SecLibJwkAlgorithmdefineAlgorithm()
public
static defineAlgorithm(string $algo, callable(AsymmetricKey): AsymmetricKey $transformFunc) : void
Parameters
- $algo : string
- $transformFunc : callable(AsymmetricKey): AsymmetricKey
Tags
ensureEcKey()
public
static ensureEcKey(AsymmetricKey $key) : EC
Parameters
- $key : AsymmetricKey
Tags
Return values
ECensureRsaKey()
public
static ensureRsaKey(AsymmetricKey $key) : RSA
Parameters
- $key : AsymmetricKey
Tags
Return values
RSAgetAlgorithm()
public
getAlgorithm() : string
Return values
stringtransform()
public
transform(AsymmetricKey $key) : AsymmetricKey
Parameters
- $key : AsymmetricKey
Tags
Return values
AsymmetricKeytransformEdDsa()
public
static transformEdDsa(AsymmetricKey $key) : EC
Parameters
- $key : AsymmetricKey
Tags
Return values
ECtransformEs256()
public
static transformEs256(AsymmetricKey $key) : EC
Parameters
- $key : AsymmetricKey
Tags
Return values
ECtransformEs256K()
public
static transformEs256K(AsymmetricKey $key) : EC
Parameters
- $key : AsymmetricKey
Tags
Return values
ECtransformEs384()
public
static transformEs384(AsymmetricKey $key) : EC
Parameters
- $key : AsymmetricKey
Tags
Return values
ECtransformEs512()
public
static transformEs512(AsymmetricKey $key) : EC
Parameters
- $key : AsymmetricKey
Tags
Return values
ECtransformPs256()
public
static transformPs256(AsymmetricKey $key) : RSA
Parameters
- $key : AsymmetricKey
Tags
Return values
RSAtransformPs384()
public
static transformPs384(AsymmetricKey $key) : RSA
Parameters
- $key : AsymmetricKey
Tags
Return values
RSAtransformPs512()
public
static transformPs512(AsymmetricKey $key) : RSA
Parameters
- $key : AsymmetricKey
Tags
Return values
RSAtransformRs256()
public
static transformRs256(AsymmetricKey $key) : RSA
Parameters
- $key : AsymmetricKey
Tags
Return values
RSAtransformRs384()
public
static transformRs384(AsymmetricKey $key) : RSA
Parameters
- $key : AsymmetricKey
Tags
Return values
RSAtransformRs512()
public
static transformRs512(AsymmetricKey $key) : RSA
Parameters
- $key : AsymmetricKey