Re: Assertion when using SEC_ASN1EncodeItem with subtemplate

2010-07-29 Thread Wan-Teh Chang
On Mon, Jul 26, 2010 at 6:07 AM, Hanno Böck ha...@hboeck.de wrote: Hi, Just recently, the templates for decoding the RSA-PSS ASN1 parameters got added to cvs head (in cryptohi/seckey.c). Currently I'm working on implementing the creation of PSS signatures, so I need them also to encode. My

Re: Need help troubleshooting TLS Handshake error: CKR_ATTRIBUTE_VALUE_INVALID

2010-07-29 Thread Wan-Teh Chang
On Tue, Jul 27, 2010 at 10:09 AM, Pat lync...@gmail.com wrote: Hello, Can anyone explain what is going wrong with the following scenario? Using NSPR 4.8, NSS 3.12.6, JSS 4.3.1 with JDK 1.6_21 on Windows XP Professional SP 3.  FIPS mode is enabled. I'm trying to open an LDAP connection to

Re: Assertion when using SEC_ASN1EncodeItem with subtemplate

2010-07-29 Thread Nelson B Bolyard
On 2010-07-26 06:07 PDT, Hanno Böck wrote: Hi, Just recently, the templates for decoding the RSA-PSS ASN1 parameters got added to cvs head (in cryptohi/seckey.c). Currently I'm working on implementing the creation of PSS signatures, so I need them also to encode. My naive thought was

Re: Assertion when using SEC_ASN1EncodeItem with subtemplate

2010-07-29 Thread Hanno Böck
Am Donnerstag 29 Juli 2010 schrieb Nelson B Bolyard: That should be pss_params = PORT_ZAlloc(sizeof(*pss_params)); or, even better pss_params = PORT_ArenaZAlloc(arena, sizeof(*pss_params)); or, perhaps even better still pss_params = PORT_ArenaZNew(arena,

cmsutil: deprecated class usage

2010-07-29 Thread Alexander V Vershilov
Hello. I'm trying to build package pki-utils-1.3.1. And it fails on building cmsutils: pki-util-1.3.1/src/com/netscape/cmsutil/crypto/CryptoUtil.java at string: org.mozilla.jss.crypto.KeyPairGeneratorSp[2^i.Usage[] usage_ops, And at the class hierarchi on page

Re: Assertion when using SEC_ASN1EncodeItem with subtemplate

2010-07-29 Thread Hanno Böck
After digging down deeper into the code, it seems it fails somewhere here: http://mxr.mozilla.org/security/source/security/nss/lib/util/secasn1e.c#897 It gives state-theTemplate to the SEC_ASN1GetSubTemplate-function, while state-theTemplate points to SECOID_AlgorithmIDTemplate, which is already

Re: cmsutil: deprecated class usage

2010-07-29 Thread Kyle Hamilton
If you have something that looks like '[2^i' in your source file, it means that there's probably an 'esc' character in there as well, and it looks like someone tried to use arrow keys on a VT102-akin terminal to edit it. Delete your current tree, download the package again, unpack it, and try

Re: cmsutil: deprecated class usage

2010-07-29 Thread Alexander V Vershilov
Thanks. Thu, Jul 29, 2010 at 06:13:56PM -0700, Kyle Hamilton wrote If you have something that looks like '[2^i' in your source file, it means that there's probably an 'esc' character in there as well, and it looks like someone tried to use arrow keys on a VT102-akin terminal to edit it. I