Lines Matching refs:mode
522 meta_do_operation(CK_FLAGS optype, int mode,
629 if (optype == CKF_ENCRYPT && mode == MODE_SINGLE) {
632 } else if (optype == CKF_ENCRYPT && mode == MODE_UPDATE) {
635 } else if (optype == CKF_ENCRYPT && mode == MODE_FINAL) {
639 } else if (optype == CKF_DECRYPT && mode == MODE_SINGLE) {
642 } else if (optype == CKF_DECRYPT && mode == MODE_UPDATE) {
645 } else if (optype == CKF_DECRYPT && mode == MODE_FINAL) {
649 } else if (optype == CKF_DIGEST && mode == MODE_SINGLE) {
652 } else if (optype == CKF_DIGEST && mode == MODE_UPDATE) {
656 } else if (optype == CKF_DIGEST && mode == MODE_UPDATE_WITHKEY) {
667 } else if (optype == CKF_DIGEST && mode == MODE_FINAL) {
671 } else if (optype == CKF_SIGN && mode == MODE_SINGLE) {
674 } else if (optype == CKF_SIGN && mode == MODE_UPDATE) {
678 } else if (optype == CKF_SIGN && mode == MODE_FINAL) {
682 } else if (optype == CKF_VERIFY && mode == MODE_SINGLE) {
687 } else if (optype == CKF_VERIFY && mode == MODE_UPDATE) {
691 } else if (optype == CKF_VERIFY && mode == MODE_FINAL) {
697 } else if (optype == CKF_SIGN_RECOVER && mode == MODE_SINGLE) {
700 } else if (optype == CKF_VERIFY_RECOVER && mode == MODE_SINGLE) {
734 if (mode == MODE_SINGLE || mode == MODE_FINAL) {
737 } else { /* mode == MODE_UPDATE */
743 if (mode == MODE_SINGLE || mode == MODE_FINAL) {