SecureBlackbox Lite 2020 Python Edition

Questions / Feedback?

PublicKeyCrypto Class

Properties   Methods   Events   Configuration Settings   Errors  

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

Syntax

class secureblackboxlite.PublicKeyCrypto

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.

can_encryptReturns true if the crypto object can be used for encryption.
can_signReturns true if the crypto object is capable of data signing.
hash_algorithmThe hash algorithm to be used during the crypto operation.
input_encodingThe encoding to apply to the input data.
input_is_hashIndicates whether the input data contains the hash or the actual data.
json_key_header_paramsContains key header parameters.
json_protected_headerProvides access to the header being protected.
json_unprotected_headerProvides access to the unprotected part of the header.
json_unprotected_header_paramsContains unprotected header parameters.
key_algorithmThe algorithm of the cryptographic key.
key_bitsThe length of the key in bits.
key_exportableReturns True if the key is exportable (can be serialized into an array of bytes), and False otherwise.
key_handleAllows to get or set a 'handle', a unique identifier of the underlying property object.
key_idProvides access to a storage-specific key identifier.
key_ivThe initialization vector (IV) of a symmetric key.
key_keyThe byte array representation of the key.
key_nonceA nonce value associated with a key.
key_privateReturns True if the object hosts a private key, and False otherwise.
key_publicReturns True if the object hosts a public key, and False otherwise.
key_subjectReturns the key subject.
key_symmetricReturns True if the object contains a symmetric key, and False otherwise.
key_validReturns True if this key is valid.
output_encodingThe encoding type to apply to the output data.
schemeThe algorithm scheme to use.
scheme_paramsThe algorithm scheme parameters to employ.
signature_validation_resultThe 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.
decrypt_fileDecrypts a file.
encryptEncrypts a buffer.
encrypt_fileEncrypts a file.
signSigns a buffer.
sign_fileSigns a file.
verifyVerifies an enveloped or enveloping signature contained in a buffer.
verify_detachedVerifies a detached signature.
verify_detached_fileVerifies a detached signature.
verify_fileVerifies 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.

on_errorReports error information during a crypto operation.
on_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 Python Edition - Version 20.0 [Build 8166]