Will do.  Thanks again for your help!

Le lundi 30 juin 2014 17:16:09 UTC-4, Elliot Saba a écrit :
>
> Well, glad it seems to be doing something reasonable now.  Let me know if 
> it happens again!
> -E
>
>
> On Mon, Jun 30, 2014 at 2:04 PM, Jeff Miller <[email protected] 
> <javascript:>> wrote:
>
>> I believe it was installed when I did Pkg.add("WebSockets").  I don't 
>> recall whether or not there was a warning about an insufficient Julia 
>> version.  
>>
>> I just tried removing WebSockets (which also removed Nettle), and when I 
>> added it again, it gives me Nettle 0.1.3.  I'm not sure why it originally 
>> gave me 0.1.4.
>>
>>
>>
>> Le lundi 30 juin 2014 16:06:49 UTC-4, Elliot Saba a écrit :
>>>
>>> How did you get 0.1.4 installed on Julia 0.2.1?  Hopefully that should 
>>> be difficult, as the package manager is supposed to "do the right thing" 
>>> automatically.
>>> -E
>>>
>>>
>>> On Mon, Jun 30, 2014 at 12:23 PM, Jeff Miller <[email protected]> 
>>> wrote:
>>>
>>>> Ah, I see.  I had Nettle version 0.1.4 (which requires Julia version 
>>>> 0.3?).  I reverted to Nettle version 0.1.3 and it works now.
>>>>
>>>> Thanks, Elliot!    
>>>>
>>>> Jeff
>>>>
>>>> Le lundi 30 juin 2014 14:47:15 UTC-4, Elliot Saba a écrit :
>>>>>
>>>>> Hmm, what version of Nettle do you have installed? Pkg.status() should 
>>>>> tell you.
>>>>> -E
>>>>>
>>>>>
>>>>> On Mon, Jun 30, 2014 at 7:19 AM, jwmillerusa <[email protected]> 
>>>>> wrote:
>>>>>
>>>>>> Hi, I get the following error when running the hashing functionality 
>>>>>> example for Nettle:
>>>>>>
>>>>>> julia> using Nettle
>>>>>>> julia> h = HashState(SHA256)
>>>>>>> SHA256 Hash state
>>>>>>> julia> update!(h, "this is a test")
>>>>>>> ERROR: no method pointer(ASCIIString,)
>>>>>>>  in update! at C:\Users\jeff\.julia\Nettle\src\hash.jl:74
>>>>>>> WARNING: backtraces on your platform are often misleading or 
>>>>>>> partially incorrect
>>>>>>
>>>>>>
>>>>>> The issue seems to be with the update! function:
>>>>>>
>>>>>>     @eval function update!(state::HashState{$name},data)
>>>>>>>       ccall($fptr_update,Void,(Ptr{Void},Csize_t,Ptr{Uint8}),state
>>>>>>> .ctx,sizeof(data),pointer(data))
>>>>>>>     end
>>>>>>
>>>>>>
>>>>>> If I replace pointer(data) by just data, it seems to work (but I'm 
>>>>>> not sure if this is a good idea or not!):
>>>>>>
>>>>>> julia> using Nettle
>>>>>>> julia> h = HashState(SHA256)
>>>>>>> SHA256 Hash state
>>>>>>> julia> update!(h, "this is a test")
>>>>>>> julia> hexdigest!(h)
>>>>>>> "2e99758548972a8e8822ad47fa1017ff72f06f3ff6a016851f45c398732bc50c"
>>>>>>
>>>>>>
>>>>>> Is this a bug or am I doing something wrong?
>>>>>>
>>>>>> I'm using Julia version 0.2.1 on 64-bit Windows 7. Thanks.    
>>>>>>     
>>>>>> Jeff
>>>>>>
>>>>>
>>>>>
>>>
>

Reply via email to