EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Code for PDF signing

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
#21387
Posted: 09/09/2012 14:46:09
by Zdenek Mukensnabl (Priority Standard support level)
Joined: 09/05/2012
Posts: 15

Hi,
I have another problem with certificate on smardcard accessible throught PIN. Can I use windows certificate store and set PIN to crypto provider like

CryptAcquireContext(xCryptProvider, ..., CRYPT_SILENT);
CryptSetProvParam(xCryptProvider, PP_KEYEXCHANGE_PIN, (BYTE *) PIN.c_str(), 0);

Can I do set of PIN like with this example with your components?

Thanks
#21391
Posted: 09/09/2012 23:48:19
by Vsevolod Ievgiienko (EldoS Corp.)

Hello.

PP_KEYEXCHANGE_PIN can be set using TElX509Certificate.KeyMaterial.KeyExchangePIN property.
#21445
Posted: 09/12/2012 07:40:18
by Zdenek Mukensnabl (Priority Standard support level)
Joined: 09/05/2012
Posts: 15

Hi,
I test singning of PDF document, I found event
Code
void __fastcall TForm1::PDFDocumentProgress(TObject *Sender, int Percent, bool &Cancel)

{
  memInfo->Lines->Add(Sender->ClassName() + " " + String(Percent));
  Application->ProcessMessages();
}

But when I write parameters Sender and Percent into memo, I get following output. Why Percent value is the same and why percent grow periodicaly?
Quote

Start...
TElPDFDocument 0
TElPDFDocument 0
TElPDFDocument 1
TElPDFDocument 1
TElPDFDocument 2
TElPDFDocument 2
TElPDFDocument 3
TElPDFDocument 3
TElPDFDocument 4
TElPDFDocument 4
TElPDFDocument 5
TElPDFDocument 5
TElPDFDocument 6
TElPDFDocument 6
TElPDFDocument 7
TElPDFDocument 7
TElPDFDocument 8
TElPDFDocument 8
TElPDFDocument 9
TElPDFDocument 9
TElPDFDocument 10
TElPDFDocument 10
TElPDFDocument 11
TElPDFDocument 11
TElPDFDocument 12
TElPDFDocument 12
TElPDFDocument 13
TElPDFDocument 13
TElPDFDocument 14
TElPDFDocument 14
TElPDFDocument 15
TElPDFDocument 15
TElPDFDocument 16
TElPDFDocument 16
TElPDFDocument 17
TElPDFDocument 17
TElPDFDocument 18
TElPDFDocument 18
TElPDFDocument 19
TElPDFDocument 19
TElPDFDocument 20
TElPDFDocument 20
TElPDFDocument 21
TElPDFDocument 21
TElPDFDocument 22
TElPDFDocument 22
TElPDFDocument 23
TElPDFDocument 23
TElPDFDocument 24
TElPDFDocument 24
TElPDFDocument 25
TElPDFDocument 25
TElPDFDocument 26
TElPDFDocument 26
TElPDFDocument 27
TElPDFDocument 27
TElPDFDocument 28
TElPDFDocument 28
TElPDFDocument 29
TElPDFDocument 29
TElPDFDocument 30
TElPDFDocument 30
TElPDFDocument 31
TElPDFDocument 31
TElPDFDocument 32
TElPDFDocument 32
TElPDFDocument 33
TElPDFDocument 33
TElPDFDocument 34
TElPDFDocument 34
TElPDFDocument 35
TElPDFDocument 35
TElPDFDocument 36
TElPDFDocument 36
TElPDFDocument 37
TElPDFDocument 37
TElPDFDocument 38
TElPDFDocument 38
TElPDFDocument 39
TElPDFDocument 39
TElPDFDocument 40
TElPDFDocument 40
TElPDFDocument 41
TElPDFDocument 41
TElPDFDocument 42
TElPDFDocument 42
TElPDFDocument 43
TElPDFDocument 43
TElPDFDocument 44
TElPDFDocument 44
TElPDFDocument 45
TElPDFDocument 45
TElPDFDocument 46
TElPDFDocument 46
TElPDFDocument 47
TElPDFDocument 47
TElPDFDocument 48
TElPDFDocument 48
TElPDFDocument 49
TElPDFDocument 50
TElPDFDocument 50
TElPDFDocument 51
TElPDFDocument 51
TElPDFDocument 52
TElPDFDocument 52
TElPDFDocument 53
TElPDFDocument 53
TElPDFDocument 54
TElPDFDocument 54
TElPDFDocument 55
TElPDFDocument 55
TElPDFDocument 56
TElPDFDocument 56
TElPDFDocument 57
TElPDFDocument 57
TElPDFDocument 58
TElPDFDocument 58
TElPDFDocument 59
TElPDFDocument 59
TElPDFDocument 60
TElPDFDocument 60
TElPDFDocument 61
TElPDFDocument 61
TElPDFDocument 62
TElPDFDocument 62
TElPDFDocument 63
TElPDFDocument 63
TElPDFDocument 64
TElPDFDocument 64
TElPDFDocument 65
TElPDFDocument 65
TElPDFDocument 66
TElPDFDocument 66
TElPDFDocument 67
TElPDFDocument 67
TElPDFDocument 68
TElPDFDocument 68
TElPDFDocument 69
TElPDFDocument 69
TElPDFDocument 70
TElPDFDocument 70
TElPDFDocument 71
TElPDFDocument 71
TElPDFDocument 72
TElPDFDocument 72
TElPDFDocument 73
TElPDFDocument 73
TElPDFDocument 74
TElPDFDocument 74
TElPDFDocument 75
TElPDFDocument 75
TElPDFDocument 76
TElPDFDocument 76
TElPDFDocument 77
TElPDFDocument 77
TElPDFDocument 78
TElPDFDocument 78
TElPDFDocument 79
TElPDFDocument 79
TElPDFDocument 80
TElPDFDocument 80
TElPDFDocument 81
TElPDFDocument 81
TElPDFDocument 82
TElPDFDocument 82
TElPDFDocument 83
TElPDFDocument 83
TElPDFDocument 84
TElPDFDocument 84
TElPDFDocument 85
TElPDFDocument 85
TElPDFDocument 86
TElPDFDocument 86
TElPDFDocument 87
TElPDFDocument 87
TElPDFDocument 88
TElPDFDocument 88
TElPDFDocument 89
TElPDFDocument 89
TElPDFDocument 90
TElPDFDocument 90
TElPDFDocument 91
TElPDFDocument 91
TElPDFDocument 92
TElPDFDocument 92
TElPDFDocument 93
TElPDFDocument 93
TElPDFDocument 94
TElPDFDocument 94
TElPDFDocument 95
TElPDFDocument 95
TElPDFDocument 96
TElPDFDocument 96
TElPDFDocument 97
TElPDFDocument 97
TElPDFDocument 98
TElPDFDocument 98
TElPDFDocument 99
TElPDFDocument 100
TElPDFDocument 0
TElPDFDocument 0
TElPDFDocument 11
TElPDFDocument 22
TElPDFDocument 33
TElPDFDocument 44
TElPDFDocument 55
TElPDFDocument 66
TElPDFDocument 77
TElPDFDocument 88
TElPDFDocument 100
Stop...
#21446
Posted: 09/12/2012 07:42:48
by Eugene Mayevski (EldoS Corp.)

Values are rounded, consequently several roundings can lead to the same integer value.

If you don't like this, you can remember the last reported percentage and update state only when the newly reported percentage differs from the remembered one.


Sincerely yours
Eugene Mayevski
#21447
Posted: 09/12/2012 07:53:21
by Zdenek Mukensnabl (Priority Standard support level)
Joined: 09/05/2012
Posts: 15

Hi,
in the percentage list is range 0..100 twice, why is different operation, how can I get operation?
#21448
Posted: 09/12/2012 07:58:51
by Eugene Mayevski (EldoS Corp.)

1) Who said it's a different operation?
2)OnProgress is informational event, which provides what it provides, not more. Internal details are not reported and this is not needed.


Sincerely yours
Eugene Mayevski
#21449
Posted: 09/12/2012 08:02:31
by Zdenek Mukensnabl (Priority Standard support level)
Joined: 09/05/2012
Posts: 15

Hi,
can you tell me what is first range 0..100 percent and second range 0..100 percent, why is it one range 0..100%?
#21451
Posted: 09/12/2012 08:17:48
by Eugene Mayevski (EldoS Corp.)

When the file is read and parsed, first iteration is reading the file and building the list of complex objects, the next iteration is loading and parsing of complex objects. That's why you get two-step progress.


Sincerely yours
Eugene Mayevski
#21453
Posted: 09/12/2012 08:34:33
by Dmytro Bogatskyy (EldoS Corp.)

In fact, in your particular case it is simple load and then save operations.
Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.

Reply

Statistics

Topic viewed 4641 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!