SecureBlackbox Lite 2020 PHP Edition

Questions / Feedback?

PublicKeyCrypto Class

Properties   Methods   Events   Configuration Settings   Errors  

The PublicKeyCrypto class supports encrypting, decrypting, signing and verifying messages.

Class Name

SecureBlackboxLite_PublicKeyCrypto

Procedural Interface

 secureblackboxlite_publickeycrypto_open();
 secureblackboxlite_publickeycrypto_close($res);
 secureblackboxlite_publickeycrypto_register_callback($res, $id, $function);
 secureblackboxlite_publickeycrypto_get_last_error($res);
 secureblackboxlite_publickeycrypto_get_last_error_code($res);
 secureblackboxlite_publickeycrypto_set($res, $id, $index, $value);
 secureblackboxlite_publickeycrypto_get($res, $id, $index);
 secureblackboxlite_publickeycrypto_do_config($res, $configurationstring);
 secureblackboxlite_publickeycrypto_do_decrypt($res, $buffer);
 secureblackboxlite_publickeycrypto_do_decryptfile($res, $sourcefile, $destfile);
 secureblackboxlite_publickeycrypto_do_encrypt($res, $buffer);
 secureblackboxlite_publickeycrypto_do_encryptfile($res, $sourcefile, $destfile);
 secureblackboxlite_publickeycrypto_do_sign($res, $buffer, $detached);
 secureblackboxlite_publickeycrypto_do_signfile($res, $sourcefile, $destfile, $detached);
 secureblackboxlite_publickeycrypto_do_verify($res, $buffer);
 secureblackboxlite_publickeycrypto_do_verifydetached($res, $signeddata, $signature);
 secureblackboxlite_publickeycrypto_do_verifydetachedfile($res, $signeddatafile, $signaturefile);
 secureblackboxlite_publickeycrypto_do_verifyfile($res, $sourcefile, $destfile);

Remarks

PublicKeyCrypto allows you to encrypt, decrypt, sign and verify messages.

Property List


The following is the full list of the properties of the class with short descriptions. Click on the links for further details.

CanEncryptReturns true if the crypto object can be used for encryption.
CanSignReturns true if the crypto object is capable of data signing.
HashAlgorithmThe hash algorithm to be used during the crypto operation.
InputEncodingThe encoding to apply to the input data.
InputIsHashIndicates whether the input data contains the hash or the actual data.
JsonKeyHeaderParamsContains key header parameters.
JsonProtectedHeaderProvides access to the header being protected.
JsonUnprotectedHeaderProvides access to the unprotected part of the header.
JsonUnprotectedHeaderParamsContains unprotected header parameters.
KeyAlgorithmThe algorithm of the cryptographic key.
KeyBitsThe length of the key in bits.
KeyExportableReturns True if the key is exportable (can be serialized into an array of bytes), and False otherwise.
KeyHandleAllows to get or set a 'handle', a unique identifier of the underlying property object.
KeyIDProvides access to a storage-specific key identifier.
KeyIVThe initialization vector (IV) of a symmetric key.
KeyKeyThe byte array representation of the key.
KeyNonceA nonce value associated with a key.
KeyPrivateReturns True if the object hosts a private key, and False otherwise.
KeyPublicReturns True if the object hosts a public key, and False otherwise.
KeySubjectReturns the key subject.
KeySymmetricReturns True if the object contains a symmetric key, and False otherwise.
KeyValidReturns True if this key is valid.
OutputEncodingThe encoding type to apply to the output data.
SchemeThe algorithm scheme to use.
SchemeParamsThe algorithm scheme parameters to employ.
SignatureValidationResultThe signature validation result.

Method List


The following is the full list of the methods of the class with short descriptions. Click on the links for further details.

ConfigSets or retrieves a configuration setting.
DecryptDecrypts a buffer.
DecryptFileDecrypts a file.
EncryptEncrypts a buffer.
EncryptFileEncrypts a file.
SignSigns a buffer.
SignFileSigns a file.
VerifyVerifies an enveloped or enveloping signature contained in a buffer.
VerifyDetachedVerifies a detached signature.
VerifyDetachedFileVerifies a detached signature.
VerifyFileVerifies an enveloped or enveloping signature contained in a file.

Event List


The following is the full list of the events fired by the class with short descriptions. Click on the links for further details.

ErrorReports error information during a crypto operation.
NotificationThis event notifies the application about an underlying control flow event.

Configuration Settings


The following is a list of configuration settings for the class with short descriptions. Click on the links for further details.

TempPathPath for storing temporary files.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox Lite 2020 PHP Edition - Version 20.0 [Build 8166]