digital-signature

Android Studio: Installation failed since APK was not signed

心不动则不痛 提交于 2019-11-30 11:31:32
I am attempting to run my app in an emulator and have been receiving the following error: Installation failed since the APK was either not signed, or signed incorrectly. If this is a Gradle-based project, then make sure the signing configuration is specified in the Gradle build script. I am attempting to run the app with a debug setting so signing the app should not be necessary as it will be given a temporary signature upon building. This happens often when you install the same app generated on a different computer. Even the unsigned apk has a signature, so your phone is confused why you're

What changed in the driver signature requirements for Windows 8?

巧了我就是萌 提交于 2019-11-30 11:26:29
I've got a passthrough NDIS intermediate driver, consisting of two .inf files (one standard and one miniport) and a .sys file. Because of the Windows 7 driver signing requirements, I had to get a code-signing certificate and sign the .sys file in order for the driver to install on a 64-bit system. This works fine, and I have many successful Windows 7 installs. However, the same installer fails on the Windows 8 Consumer Preview (64-bit). If I boot with Windows Signature Enforcement turned off, it installs correctly, so it's definitely a signature issue. What new requirements were added between

Verify RFC 3161 trusted timestamp

*爱你&永不变心* 提交于 2019-11-30 10:44:11
问题 In my build process, I want to include a timestamp from an RFC-3161-compliant TSA. At run time, the code will verify this timestamp, preferably without the assistance of a third-party library. (This is a .NET application, so I have standard hash and asymmetric cryptography functionality readily at my disposal.) RFC 3161, with its reliance on ASN.1 and X.690 and whatnot, is not simple to implement, so for now at least, I'm using Bouncy Castle to generate the TimeStampReq (request) and parse

How to Digitally Sign a Dynamically Created PDF Document Using PDFBox?

孤人 提交于 2019-11-30 10:28:21
Pardon Me! I am poor in java. Please Correct me wherever I am wrong and improve wherever I am poor! I am trying to digitally sign a dynamically created pdf using PDFBox with the following program: Tasks in the Program: (i) Creating Template PDF (ii) Updating ByteRange, xref, startxref (iii) Constructing Original Document for Signature Creation (iv) Creating Detached Enveloped Digital Signature (v) Constructing Digitally Signed PDF Document by concatenating Original Doc Part - I, Detached Signature and Original PDF Part - II Observations: (i) pdfFileOutputStream.write(documentOutputStream

Digital Signature SunMSCAPI provider & MS Crypto API

只愿长相守 提交于 2019-11-30 08:48:11
问题 I want to sign file with the SunMSCAPI provider. As public key and signatures needs to be imported using MS Crypto API. Generally generating signatures with SHA1withRSA , ends up with big-endian to little-endian (byte order) conversion. //generate keystore with java keytool $Keytool -genkey -alias tsign -keystore c:\test\tsignjks.p12 - keyalg rsa -storetype pkcs12 In Java application: //for signing and getting keystore, assuming windows certificate is installed ..ks = KeyStore.getInstance(

Is there a standardized fixed-length encoding for EC public keys?

非 Y 不嫁゛ 提交于 2019-11-30 08:04:35
问题 I was wondering if there was (and I hope there is) a standard for public key size for ECDH (Elliptic Curve Diffie-Hellman) and ECDSA (Elliptic Curve Digital Signature Algorithm) for every curve type over prime fields (192, 224, 256, 384 and 521). 回答1: If you use one of the "named curves" then the public key size is fixed and dependent on the "field size" of your underlying curve. Compressed vs. uncompressed representation Public key sizes further depend on whether the "uncompressed"

How to verify that my orgainization signed a trusted windows binary?

别说谁变了你拦得住时间么 提交于 2019-11-30 07:12:54
This is a followup question to question 1072540, 'WinVerifyTrust to check for a specific signature?' . I want to write a C++ function Lets call it TrustedByUs of the form: bool TrustedByUs(std::string pathToBinary, std::string pathToPublicKey) The idea is that we give this function a path to a binary .dll or .exe file that has been signed with a digital signature. The pathToPublicKey string is the path to a public key of our particular signing certificate. Using the code in http://support.microsoft.com/kb/323809 it's pretty straight forward to verify that the pathToBinary file is in fact

Generate PDF with digital signature

拥有回忆 提交于 2019-11-30 07:04:05
Is it possible to generate PDF file in PHP with digital signature? An open-source solution is preferred. TCPDF starting from version 5.5.001 (released 2010-06-23) can sign generated PDF documents. It can also place transparent signature rectangle field over any bitmap/text, so clicking on the signature field brings up signature panel - cool feature. That same does seta-PDF signer, however you have to pay:-) If TCPDF extended with FPDI bridge, it can also parse already existing documents with PDF version up to 1.7 and sign it with X.509 certificate. It can 100% parse PDF documents generated by

NDK application Signature Check

廉价感情. 提交于 2019-11-30 06:55:00
I have some security key in an application. I want to store it securly. I like to store it in a native shared library (maybe generated from some code). After that I want it to be returned by a method that will check the signature of the original APK. So no one can use this file except trusted applications. I know, that ndk library could be also decompiled, but this is even harder to make reverse engineering of native code then java .class files. Question: Is there a way to calk the signature of the origin apk from the native code (c/c++)? How can I make sure that the library is called from the

Difference between SHA256withRSA and SHA256 then RSA

一个人想着一个人 提交于 2019-11-30 06:18:42
问题 What is the difference between compute a signature with the following two methods? Compute a signature with Signature.getInstance("SHA256withRSA") Compute SHA256 with MessageDigest.getInstance("SHA-256") and compute the digest with Signature.getInstance("RSA"); to get the signature? If they are different, is there a way to modify the method 2 so that both methods give the same output? I tried the following code: package mysha.mysha; import java.security.MessageDigest; import java.security