فهرست منبع

Merge pull request #27 from vibornoff/ocb2-test-fix

Fix OCB2 test dependecy checking
bitwiseshiftleft 15 سال پیش
والد
کامیت
71ef53f140
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      test/ocb2_test.js

+ 1 - 1
test/ocb2_test.js

@@ -1,5 +1,5 @@
 new sjcl.test.TestCase("OCB 2.0 mode tests", function (cb) {
-  if (!sjcl.cipher.aes) {
+  if (!sjcl.cipher.aes || !sjcl.mode.ocb2) {
     this.unimplemented();
     cb && cb();
     return;