Re: Problems with token and rsa and possible bug with cryptAddPrivateKey

JexMcByte <[email protected]> Thu, 26 Jul 2012 15:41:40 -0700 (PDT)
Newsgroups gmane.comp.encryption.cryptlib
Message-ID <[email protected]>
If I provide a password it fails at key_acl.c line 665:

				return( ( keymgmtACL->idUseFlags & accessType ) ? \
						CRYPT_ARGERROR_STR2 : CRYPT_ARGERROR_STR1 );

If I don't cryptapi.c line 1117
	if( cmd->noStrArgs == 1 && \
		( cmd->strArgLen[ 0 ] < MIN_NAME_LENGTH || \
		  cmd->strArgLen[ 0 ] >= MAX_ATTRIBUTE_SIZE ) )
		return( CRYPT_ARGERROR_STR1 );

the places where it fails are the same if I provide
CRYPT_DEVINFO_AUTHENT_USER or not

Jacques


Peter Gutmann wrote:
> 
> JexMcByte <[email protected]> writes:
> 
>>cryptLogin fails with INTERNAL_ERROR at cryptapi.c line 1872 The token has
>>been  initialised using the provided tool.
> 
> I'm not sure what you're referring to here, there's no documented thing
> called
> cryptLogin.  You need to read the section "Activating and Controlling
> Cryptographic Devices" in the manual.
> 
>>Regarding the possible bug with cryptAddPrivateKey, where you able to
>>simulate it ?
> 
> There's no bug, you haven't logged into the token (and, as I mentioned 
> earlier, possibly not initialised it as described in the manual) so you
> can't 
> perform any operations with it.
> 
> Peter.
> 
> _______________________________________________
> Cryptlib mailing list
> [email protected] via Mail:
> [email protected]
> Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
> http://news.gmane.org/gmane.comp.encryption.cryptlib
> Posts from non-subscribed addresses are blocked to prevent spam, please
> subscribe in order to post messages.
> 
> 
-- 
View this message in context: http://old.nabble.com/Problems-with-token-and-rsa-and-possible-bug-with-cryptAddPrivateKey-tp34216174p34218154.html
Sent from the Cryptlib mailing list archive at Nabble.com.


_______________________________________________
Cryptlib mailing list
[email protected] via Mail: [email protected]
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.