EldoS | Feel safer!

Software components for data protection, secure storage and transfer

pgpWriter Freezing

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.
#4361
Posted: 11/21/2007 09:20:39
by John Sieglaff (Basic support level)
Joined: 11/21/2007
Posts: 4

I have a Visual Basic 2002 program that builds a text file, and then encrypts the file. The first couple of times I tested this program it ran perfectly.

Now however, it freezes up when doing the EncryptAndSign. I have tried both EncryptAndSignFile and the encryptandsign using an IO Stream. Both of them freeze up.

I do not receive an error message, the program just sits and does nothing.

Here is the code I am using (I have blanked out the key name and key for this post):

keyring.Load("C:\PGP\pubring.pkr", "C:\PGP\secring.skr", True)
Dim i As Integer
For i = 0 To keyring.PublicCount - 1
If keyring.PublicKeys(i).UserIDs(0).Name Like "<username>*" Then
pubKeyring.AddPublicKey(keyring.PublicKeys(i))
End If
Next
For i = 0 To keyring.SecretCount - 1
If keyring.SecretKeys(i).PublicKey.UserIDs(0).Name Like "<username>*" Then
secKeyring.AddSecretKey(keyring.SecretKeys(i))
End If
Next

pgpWriter.Armor = True
pgpWriter.ArmorHeaders.Clear()
pgpWriter.ArmorHeaders.Add("Version: EldoS OpenPGPBlackbox (.NET edition)")
pgpWriter.ArmorBoundary = "PGP MESSAGE"
pgpWriter.Compress = False
pgpWriter.EncryptingKeys = pubKeyring
pgpWriter.SigningKeys = secKeyring
pgpWriter.EncryptionType = SBPGP.TSBPGPEncryptionType.etPublicKey
info = New System.IO.FileInfo(SourceFile)
pgpWriter.Filename = info.Name
pgpWriter.InputIsText = False
pgpWriter.Passphrases.Clear()
pgpWriter.Passphrases.Add("<key>")
pgpWriter.Protection = SBPGPConstants.TSBPGPProtectionType.ptHigh
pgpWriter.SignBufferingMethod = SBPGP.TSBPGPSignBufferingMethod.sbmRewind
pgpWriter.SymmetricKeyAlgorithm = SBPGPConstants.Unit.SB_PGP_ALGORITHM_SK_AES128
pgpWriter.Timestamp = DateTime.Now
pgpWriter.UseNewFeatures = False
pgpWriter.UseOldPackets = False
Try
Try
pgpWriter.EncryptAndSignFile(lsFileName, OutputFile)
Finally
End Try
Finally
End Try
Any ideas why it is freezing?
#4362
Posted: 11/21/2007 09:28:06
by Eugene Mayevski (EldoS Corp.)

Please specify the exact version of SecureBlackbox (the build number can be found in <SecureBlackbox>\changes.txt file).

Also, VB 2002 uses .NET 1.0. We don't support it. SecureBlackbox assemblies only support .NET 1.1 and later. So the reason can be in .NET framework version


Sincerely yours
Eugene Mayevski
#4363
Posted: 11/21/2007 09:55:30
by John Sieglaff (Basic support level)
Joined: 11/21/2007
Posts: 4

We are using Version 5.2.124. Internal build of SecureBlackbox.
The program is using framework 1.0, I will try changing it to 1.1 and see if that corrects the issue
#4365
Posted: 11/21/2007 10:42:51
by Eugene Mayevski (EldoS Corp.)

Please clarify, what internal build you are talking about. The system doesn't recognize you as a licensed customer.


Sincerely yours
Eugene Mayevski
#4366
Posted: 11/21/2007 11:00:26
by John Sieglaff (Basic support level)
Joined: 11/21/2007
Posts: 4

According to the file, we are using Version 5.2.124. Internal build of SecureBlackbox.

The copy of openPGP was purchased by the company I work for, not for me. I am just the programmer using it. The purchase was Order no. 161794715

#4367
Posted: 11/21/2007 11:18:27
by Eugene Mayevski (EldoS Corp.)

Thank you for information. In order to be recognized by the system, you must take a license ticket from the registration letter and associate it with your account on EldoS site. Without the ticket your account can't be treated as a licensed customer.


Sincerely yours
Eugene Mayevski
#4368
Posted: 11/21/2007 11:28:10
by John Sieglaff (Basic support level)
Joined: 11/21/2007
Posts: 4

I checked with the person who made the purchase, and they had already set up an account. I didn't know that, so I will stop using this one.

FYI, I upgraded the program to VB 2005, and it works fine now
#4369
Posted: 11/21/2007 11:54:23
by Eugene Mayevski (EldoS Corp.)

You can use your own account, just assign the ticket to it.


Sincerely yours
Eugene Mayevski
Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.

Reply

Statistics

Topic viewed 2261 times

Number of guests: 1, 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!