EldoS | Feel safer!

Software components for data protection, secure storage and transfer

No signature

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
Posted: 05/23/2013 10:12:12
by Eugene Mayevski (EldoS Corp.)

Unfortunately screenshots give no useful information. You need to find the difference in code of the sample and your code. Also do check my previous message and review keyring loading procedure.

Sincerely yours
Eugene Mayevski
Posted: 05/23/2013 11:04:49
by Andy Kim (Basic support level)
Joined: 02/07/2013
Posts: 11

Thanks I'll take a look and let you know.
Posted: 06/06/2013 17:37:19
by Andy Kim (Basic support level)
Joined: 06/06/2013
Posts: 5

I generated another key without a KeyPassPhrase, and the 3rd party told me the file is good... so I have determined it has something to do with the keypassphrase.

Here is the fail message from 3rd party:

Failure Details: Transformation of type: pgpDecrypt failed! com.tumbleweed.st.server.pgp.PGPOperationFailedException: Signature verification failed (Signature required),
Protocol Commands:

Do you see any other reason or what else can I try?

I know this part is wrong, and I corrected to put it before assigning the keyrings to the TelPGPWriter object.

If rngSigningKeys.SecretCount = 1 Then
                        rngSigningKeys.SecretKeys(0).Passphrase = pstrPassphrase '<----Use OnKeyPassPhrase Event? I used PassphraseValid function and verified True
                    End If

Public Function EncryptStreamAndSign(ByVal pstmInputStream As IO.Stream, ByVal pstmEncryptedAndSignedStream As IO.Stream, ByVal pstmPublicKeyStream As IO.Stream, ByVal pstmPrivateKeyStream As IO.Stream, ByVal pstrPassphrase As String, ByVal pstrPassword As String, ByVal pcurInputLength As Decimal) As Boolean
        Using pgpWriter As New TElPGPWriter
            Using rngSigningKeys As New TElPGPKeyring
                Using rngEncryptingKeys As New TElPGPKeyring
                    '*** Set Encryption Key
                    rngEncryptingKeys.Load(pstmPublicKeyStream, Nothing, True)
                    rngSigningKeys.Load(Nothing, pstmPrivateKeyStream, True)

                    pgpWriter.EncryptingKeys = rngEncryptingKeys
                    pgpWriter.SigningKeys = rngSigningKeys

                    If rngSigningKeys.SecretCount = 1 Then
                        rngSigningKeys.SecretKeys(0).Passphrase = pstrPassphrase '<----Use OnKeyPassPhrase Event? I used PassphraseValid function and verified True
                    End If

                    '*** Set Compression
                    pgpWriter.Compress = mblnCompress 'No Compression

                    '*** Set Encryption type
                    If pstrPassword IsNot Nothing Then     'No Encryption password in this case
                        pgpWriter.EncryptionType = TSBPGPEncryptionType.etBoth
                        pgpWriter.EncryptionType = TSBPGPEncryptionType.etPublicKey
                    End If

                    '*** Set Symmetric Key Algorithm
                    If SymmetricKeyAlgorithm <> 0 Then
                        pgpWriter.SymmetricKeyAlgorithm = SymmetricKeyAlgorithm
                    End If

                    '*** Set Armor properties
                    If mblnArmor Then
                        pgpWriter.Armor = True
                        If mstrArmorHeader IsNot Nothing Then
                        End If
                        If mstrArmorBoundary IsNot Nothing Then
                            pgpWriter.ArmorBoundary = mstrArmorBoundary
                        End If
                        pgpWriter.InputIsText = True
                        pgpWriter.UseNewFeatures = True
                        pgpWriter.UseOldPackets = False
                        pgpWriter.TextCompatibilityMode = True
                    End If

                    '*** This setting will prevent Seeks on the input stream
                    If Not pstmInputStream.CanSeek Then
                        pgpWriter.SignBufferingMethod = TSBPGPSignBufferingMethod.sbmTemporaryStream
                    End If

                    '*** Encrypt and sign file
                    pgpWriter.EncryptAndSign(pstmInputStream, pstmEncryptedAndSignedStream, CType(pcurInputLength, Long))

                    Return True
                End Using
            End Using
        End Using
    End Function
#End Region
Posted: 06/06/2013 23:12:01
by Andy Kim (Basic support level)
Joined: 06/06/2013
Posts: 5

Hello are you closed? I am wondering why I haven't got a response back yet... I had some login issues. You usually respond quickly, so I was just checking.

Posted: 06/07/2013 01:16:52
by Eugene Mayevski (EldoS Corp.)

1) It's night here in Europe. If you look at https://www.eldos.com/contact.php, you will see that our company personnel works Monday-Friday 8:00-17:00 GMT .

2) Without a valid license you have BASIC support level which means that other requests (from licensed customers) have priority over yours.

3) I don't think your question has resolution - we can't hunt bugs of the thirdparty software, especially without proper compensation. I.e. if you are ready to pay for investigation, we can go on.

Sincerely yours
Eugene Mayevski
Posted: 06/10/2013 12:38:59
by Andy Kim (Basic support level)
Joined: 06/06/2013
Posts: 5

My company is using a licensed version of the secureblackbox software.
How can I get my profile to show that I am a licensed user?
I checked the profile, and can't seem to find how I do this. I imagine I would register with my company's license key. Would that help?

Posted: 06/10/2013 12:48:44
by Eugene Mayevski (EldoS Corp.)

Not exactly.

You need to link the license ticket (not the license key!) to your user account before we continue. The ticket itself and the procedure of its use are specified in the registration e-mail that was sent to you upon license purchase. If you don't have the license ticket, please contact the person from which you have obtained the license key (the one in your source code) for a license ticket.

NOTE: please don't post license keys and license tickets to the forum. If you need to clarify something about your license, please use HelpDesk ( http://www.eldos.com/helpdesk/ ).

Sincerely yours
Eugene Mayevski
Posted: 06/11/2013 15:25:41
by Andy Kim (Basic support level)
Joined: 06/06/2013
Posts: 5

I finally got my issue resolved. I was setting pgpWriter.InputIsText = True. It needed to be left as false.

This made the 3rd party think there was no signature.
Hopes this helps someone in the future.
Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.



Topic viewed 3551 times

Number of guests: 2, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!