crypto

How to get the hash algorithm name using the OID in Java?

I am trying to compute the hash of a byte array in Java. To get a MessageDigest instance, I need to inform the hash name, but I only have the hash OID. Is there another way to do this or an existing map from hash OID to hash names? String oid = "1.2.3.4.5"; String digestAlgorithmName = getDigestAlgorithmName(oid); MessageDigest message...

What does the Filter::Crypto module do to the DATA section?

I'm trying to package a Perl script to EXE using the pp utility bundled with PAR::Packer with the Filter::Crypto on. But something is wrong there. Without the filter, things are ok. With it, no. I think it has something to do with the DATA section in the script. The following simplified script might demonstrate the problem but I'm not su...

Where is Python support for PEM + RSA + DES3?

I need a Python library that supports PEM files and both RSA signing and DES3 encryption. pycrypto doesn't seem to support PEM, and its mechanism for loading existing keys is undocumented and cryptic. m2crypto doesn't seem to support DES/DES3, oddly. I've been running an openssl subprocess, but I'd rather have something built in and pre...

MSCRYPTO: How to import RSA key from pkcs#12 into Microsoft Enhanced RSA and AES CSP?

According to the MSDN (http://msdn.microsoft.com/en-us/library/aa387314%28v=VS.85%29.aspx) the PFXImportCertStore function imports the cert/key into Base CSP (MS_STRONG_PROV) or Enhanced CSP (MS_ENHANCED_PROV). However, to use RSA/SHA2 signatures, I need to import the key into the Enhanced RSA and AES CSP (MS_ENH_RSA_AES_PROV) and I can'...

Does Wifi have any form of forward error correction?

I have what I suspect is a malfunctioning wireless access point, the symptom of which is that OS X occasionally says 'your connection may be compromised' and disconnects for a minute. As far as I can see by looking at dmesg lines which say AirPort: Message Integrity Failure detected (G) this indicates that some decrypted packet has ...

slowAES encryption and java descryption

Hi , I've tried to implement the same steps as discussed in AES .NET but with no success , i can't seem to get java and slowAes to play toghter ... attached is my code i'm sorry i can't add more this is my first time trying to deal with encryption would appreciate any help private static final String ALGORITHM = "AES"; private static ...

.NET Equivalents to Java Crypto stuff

Hi Could anybody tell me what the equivalent .NET classes/methods are to the following Java methods: decryptCipher = Cipher.getInstance("DES/ECB/PKCS5Padding"); decryptCipher.init(2, getKey(0)); decryptCipher.doFinal(data); where getKey() returns an object of type SecretKeySpec (data is dummy): public static Key getKey(int cipher) {...

Crypto Next Generation API cross-platform compatibility issues

My problem is that I've written an application entirely using CNG on Windows 7, and now I have to port it backwards to Vista. Vista has CNG of course, but the SSL provider is an older version and is not always compatible - for example it won't import opaque keys exported from the Win7 version of the same provider. E.g. this code works ...

AES encryption library compatible with Python 2.7 for Windows

Any recommendations on an AES encryption library that's compatible with Python 2.7 for Windows? In the past we've used m2crypto with Python 2.6, but there's no version of m2crypto for Python 2.7 and our attempts to build a version from source have failed. Thank you, Malcolm ...