Secrecy amplification for TinyOS platform