# Modem Crashes in wipssl\_crypto example

**URL:** <https://forum.sierrawireless.com/t/modem-crashes-in-wipssl-crypto-example/5002>\
**Category:** Open AT\
**Created:** [April 11, 2011, 2:19am UTC](https://forum.sierrawireless.com/t/modem-crashes-in-wipssl-crypto-example/5002 "2011-04-11T02:19:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![myopiate](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@myopiate](https://forum.sierrawireless.com/u/myopiate)\
**Post date:** [April 11, 2011, 2:19am UTC](https://forum.sierrawireless.com/t/modem-crashes-in-wipssl-crypto-example/5002/1 "2011-04-11T02:19:29Z")

</div>

I’m using OpenAT OS package 6.35. on a FXT002

I’ve created a new project using the wipssl\_crypto example and compiled it without changing anything. There are numerous warnings but most of them are signedness problems with char array arguments or unused variables. There is one warning on the ngcDSA\_GenerateKey because the ngdsa.h header doesn’t have this but it does have a ngcDSA\_GenKey. If I change the line to ngsa\_GenKey the linker can’t find the symbol.

After downloading and running, It outputs “DSA test” and then the FXT002 reboots.

After further investigation the call to ngcDSA\_GenerateKey seems to work but it dies on ngcDSA\_Verify.

---

<div class="post-metadata">

**Author:** ![myopiate](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@myopiate](https://forum.sierrawireless.com/u/myopiate)\
**Post date:** [April 11, 2011, 2:23am UTC](https://forum.sierrawireless.com/t/modem-crashes-in-wipssl-crypto-example/5002/2 "2011-04-11T02:23:40Z")

</div>

Ok… fixed by changing line 60 of appli.c from

```auto
DECLARE_CALL_STACK( 1024 );
```

to

```auto
DECLARE_CALL_STACK( 2048 );
```

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [April 11, 2011, 6:06am UTC](https://forum.sierrawireless.com/t/modem-crashes-in-wipssl-crypto-example/5002/3 "2011-04-11T06:06:26Z")

</div>

SiWi really do need to supply some proper documentation on how to determine the Stack Sizes - see: [https://forum.sierrawireless.com/t/undocumented-how-to-decide-stack-sizes/4950/5](https://forum.sierrawireless.com/t/undocumented-how-to-decide-stack-sizes/4950/5)
