For the quickest reply, please use our new Customer Helpdesk and Feedback platform
 
   
 
crypto module broken on Windows?
Posted: 01 May 2007 03:49 PM   [ Ignore ]
Newbie
Rank
Total Posts:  6
Joined  2007-05-01

From the erlang shell (werl.exe or erl.exe) in a CEAN 1.2 base distribution for Windows the crypto application fails to start up:

Erlang (BEAMemulator version 5.5.4 [async-threads:0]

Eshell V5.5.4  
(abort with ^G)
1crypto:start().

=
INFO REPORT==== 1-May-2007::10:42:50 ===
    
applicationcrypto
    exited
{shutdown,{crypto_app,start,[normal,[]]}}
    type
temporary
{error
,{shutdown,{crypto_app,start,[normal,[]]}}}
2

Any help is appreciated.

-Matt


Module info:

2crypto:module_info().
[{exports,[{stop,0},
           
{info,0},
           
{md5,1},
           
{md5_init,0},
           
{md5_update,2},
           
{md5_final,1},
           
{sha,1},
           
{sha_init,0},
           
{sha_update,2},
           
{sha_final,1},
           
{md5_mac,2},
           
{md5_mac_96,2},
           
{sha_mac,2},
           
{sha_mac_96,2},
           
{des_cbc_encrypt,3},
           
{des_cbc_decrypt,3},
           
{des_cbc_ivec,1},
           
{des3_cbc_encrypt,5},
           
{des_ede3_cbc_encrypt,5},
           
{des_ede3_cbc_decrypt,5},
           
{aes_cfb_128_encrypt,3},
           
{aes_cfb_128_decrypt,3},
           
{rand_bytes,1},
           
{rand_bytes,3},
           
{rand_uniform,...},
           
{...}|...]},
 
{imports,[]},
 
{attributes,[{vsn,[240404134392053029099066172992822441397]}]},
 
{compile,[{options,[{cwd,"C:\\cygwin\\ldisk\\DAILY_~1\\OTP_BU~2.200\\OTP_SR~1\\
lib\\crypto\\src"
},
                     
{outdir,"c:/cygwin/ldisk/DAILY_~1/OTP_BU~2.200/OTP_SR~1/lib
/crypto/src/../ebin"
},
                     
debug_info]},
           
{version,"4.4.4"},
           
{time,{2007,3,27,17,57,2}},
           
{source,"c:/cygwin/ldisk/DAILY_~1/OTP_BU~2.200/OTP_SR~1/lib/crypto/sr
c/crypto.erl"
}]}] 
Profile
 
 
Posted: 02 May 2007 04:23 PM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  6
Joined  2007-05-01

Forgot to mention, the OS version is Windows XP SP2.

Oh, and the crypto application in “official” Erlang distribution for Windows does work (I’m even using the SSL libraries included with CEAN).

Profile
 
 
Posted: 10 May 2007 03:29 PM   [ Ignore ]   [ # 2 ]
Senior Member
Avatar
RankRankRankRank
Total Posts:  118
Joined  2006-11-13

code:priv_dir(crypto)
should give you something like .../cean/erlang/lib/crypto-1.5.1/priv/windows
is that right ?
is crypto-1.5.1/priv/windows/lib/crypto_drv.dll exists ?

Profile
 
 
Posted: 11 May 2007 06:08 PM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  6
Joined  2007-05-01
1code:priv_dir(crypto).
"../../../lib/crypto-1.5.1/priv" 

Yup, crypto-1.5.1/priv/windows/lib/crypto_drv.dll does exist.  Looks like the priv_dir is incorrect?

Profile
 
 
Posted: 11 May 2007 06:32 PM   [ Ignore ]   [ # 4 ]
Senior Member
Avatar
RankRankRankRank
Total Posts:  118
Joined  2006-11-13

hum

seems a cean problem.
if you copy crypto-1.5.1/priv/windows/lib into crypto-1.5.1/priv then it should work.
i’ll check that anyway, this should work as this.

Profile