SophiaFramework UNIVERSE 5.3 |
BREW 2.0 | BREW 2.1 | BREW 3.1 | BREW 4.0 |
---|---|---|---|
X | X | X | O |
Public Functions | |
---|---|
Void |
Decrypt(
UInt08ConstPtr inBuf
, SInt32 inBufLen
, UInt08Ptr outBuf
, SInt32Ptr outBufLen
, SInt32 padType
, SInt32Ptr result
, SFXCallbackPtr callback
) Call this method to perform decryption using a private key.
|
Void |
Encrypt(
UInt08ConstPtr inBuf
, SInt32 inBufLen
, UInt08Ptr outBuf
, SInt32Ptr outBufLen
, SInt32 padType
, SInt32Ptr result
, SFXCallbackPtr callback
) Call this method to perform encryption using a public key.
|
static SFBPubKeySmp |
NewInstance(
SFCErrorPtr exception = null
) Create a new SFBPubKey instance.
|
static SFBPubKeySmp |
NewInstance(
AEECLSID id
, SFCErrorPtr exception = null
) Create a new SFBPubKey instance.
|
Void |
Sign(
UInt08ConstPtr hash
, SInt32 hashLen
, UInt08Ptr sign
, SInt32Ptr signLen
, SInt32 padType
, SInt32Ptr result
, SFXCallbackPtr callback
) Call this method to digitally sign some data.
|
Void |
Verify(
UInt08ConstPtr sign
, SInt32 signLen
, UInt08Ptr hash
, SInt32 hashLen
, SInt32 padType
, SInt32Ptr result
, SFXCallbackPtr callback
) Call this method to verify a signature.
|
SFCError |
SetParam(
SInt32 id
, VoidConstPtr data
, UInt32 length
)
(inherits from SFBParameters)
This method sets a parameter value.
|
SFCError |
SetParam(
SInt32 id
, SFXBufferConstRef data
)
(inherits from SFBParameters)
This method sets a parameter value.
|
SFCError |
SetParam(
SInt32 id
, SFXAnsiStringConstRef data
)
(inherits from SFBParameters)
This method sets a parameter value.
|
[ public ] Void Decrypt( UInt08ConstPtr inBuf // pointer to buffer of data to decrypt SInt32 inBufLen // length of input buffer UInt08Ptr outBuf // Pointer to buffer to store encrpypted data, caller allocated SInt32Ptr outBufLen // Length of output buffer on input, length of data on output SInt32 padType // Type of padding to use SInt32Ptr result // Result code SFXCallbackPtr callback // Pointer to callback record (called when async operation completes) );
These return values are in result.
Other error codes as returned by engine
The key used to decrypt must have been set before the operation is attempted.
It is usually set by calling SFBPubKey::SetParam(), but it may be pre set in some implementations such as hardware key stores.
It is also usually the private key of the key pair.
[ public ] Void Encrypt( UInt08ConstPtr inBuf // Pointer to buffer of data to encrypt SInt32 inBufLen // Length of input buffer UInt08Ptr outBuf // Pointer to buffer to store encrypted data, caller allocated SInt32Ptr outBufLen // Length of output buffer on input, length of data on output SInt32 padType // Type of padding to use SInt32Ptr result // Result code SFXCallbackPtr callback // Pointer to callback record (called when async operation completes) );
These return values are in result.
Other error codes as returned by engine
The key used in the encryption must have been set before calling this method. It is usually set by calling SEBPubKey::SetParam().
[ public, static ] SFBPubKeySmp NewInstance( SFCErrorPtr exception = null // Error );
[ public, static ] SFBPubKeySmp NewInstance( AEECLSID id // Class ID SFCErrorPtr exception = null // Error );
[ public ] Void Sign( UInt08ConstPtr hash // pointer to a buffer containing a hash to sign SInt32 hashLen // the length of the hash UInt08Ptr sign // pointer to a buffer containing the signature SInt32Ptr signLen // the length of the signature SInt32 padType // One of IPUBKEY_SIG_ SInt32Ptr result // Result code SFXCallbackPtr callback // pointer to callback record (called when async operation completes), can be NULL (sync mode) );
These return values are in result.
Other error codes as returned by engine
The key used to sign must have been set before the operation is attempted.
[ public ] Void Verify( UInt08ConstPtr sign // pointer to a buffer containing a signature SInt32 signLen // the length of the signature UInt08Ptr hash // pointer to a buffer containing the expected digest SInt32 hashLen // the length of the digest SInt32 padType // One of IPUBKEY_SIG_ SInt32Ptr result // Result code SFXCallbackPtr callback // pointer to callback record (called when async operation completes), can be NULL (sync mode) );
These return values are in result.
Other error codes as returned by engine
The key used to verify must have been set before the operation is attempted.
Copyright(c) 2002 - 2024 Sophia Cradle Incorporated All Rights Reserved. |