+ switch (ops->mode) {
+
+ case SILC_CIPHER_MODE_CTR:
+ SILC_CTR_MSB_64_32(iv, tmp, cipher->block, des->padlen, src, dst,
+ des3_encrypt(des, tmp, tmp));
+ break;
+
+ case SILC_CIPHER_MODE_ECB:
+ {
+ SilcUInt32 nb = len >> 3;
+
+ while (nb--) {
+ SILC_GET32_MSB(tmp[0], src);
+ SILC_GET32_MSB(tmp[1], src + 4);
+ des3_encrypt(des, tmp, tmp);
+ SILC_PUT32_MSB(tmp[0], dst);
+ SILC_PUT32_MSB(tmp[1], dst + 4);
+ src += 8;
+ dst += 8;
+ }
+ }
+ break;