signature

SLAB, out-of-process: changing the signature of an event source method causes incorrect event logging

二次信任 提交于 2019-12-01 09:52:02
问题 I implemented an event source class for logging events. After repeatedly changing the signature (parameters names and parameters types) of one method that logs events, the events are no longer correctly logged. For instance when an event is logged, instead of setting the Payload with the current parameters name, the events are logged using the parameters used for the previous version of the method. Eg: Version n of the method: [Event(5, Message = "Action: {0}", Task = Tasks.PAGE, Keywords =

Verify SHA1withRSA signature generated in Java (Android) with phpseclib

一曲冷凌霜 提交于 2019-12-01 06:36:34
This is what I want to do: Generate a 512 bit RSA keypair in Java/Android Generate a SHA1withRSA signature for some message in Java Send message, signature and public key to PHP (for testing this will be done at the same time) Verify the message in PHP using phpseclib What I got so far: On the Java side: String msg = "Test message"; // generate keypair KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA"); keyGen.initialize(512); KeyPair keyPair = keyGen.generateKeyPair(); // generate signature Signature signature = Signature.getInstance("SHA1withRSA"); signature.initSign(keyPair

C# Support for RSA SHA 256 signing for individual XML elements

浪子不回头ぞ 提交于 2019-12-01 00:41:57
I have encountered a blocker with the .NET Framework version 4.5 to do with signing of XML with digital signatures. My problem is based around the need to sign individual XML elements with X.509 certificate with the RSA SHA-256 algorithm. I have read many .NET posts on this topic and it appears that there is a solution originally developed in the CLR Security project RSAPKCS1SHA256SignatureDescription.cs class. RSAPKCS1SHA256SignatureDescription has of course since been incorporated into the .net runtime and as of .NET 4.5 is now available under the distributed binary System.Deployment.dll. I

Why does constraining a Perl 6 named parameter to a definite value make it a required value?

我们两清 提交于 2019-11-30 23:43:53
问题 Consider these subroutines that all take a single named parameter. Named parameters should be optional and I haven't seen anything to say there are exceptions to that. With no type constraints there's no problem; the named parameter is not required. With a type constraint that can accept a type object (no annotation, :U , and :_ ) there is no problem. Parameter '$quux' of routine 'quux' must be an object instance of type 'Int', not a type object of type 'Int'. Did you forget a '.new'? in sub

Obtain generated debug key/certificate for developing on different machines

会有一股神秘感。 提交于 2019-11-30 20:16:49
I'm using Eclipse to develop an app and I have two computers (a desktop and laptop) that I want to use to develop this app. I recently set up my laptop with Eclipse and imported the project over to that computer. However, I realized that I can't launch the application from my laptop onto my phone because the signature that is automatically generated when I build the app from my desktop doesn't match the one that is automatically generated on the laptop; unless I uninstall it on the phone. Does anyone know how to export the automatically generated signature from one Eclipse and import it into

Add signature image on PDF without digitally signing it using iTextSharp

北战南征 提交于 2019-11-30 17:11:36
问题 I am using iTextSharp to work with PDFs. I want to add signature image to Signature field without digitally signing the document (without any involvement of certificate). Is it possible? I am able to work with digital signing but I also want to just add signature image on signature field without any use of certificates. UPDATE: Write now I have following code. // Set PDF Reader and PDF Stamper PdfReader reader = new PdfReader(sourceDocument); // File stream where PDF will write FileStream

Error when verifying ECDSA signature in Java with BouncyCastle

折月煮酒 提交于 2019-11-30 14:58:56
问题 I have tested a solution to verify an ECDSA signature (How can I get a PublicKey object from EC public key bytes?) that works perfect with the given data. This is the data: byte[] pubKey = DatatypeConverter.parseHexBinary("049a55ad1e210cd113457ccd3465b930c9e7ade5e760ef64b63142dad43a308ed08e2d85632e8ff0322d3c7fda14409eafdc4c5b8ee0882fe885c92e3789c36a7a"); byte[] message = DatatypeConverter.parseHexBinary(

Error when verifying ECDSA signature in Java with BouncyCastle

允我心安 提交于 2019-11-30 13:41:48
I have tested a solution to verify an ECDSA signature ( How can I get a PublicKey object from EC public key bytes? ) that works perfect with the given data. This is the data: byte[] pubKey = DatatypeConverter.parseHexBinary("049a55ad1e210cd113457ccd3465b930c9e7ade5e760ef64b63142dad43a308ed08e2d85632e8ff0322d3c7fda14409eafdc4c5b8ee0882fe885c92e3789c36a7a"); byte[] message = DatatypeConverter.parseHexBinary("54686973206973206a75737420736f6d6520706f696e746c6573732064756d6d7920737472696e672e205468616e6b7320616e7977617920666f722074616b696e67207468652074696d6520746f206465636f6465206974203b2d29");

Internet Explorer shows valid certificate as “corrupt or invalid signature”

大城市里の小女人 提交于 2019-11-30 08:55:36
We have signed our product installation using SignTool.exe and GoDaddy certificate, and our signature appears valid in windows and using "verify" option of SignTool. However, when the file is downloaded in Internet Explorer 9, it reports that "The signature of is corrupt or invalid". We obviously don't want our users to have problems with installation of our setup, so I need help in fixing it. Strange that there is basically no help on this issue online. I've discovered through trial and error that this is caused by a Windows update that breaks IE: Cumulative Security Update for Internet

Java equivalent of C# XML signing method

给你一囗甜甜゛ 提交于 2019-11-30 07:34:24
I have written the following .NET Framework 3.5 C# method which takes the location of an XML document and an object representation of an X509 digital certificate (with a private key) and returns the XML document as an object with the XML Signature (XMLDsig) embedded as first child element of the root. The thing is that I direly need to be able to do the exact same procedure with Java SE 6, but I have not written any Java in ages and have no clue where to begin. Can anyone provide the equivalent method in Java code that produces the exact same XML output? private static XmlDocument