\CryptoManana\FactoriesAsymmetricCipherFactory

Class AsymmetricCipherFactory - Factory for object asymmetric encryption/signature algorithm object instancing.

Summary

Methods
Properties
Constants
__construct()
create()
__debugInfo()
createInstance()
No public properties found
RSA_1024
RSA_2048
RSA_3072
RSA_4096
DSA_1024
DSA_2048
DSA_3072
DSA_4096
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

RSA_1024

RSA_1024

The RSA-1024 type.

RSA_2048

RSA_2048

The RSA-2048 type.

RSA_3072

RSA_3072

The RSA-3072 type.

RSA_4096

RSA_4096

The RSA-4096 type.

DSA_1024

DSA_1024

The DSA-1024 type.

DSA_2048

DSA_2048

The DSA-2048 type.

DSA_3072

DSA_3072

The DSA-3072 type.

DSA_4096

DSA_4096

The DSA-4096 type.

Methods

__construct()

__construct() 

Factory constructor.

create()

create(string|null  $type) : \CryptoManana\Core\Abstractions\MessageEncryption\AbstractAsymmetricEncryptionAlgorithm|object|null

Create an encryption or digital signature algorithm object

Parameters

string|null $type

The algorithm class name as type for creation.

Returns

\CryptoManana\Core\Abstractions\MessageEncryption\AbstractAsymmetricEncryptionAlgorithm|object|null —

An encryption/signature algorithm object or null.

__debugInfo()

__debugInfo() : array

Get debug information for the class instance.

Returns

array —

Debug information.

createInstance()

createInstance(string|null  $type) : \CryptoManana\Core\Abstractions\MessageEncryption\AbstractAsymmetricEncryptionAlgorithm|object|null

Create an encryption or digital signature algorithm object

Parameters

string|null $type

The algorithm class name as type for creation.

Returns

\CryptoManana\Core\Abstractions\MessageEncryption\AbstractAsymmetricEncryptionAlgorithm|object|null —

An encryption/signature algorithm object or null.