[prev in list] [next in list] [prev in thread] [next in thread]
List: trousers-users
Subject: Re: [TrouSerS-users] verifying quote using certificates
From: "adrian golding" <adriangolding () gmail ! com>
Date: 2008-10-13 1:12:52
Message-ID: d3dcda8c0810121812w9f2ce1dlf36e93b3c8c2d1df () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
hi hal, i found out that GetAttribData is returning an error because i
didn't call it right after createkey. initially i called it quite late in
my code and it returns an error. but it is fine if i call it right after the
createkey function.
thank you - adrian
On Mon, Oct 13, 2008 at 2:11 AM, Hal Finney <hal.finney@gmail.com> wrote:
> Hi Adrian - I agree, those values certainly don't sound right. Did you
> check to see if the Tspi_GetAttribData() call is returning an error
> code? If the call fails then you might get garbage in those
> parameters. I'm not sure what could cause it to fail other than the
> hKey not having been initialized or created. If you do get an error,
> the error code might shed some light on what is going wrong.
>
> Hal
>
> On Sat, Oct 11, 2008 at 7:16 PM, adrian golding <adriangolding@gmail.com>
> wrote:
> > hello hal, i was reading another thread about verifying the quote:
> >
> http://sourceforge.net/mailarchive/message.php?msg_id=4525A0BC.9000007%40ece.cmu.edu
> >
> > with regards to this call:
> > Tspi_GetAttribData(hKey,
> > TSS_TSPATTRIB_RSAKEY_INFO,
> > TSS_TSPATTRIB_KEYINFO_RSA_MODULUS,
> >>
> >> &BlobLength, &BLOB);
> >
> > &BlobLength is an unsigned int, and &BLOB a BYTE array. Please correct
> me
> > if i'm wrong, BLOB would be a BIGNUM, and BlobLength the length of BLOB.
> > However, when i print out BlobLength, it seems too large (4131212846) for
> > BLOB. and when i tried to verify if the exponent is 65537 by calling
> > GetAttribData with the flag TSS_TSPATTRIB_KEYINFO_RSA_EXPONENT instead,
> the
> > length of the BIGNUM is also very huge (134516825).
> >
> > thanks - adrian
>
[Attachment #5 (text/html)]
<div dir="ltr">hi hal, i found out that GetAttribData is returning an error because i
didn't call it right after createkey. initially i called it quite late
in my code and it returns an error. but it is fine if i call it right
after the createkey function. <br>
<br>thank you - adrian<br><br><div class="gmail_quote">On Mon, Oct 13, 2008 at 2:11 \
AM, Hal Finney <span dir="ltr"><<a \
href="mailto:hal.finney@gmail.com">hal.finney@gmail.com</a>></span> \
wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, \
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi Adrian - I agree, those \
values certainly don't sound right. Did you<br> check to see if the \
Tspi_GetAttribData() call is returning an error<br> code? If the call fails then you \
might get garbage in those<br> parameters. I'm not sure what could cause it to \
fail other than the<br> hKey not having been initialized or created. If you do get an \
error,<br> the error code might shed some light on what is going wrong.<br>
<font color="#888888"><br>
Hal<br>
</font><div><div></div><div class="Wj3C7c"><br>
On Sat, Oct 11, 2008 at 7:16 PM, adrian golding <<a \
href="mailto:adriangolding@gmail.com">adriangolding@gmail.com</a>> wrote:<br> > \
hello hal, i was reading another thread about verifying the quote:<br> > <a \
href="http://sourceforge.net/mailarchive/message.php?msg_id=4525A0BC.9000007%40ece.cmu.edu" \
target="_blank">http://sourceforge.net/mailarchive/message.php?msg_id=4525A0BC.9000007%40ece.cmu.edu</a><br>
><br>
> with regards to this call:<br>
> Tspi_GetAttribData(hKey,<br>
> \
TSS_TSPATTRIB_RSAKEY_INFO,<br> > \
TSS_TSPATTRIB_KEYINFO_RSA_MODULUS,<br> \
>><br> >> \
&BlobLength, &BLOB);<br> ><br>
> &BlobLength is an unsigned int, and &BLOB a BYTE array. Please \
correct me<br> > if i'm wrong, BLOB would be a BIGNUM, and BlobLength the \
length of BLOB.<br> > However, when i print out BlobLength, it seems too large \
(4131212846) for<br> > BLOB. and when i tried to verify if the exponent is \
65537 by calling<br> > GetAttribData with the flag \
TSS_TSPATTRIB_KEYINFO_RSA_EXPONENT instead, the<br> > length of the BIGNUM is also \
very huge (134516825).<br> ><br>
> thanks - adrian<br>
</div></div></blockquote></div><br></div>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
TrouSerS-users mailing list
TrouSerS-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/trousers-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic