nl_tokens: / * Copyright 2013 Research In Motion Limited .
pl_tokens: function katAES ( ) { var plainText = katAESCBCvector . plainText ; var vectors = katAESCBCvector . vectors ; var message = "<table><tbody>" ; for ( var i = 0 ; i < vectors . length ; ++ i ) { var vector = vectors [ i ] ; var params = { alg : "aes" , mode : "cbc" , key : { hex : vector . key } , iv : { hex : vector . iv } , input : { hex : vector . result } } ; var result = community . gseCrypto . decrypt ( params ) ; if ( result . error ) { alert ( result . error ) ; } else { var match = result . output . hex == plainText ; var matchText = match ? "pass" : "fail" ; message += "<tr><td class='" ; message += matchText ; message += "'>" ; message += matchText ; message += "</td><td>" ; message += result . output . <mask> ; message += "</td></tr>" ; } } log ( message ) ; }