Sfoglia il codice sorgente

Fix OCB2 test dependecy checking

Artem S Vybornov 15 anni fa
parent
commit
6ee517c7cc
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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) {
 new sjcl.test.TestCase("OCB 2.0 mode tests", function (cb) {
-  if (!sjcl.cipher.aes) {
+  if (!sjcl.cipher.aes || !sjcl.mode.ocb2) {
     this.unimplemented();
     this.unimplemented();
     cb && cb();
     cb && cb();
     return;
     return;