Re: Error: CRYPT_ERROR_INTERNAL
Линда Кайе <[email protected]> Sun, 11 Apr 2021 22:19:16 +0300
| Newsgroups | gmane.comp.encryption.cryptlib |
|---|---|
| Organization | HalfMoon Studios |
| Message-ID | <[email protected]> |
> That's all Visual Basic which unfortunately I can't do much with... it looks > like it's in EncryptDecryptData() in CCryptLibSupprt.CLS, the cryptXXX() calls > are obvious but it's not clear what data that loop is processing... are you > able to recreate it using some fixed data string like '******' and a series of > cryptPushData()/cryptPopData() calls? For encryption you should be able to > replace the call to PushData() with just cryptPushData() and the same for > PopData(), since you're not doing anything with passwords as you would for > decryption. Knowing what values like 'Mid(Text, CharIndex, PUSH_BUFFER_SIZE)' > and 'Len(Text)' are would be good... I'm trying to figure out how to provide you debug info. Can you run it in Word or any other Office app? As far as I see, the error happens right after second cycle of cryptPopData(). I've tried different buffer sizes but when the code retrive encrypted data second time and then try to push data, error occurs. Source data doesn't matter: I can try JPEG file, pure random data, string filled with "*" only or even cl32.dll itself, error still occur. PopData() is a separate function because cryptPopData() called in cycle while it returns something. When the object is empty, program continues to push data. // And FlushData() is another separate function just for company and for some debug code added in the past. _______________________________________________ Cryptlib mailing list [email protected] via Mail: [email protected] Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/ http://news.gmane.org/gmane.comp.encryption.cryptlib Posts from non-subscribed addresses are blocked to prevent spam, please subscribe in order to post messages.