738 |
736 |
739 RUN_TEST_STEP -1 CTestHandler listkeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0004-115 |
737 RUN_TEST_STEP -1 CTestHandler listkeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0004-115 |
740 |
738 |
741 RUN_TEST_STEP -1 CTestHandler delete |
739 RUN_TEST_STEP -1 CTestHandler delete |
742 |
740 |
|
741 RUN_TEST_STEP -1 CTestHandler init tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0004-118 |
|
742 |
743 RUN_TEST_STEP -1 CTestHandler delete |
743 RUN_TEST_STEP -1 CTestHandler delete |
744 |
744 |
745 RUN_TEST_STEP -1 CTestHandler init tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0004-118 |
745 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0004 |
|
746 |
|
747 |
|
748 |
|
749 |
|
750 |
|
751 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0005 |
|
752 |
|
753 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0005 |
|
754 |
|
755 //! @SYMTestCaseDesc ////////////////////////////////////////////////////////////////////////////////// |
|
756 |
|
757 //! Opening Unfied Key Store first in user mode, then in manager mode |
|
758 |
|
759 //! ////////////////////////////////////////////////////////////////////////////////// |
|
760 |
|
761 //! @SYMTestActions 1) 1.3.3.1,Opening a key store in user mode |
|
762 |
|
763 //! 2) 1.3.3.2,Opening key store again in manager mode |
|
764 |
|
765 //! 3) 1.3.3.3,Closing key store |
|
766 |
|
767 //! 4) 1.3.3.3.1,Closing key store |
|
768 |
|
769 RUN_TEST_STEP -1 CTestHandler init tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0005-001 |
|
770 |
|
771 RUN_TEST_STEP -1 CTestHandler init tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0005-002 |
746 |
772 |
747 RUN_TEST_STEP -1 CTestHandler delete |
773 RUN_TEST_STEP -1 CTestHandler delete |
748 |
774 |
749 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0004 |
775 RUN_TEST_STEP -1 CTestHandler delete |
750 |
776 |
751 |
777 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0005 |
752 |
778 |
753 |
779 |
754 |
780 |
755 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0005 |
781 |
756 |
782 |
757 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0005 |
783 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0006 |
|
784 |
|
785 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0006 |
758 |
786 |
759 //! @SYMTestCaseDesc ////////////////////////////////////////////////////////////////////////////////// |
787 //! @SYMTestCaseDesc ////////////////////////////////////////////////////////////////////////////////// |
760 |
788 |
761 //! Opening Unfied Key Store first in user mode, then in manager mode |
789 //! Opening Unified Key Store first in manager mode, then in user mode |
762 |
790 |
763 //! ////////////////////////////////////////////////////////////////////////////////// |
791 //! ////////////////////////////////////////////////////////////////////////////////// |
764 |
792 |
765 //! @SYMTestActions 1) 1.3.3.1,Opening a key store in user mode |
793 //! @SYMTestActions 1) 1.3.4.1,Opening a key store in manager mode |
766 |
794 |
767 //! 2) 1.3.3.2,Opening key store again in manager mode |
795 //! 2) 1.3.4.2,Opening key store again in user mode |
768 |
796 |
769 //! 3) 1.3.3.3,Closing key store |
797 //! 3) 1.3.4.3,Closing key store |
770 |
798 |
771 //! 4) 1.3.3.3.1,Closing key store |
799 //! 4) 1.3.4.3.1,Closing key store |
772 |
800 |
773 RUN_TEST_STEP -1 CTestHandler init tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0005-001 |
801 RUN_TEST_STEP -1 CTestHandler init tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0006-001 |
774 |
802 |
775 RUN_TEST_STEP -1 CTestHandler init tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0005-002 |
803 RUN_TEST_STEP -1 CTestHandler init tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0006-002 |
776 |
804 |
777 RUN_TEST_STEP -1 CTestHandler delete |
805 RUN_TEST_STEP -1 CTestHandler delete |
778 |
806 |
779 RUN_TEST_STEP -1 CTestHandler delete |
807 RUN_TEST_STEP -1 CTestHandler delete |
780 |
808 |
781 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0005 |
809 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0006 |
782 |
810 |
783 |
811 |
784 |
812 |
785 |
813 |
786 |
814 |
787 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0006 |
815 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0007 |
788 |
816 |
789 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0006 |
817 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0007 |
790 |
818 |
791 //! @SYMTestCaseDesc ////////////////////////////////////////////////////////////////////////////////// |
819 //! @SYMTestCaseDesc ////////////////////////////////////////////////////////////////////////////////// |
792 |
820 |
793 //! Opening Unified Key Store first in manager mode, then in user mode |
821 //! @SYMTestActions 1) 1.4.0,Opening key store in manager mode |
794 |
822 |
795 //! ////////////////////////////////////////////////////////////////////////////////// |
823 RUN_TEST_STEP -1 CTestHandler init tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0007-001 |
796 |
824 |
797 //! @SYMTestActions 1) 1.3.4.1,Opening a key store in manager mode |
825 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0007 |
798 |
826 |
799 //! 2) 1.3.4.2,Opening key store again in user mode |
827 |
800 |
828 |
801 //! 3) 1.3.4.3,Closing key store |
829 |
802 |
830 |
803 //! 4) 1.3.4.3.1,Closing key store |
831 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0008 |
804 |
832 |
805 RUN_TEST_STEP -1 CTestHandler init tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0006-001 |
833 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0008 |
806 |
834 |
807 RUN_TEST_STEP -1 CTestHandler init tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0006-002 |
835 //! @SYMTestCaseDesc 1.4.1 Test key usage |
|
836 |
|
837 //! |
|
838 |
|
839 //! 1.4.1.1. Test keys with no usage |
|
840 |
|
841 //! @SYMTestActions 1) 1.4.1.1.1, Add key (usage: none) |
|
842 |
|
843 //! 2) 1.4.1.1.2, Set passphrase timeout to "don't cache" |
|
844 |
|
845 //! 3) 1.4.1.1.3, Check info |
|
846 |
|
847 //! 4) 1.4.1.1.4, Sign, expect failure |
|
848 |
|
849 //! 5) 1.4.1.1.5, Decrypt, expect failure |
|
850 |
|
851 //! 6) 1.4.1.1.6, Derive, expect failure |
|
852 |
|
853 //! 7) 1.4.1.1.7, Delete it again |
|
854 |
|
855 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0008-001 |
|
856 |
|
857 RUN_TEST_STEP -1 CTestHandler settimeout tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0008-002 |
|
858 |
|
859 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0008-003 |
|
860 |
|
861 RUN_TEST_STEP !Error=-11007 -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0008-004 |
|
862 |
|
863 RUN_TEST_STEP !Error=-11007 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0008-005 |
|
864 |
|
865 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0008-006 |
|
866 |
|
867 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0008-007 |
|
868 |
|
869 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0008 |
|
870 |
|
871 |
|
872 |
|
873 |
|
874 |
|
875 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0009 |
|
876 |
|
877 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0009 |
|
878 |
|
879 //! @SYMTestCaseDesc 1.4.1.2. Test keys with sign usage only |
|
880 |
|
881 //! @SYMTestActions 1) 1.4.1.2.1, Add key |
|
882 |
|
883 //! 2) 1.4.1.2.2, Check info |
|
884 |
|
885 //! 3) 1.4.1.2.3, Sign, expect success |
|
886 |
|
887 //! 4) 1.4.1.2.4, Decrypt, expect failure |
|
888 |
|
889 //! 5) 1.4.1.2.5, Derive, expect failure |
|
890 |
|
891 //! 6) 1.4.1.2.6, Delete it again |
|
892 |
|
893 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0009-001 |
|
894 |
|
895 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0009-002 |
|
896 |
|
897 RUN_TEST_STEP -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0009-003 |
|
898 |
|
899 RUN_TEST_STEP !Error=-11007 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0009-004 |
|
900 |
|
901 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0009-005 |
|
902 |
|
903 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0009-006 |
|
904 |
|
905 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0009 |
|
906 |
|
907 |
|
908 |
|
909 |
|
910 |
|
911 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0010 |
|
912 |
|
913 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0010 |
|
914 |
|
915 //! @SYMTestCaseDesc 1.4.1.3. Test keys with signRecover usage only |
|
916 |
|
917 //! @SYMTestActions 1) 1.4.1.3.1, Add key |
|
918 |
|
919 //! 2) 1.4.1.3.2, Check info |
|
920 |
|
921 //! 3) 1.4.1.3.3, Sign, expect success |
|
922 |
|
923 //! 4) 1.4.1.3.4, Decrypt, expect failure |
|
924 |
|
925 //! 5) 1.4.1.3.5, Derive, expect failure |
|
926 |
|
927 //! 6) 1.4.1.3.6, Delete it again |
|
928 |
|
929 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0010-001 |
|
930 |
|
931 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0010-002 |
|
932 |
|
933 RUN_TEST_STEP -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0010-003 |
|
934 |
|
935 RUN_TEST_STEP !Error=-11007 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0010-004 |
|
936 |
|
937 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0010-005 |
|
938 |
|
939 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0010-006 |
|
940 |
|
941 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0010 |
|
942 |
|
943 |
|
944 |
|
945 |
|
946 |
|
947 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0011 |
|
948 |
|
949 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0011 |
|
950 |
|
951 //! @SYMTestCaseDesc 1.4.1.5. Test keys with decrypt usages |
|
952 |
|
953 //! @SYMTestActions 1) 1.4.1.5.1, Add key |
|
954 |
|
955 //! 2) 1.4.1.5.2, Check info |
|
956 |
|
957 //! 3) 1.4.1.5.3, Sign, expect failure |
|
958 |
|
959 //! 4) 1.4.1.5.4, Decrypt |
|
960 |
|
961 //! 5) 1.4.1.5.5, Derive, expect failure |
|
962 |
|
963 //! 6) 1.4.1.5.6, Delete it again |
|
964 |
|
965 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0011-001 |
|
966 |
|
967 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0011-002 |
|
968 |
|
969 RUN_TEST_STEP !Error=-11007 -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0011-003 |
|
970 |
|
971 RUN_TEST_STEP -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0011-004 |
|
972 |
|
973 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0011-005 |
|
974 |
|
975 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0011-006 |
|
976 |
|
977 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0011 |
|
978 |
|
979 |
|
980 |
|
981 |
|
982 |
|
983 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0012 |
|
984 |
|
985 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0012 |
|
986 |
|
987 //! @SYMTestCaseDesc 1.4.1.8. Test keys with unwrap usage |
|
988 |
|
989 //! @SYMTestActions 1) 1.4.1.8.1, Add key |
|
990 |
|
991 //! 2) 1.4.1.8.2, Check info |
|
992 |
|
993 //! 3) 1.4.1.8.3, Sign, expect failure |
|
994 |
|
995 //! 4) 1.4.1.8.4, Decrypt |
|
996 |
|
997 //! 5) 1.4.1.8.5, Derive, expect failure |
|
998 |
|
999 //! 6) 1.4.1.8.6, Delete it again |
|
1000 |
|
1001 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0012-001 |
|
1002 |
|
1003 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0012-002 |
|
1004 |
|
1005 RUN_TEST_STEP !Error=-11007 -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0012-003 |
|
1006 |
|
1007 RUN_TEST_STEP -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0012-004 |
|
1008 |
|
1009 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0012-005 |
|
1010 |
|
1011 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0012-006 |
|
1012 |
|
1013 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0012 |
|
1014 |
|
1015 |
|
1016 |
|
1017 |
|
1018 |
|
1019 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0013 |
|
1020 |
|
1021 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0013 |
|
1022 |
|
1023 //! @SYMTestCaseDesc 1.4.1.9. Test DSA keys with sign usage only |
|
1024 |
|
1025 //! @SYMTestActions 1) 1.4.1.9.1, Add key |
|
1026 |
|
1027 //! 2) 1.4.1.9.2, Check info |
|
1028 |
|
1029 //! 3) 1.4.1.9.3, Sign, expect success |
|
1030 |
|
1031 //! 4) 1.4.1.9.4, Decrypt, expect failure |
|
1032 |
|
1033 //! 5) 1.4.1.9.5, Derive, expect failure |
|
1034 |
|
1035 //! 6) 1.4.1.9.6, Delete it again |
|
1036 |
|
1037 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0013-001 |
|
1038 |
|
1039 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0013-002 |
|
1040 |
|
1041 RUN_TEST_STEP -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0013-003 |
|
1042 |
|
1043 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0013-004 |
|
1044 |
|
1045 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0013-005 |
|
1046 |
|
1047 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0013-006 |
|
1048 |
|
1049 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0013 |
|
1050 |
|
1051 |
|
1052 |
|
1053 |
|
1054 |
|
1055 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0014 |
|
1056 |
|
1057 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0014 |
|
1058 |
|
1059 //! @SYMTestCaseDesc 1.4.1.10. Test DSA keys with signRecover usage only |
|
1060 |
|
1061 //! @SYMTestActions 1) 1.4.1.10.1, Add key |
|
1062 |
|
1063 //! 2) 1.4.1.10.2, Check info |
|
1064 |
|
1065 //! 3) 1.4.1.10.3, Sign, expect success |
|
1066 |
|
1067 //! 4) 1.4.1.10.4, Decrypt, expect failure |
|
1068 |
|
1069 //! 5) 1.4.1.10.5, Derive, expect failure |
|
1070 |
|
1071 //! 6) 1.4.1.10.6, Delete it again |
|
1072 |
|
1073 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0014-001 |
|
1074 |
|
1075 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0014-002 |
|
1076 |
|
1077 RUN_TEST_STEP -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0014-003 |
|
1078 |
|
1079 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0014-004 |
|
1080 |
|
1081 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0014-005 |
|
1082 |
|
1083 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0014-006 |
|
1084 |
|
1085 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0014 |
|
1086 |
|
1087 |
|
1088 |
|
1089 |
|
1090 |
|
1091 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0015 |
|
1092 |
|
1093 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0015 |
|
1094 |
|
1095 //! @SYMTestCaseDesc 1.4.1.12. Test keys with derive usage |
|
1096 |
|
1097 //! @SYMTestActions 1) 1.4.1.12.1, Add key |
|
1098 |
|
1099 //! 2) 1.4.1.12.2, Check info |
|
1100 |
|
1101 //! 3) 1.4.1.12.3, Sign, expect failure |
|
1102 |
|
1103 //! 4) 1.4.1.12.4, Decrypt, expect failure |
|
1104 |
|
1105 //! 5) 1.4.1.12.5, Derive, expect failure |
|
1106 |
|
1107 //! 6) 1.4.1.12.6, Delete it again |
|
1108 |
|
1109 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0015-001 |
|
1110 |
|
1111 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0015-002 |
|
1112 |
|
1113 RUN_TEST_STEP !Error=-11006 -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0015-003 |
|
1114 |
|
1115 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0015-004 |
|
1116 |
|
1117 RUN_TEST_STEP -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0015-005 |
|
1118 |
|
1119 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0015-006 |
|
1120 |
|
1121 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0015 |
|
1122 |
|
1123 |
|
1124 |
|
1125 |
|
1126 |
|
1127 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0016 |
|
1128 |
|
1129 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0016 |
|
1130 |
|
1131 //! @SYMTestCaseDesc 1.4.1.16. Test RSA keys with NR usage |
|
1132 |
|
1133 //! @SYMTestActions 1) 1.4.1.16.1, Add key |
|
1134 |
|
1135 //! 2) 1.4.1.16.3, Check info |
|
1136 |
|
1137 //! 3) 1.4.1.16.4, Sign, expect failure |
|
1138 |
|
1139 //! 4) 1.4.1.16.5, Decrypt, expect failure |
|
1140 |
|
1141 //! 5) 1.4.1.16.6, Derive, expect failure |
|
1142 |
|
1143 //! 6) 1.4.1.16.7, Delete it again |
|
1144 |
|
1145 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0016-001 |
|
1146 |
|
1147 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0016-002 |
|
1148 |
|
1149 RUN_TEST_STEP !Error=-11007 -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0016-003 |
|
1150 |
|
1151 RUN_TEST_STEP !Error=-11007 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0016-004 |
|
1152 |
|
1153 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0016-005 |
|
1154 |
|
1155 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0016-006 |
|
1156 |
|
1157 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0016 |
|
1158 |
|
1159 |
|
1160 |
|
1161 |
|
1162 |
|
1163 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0017 |
|
1164 |
|
1165 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0017 |
|
1166 |
|
1167 //! @SYMTestCaseDesc 1.4.1.17. Test RSA keys with NR usage |
|
1168 |
|
1169 //! @SYMTestActions 1) 1.4.1.17.1, Add key |
|
1170 |
|
1171 //! 2) 1.4.1.17.3, Check info |
|
1172 |
|
1173 //! 3) 1.4.1.17.4, Sign, expect failure |
|
1174 |
|
1175 //! 4) 1.4.1.17.5, Decrypt, expect failure |
|
1176 |
|
1177 //! 5) 1.4.1.17.6, Derive, expect failure |
|
1178 |
|
1179 //! 6) 1.4.1.17.7, Delete it again |
|
1180 |
|
1181 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0017-001 |
|
1182 |
|
1183 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0017-002 |
|
1184 |
|
1185 RUN_TEST_STEP !Error=-11006 -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0017-003 |
|
1186 |
|
1187 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0017-004 |
|
1188 |
|
1189 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0017-005 |
|
1190 |
|
1191 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0017-006 |
|
1192 |
|
1193 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0017 |
|
1194 |
|
1195 |
|
1196 |
|
1197 |
|
1198 |
|
1199 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0018 |
|
1200 |
|
1201 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0018 |
|
1202 |
|
1203 //! @SYMTestCaseDesc 1.4.2 Test access flags |
|
1204 |
|
1205 //! |
|
1206 |
|
1207 //! 1.4.2.1 Test RSA key with no access flags specified |
|
1208 |
|
1209 //! @SYMTestActions 1) 1.4.2.1.1, Add key with no flags specified |
|
1210 |
|
1211 //! 2) 1.4.2.1.2, Check info |
|
1212 |
|
1213 //! 3) 1.4.2.1.3, Delete it again |
|
1214 |
|
1215 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0018-001 |
|
1216 |
|
1217 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0018-002 |
|
1218 |
|
1219 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0018-003 |
|
1220 |
|
1221 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0018 |
|
1222 |
|
1223 |
|
1224 |
|
1225 |
|
1226 |
|
1227 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0019 |
|
1228 |
|
1229 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0019 |
|
1230 |
|
1231 //! @SYMTestCaseDesc 1.4.2.2 Test RSA key with sensitive access flag specified |
|
1232 |
|
1233 //! @SYMTestActions 1) 1.4.2.2.1, Add key |
|
1234 |
|
1235 //! 2) 1.4.2.2.2, Check info |
|
1236 |
|
1237 //! 3) 1.4.2.2.3, Delete it again |
|
1238 |
|
1239 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0019-001 |
|
1240 |
|
1241 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0019-002 |
|
1242 |
|
1243 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0019-003 |
|
1244 |
|
1245 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0019 |
|
1246 |
|
1247 |
|
1248 |
|
1249 |
|
1250 |
|
1251 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0020 |
|
1252 |
|
1253 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0020 |
|
1254 |
|
1255 //! @SYMTestCaseDesc 1.4.2.3 Test RSA key with extractable access flag specified |
|
1256 |
|
1257 //! @SYMTestActions 1) 1.4.2.3.1, Add key |
|
1258 |
|
1259 //! 2) 1.4.2.3.2, Check info |
|
1260 |
|
1261 //! 3) 1.4.2.3.3, Delete it again |
|
1262 |
|
1263 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0020-001 |
|
1264 |
|
1265 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0020-002 |
|
1266 |
|
1267 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0020-003 |
|
1268 |
|
1269 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0020 |
|
1270 |
|
1271 |
|
1272 |
|
1273 |
|
1274 |
|
1275 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0021 |
|
1276 |
|
1277 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0021 |
|
1278 |
|
1279 //! @SYMTestCaseDesc 1.4.2.4 Test RSA key with sensitive, extractable access flags specified |
|
1280 |
|
1281 //! @SYMTestActions 1) 1.4.2.4.1, Add key |
|
1282 |
|
1283 //! 2) 1.4.2.4.2, Check info |
|
1284 |
|
1285 //! 3) 1.4.2.4.3, Delete it again |
|
1286 |
|
1287 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0021-001 |
|
1288 |
|
1289 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0021-002 |
|
1290 |
|
1291 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0021-003 |
|
1292 |
|
1293 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0021 |
|
1294 |
|
1295 |
|
1296 |
|
1297 |
|
1298 |
|
1299 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0022 |
|
1300 |
|
1301 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0022 |
|
1302 |
|
1303 //! @SYMTestCaseDesc 1.4.2.5 Failure tests |
|
1304 |
|
1305 //! @SYMTestActions 1) 1.4.2.5.1, Add key, expect failure |
|
1306 |
|
1307 //! 2) 1.4.2.5.2, Add key, expect failure |
|
1308 |
|
1309 //! 3) 1.4.2.5.3, Add key, expect failure |
|
1310 |
|
1311 RUN_TEST_STEP !Error=-11010 -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0022-001 |
|
1312 |
|
1313 RUN_TEST_STEP !Error=-11010 -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0022-002 |
|
1314 |
|
1315 RUN_TEST_STEP !Error=-11010 -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0022-003 |
|
1316 |
|
1317 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0022 |
|
1318 |
|
1319 |
|
1320 |
|
1321 |
|
1322 |
|
1323 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0023 |
|
1324 |
|
1325 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0023 |
|
1326 |
|
1327 //! @SYMTestCaseDesc 1.4.3 Test start time and end time |
|
1328 |
|
1329 //! |
|
1330 |
|
1331 //! 1.4.3.1 Start time and end time not set |
|
1332 |
|
1333 //! @SYMTestActions 1) 1.4.3.1.1, Add key with no start date and end date |
|
1334 |
|
1335 //! 2) 1.4.3.1.2, Check info |
|
1336 |
|
1337 //! 3) 1.4.3.1.3, Delete it again |
|
1338 |
|
1339 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0023-001 |
|
1340 |
|
1341 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0023-002 |
|
1342 |
|
1343 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0023-003 |
|
1344 |
|
1345 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0023 |
|
1346 |
|
1347 |
|
1348 |
|
1349 |
|
1350 |
|
1351 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0024 |
|
1352 |
|
1353 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0024 |
|
1354 |
|
1355 //! @SYMTestCaseDesc 1.4.3.2 Specify start time only |
|
1356 |
|
1357 //! @SYMTestActions 1) 1.4.3.2.1, Add key |
|
1358 |
|
1359 //! 2) 1.4.3.2.2, Check info |
|
1360 |
|
1361 //! 3) 1.4.3.2.3, Delete it again |
|
1362 |
|
1363 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0024-001 |
|
1364 |
|
1365 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0024-002 |
|
1366 |
|
1367 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0024-003 |
|
1368 |
|
1369 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0024 |
|
1370 |
|
1371 |
|
1372 |
|
1373 |
|
1374 |
|
1375 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0025 |
|
1376 |
|
1377 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0025 |
|
1378 |
|
1379 //! @SYMTestCaseDesc 1.4.3.3 Specify end time only |
|
1380 |
|
1381 //! @SYMTestActions 1) 1.4.3.3.1, Add key |
|
1382 |
|
1383 //! 2) 1.4.3.3.2, Check info |
|
1384 |
|
1385 //! 3) 1.4.3.3.3, Delete it again |
|
1386 |
|
1387 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0025-001 |
|
1388 |
|
1389 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0025-002 |
|
1390 |
|
1391 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0025-003 |
|
1392 |
|
1393 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0025 |
|
1394 |
|
1395 |
|
1396 |
|
1397 |
|
1398 |
|
1399 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0026 |
|
1400 |
|
1401 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0026 |
|
1402 |
|
1403 //! @SYMTestCaseDesc 1.4.3.4 Specify start time and end time |
|
1404 |
|
1405 //! @SYMTestActions 1) 1.4.3.4.1, Add key |
|
1406 |
|
1407 //! 2) 1.4.3.4.2, Check info |
|
1408 |
|
1409 //! 3) 1.4.3.4.3, Delete it again |
|
1410 |
|
1411 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0026-001 |
|
1412 |
|
1413 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0026-002 |
|
1414 |
|
1415 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0026-003 |
|
1416 |
|
1417 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0026 |
|
1418 |
|
1419 |
|
1420 |
|
1421 |
|
1422 |
|
1423 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0027 |
|
1424 |
|
1425 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0027 |
|
1426 |
|
1427 //! @SYMTestCaseDesc 1.4.3.5 Failure tests |
|
1428 |
|
1429 //! |
|
1430 |
|
1431 //! 1.4.3.5.1 Specify start time and end time the wrong way round |
|
1432 |
|
1433 //! @SYMTestActions 1) 1.4.3.5.1, Add key |
|
1434 |
|
1435 RUN_TEST_STEP !Error=-11008 -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0027-001 |
|
1436 |
|
1437 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0027 |
|
1438 |
|
1439 |
|
1440 |
|
1441 |
|
1442 |
|
1443 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0028 |
|
1444 |
|
1445 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0028 |
|
1446 |
|
1447 //! @SYMTestCaseDesc 1.4.3.5.2 Specify end date in the past |
|
1448 |
|
1449 //! @SYMTestActions 1) 1.4.3.5.2, Add key |
|
1450 |
|
1451 RUN_TEST_STEP !Error=-11008 -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0028-001 |
|
1452 |
|
1453 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0028 |
|
1454 |
|
1455 |
|
1456 |
|
1457 |
|
1458 |
|
1459 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0029 |
|
1460 |
|
1461 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0029 |
|
1462 |
|
1463 //! @SYMTestCaseDesc 1.4.3.6 Test that you can't use expired keys |
|
1464 |
|
1465 //! @SYMTestActions 1) 1.4.3.6.1, Set the time |
|
1466 |
|
1467 //! 2) 1.4.3.6.2, Add key |
|
1468 |
|
1469 //! 3) 1.4.3.6.2.1, Set passphrase timeout to "don't cache" |
|
1470 |
|
1471 //! 4) 1.4.3.6.3, Add a key |
|
1472 |
|
1473 //! 5) 1.4.3.6.4, Sign |
|
1474 |
|
1475 //! 6) 1.4.3.6.5, Decrypt |
|
1476 |
|
1477 //! 7) 1.4.3.6.6, Derive |
|
1478 |
|
1479 //! 8) 1.4.3.6.7, Set the time past key's expiry date |
|
1480 |
|
1481 //! 9) 1.4.3.6.8, Sign with a banana, expect failure |
|
1482 |
|
1483 //! 10) 1.4.3.6.9, Decrypt, expect failure |
|
1484 |
|
1485 //! 11) 1.4.3.6.10, Derive, expect failure |
|
1486 |
|
1487 //! 12) 1.4.3.6.11, Delete them |
|
1488 |
|
1489 //! 13) 1.4.4.1 Import a RSA key |
|
1490 |
|
1491 //! 14) 1.4.4.2,Set passphrase timeout to "don't cache" |
|
1492 |
|
1493 //! 15) 1.4.4.3,Open a BIGRSA for decrypt |
|
1494 |
|
1495 //! 16) 1.4.4.4, Sign with a BIGRSA, 20 char text |
|
1496 |
|
1497 //! 17) 1.4.4.5, Sign with a BIGRSA, 32 char text |
|
1498 |
|
1499 //! 18) 1.4.4.6, Sign digest with a BIGRSA |
|
1500 |
|
1501 //! 19) 1.4.4.7 Import a BIG DSA key |
|
1502 |
|
1503 //! 20) 1.4.4.8, Sign with a BIGDSA, 20 char text |
|
1504 |
|
1505 //! 21) 1.4.4.9, Sign with BIGDSA, text too long (21 chars) |
|
1506 |
|
1507 //! 22) 1.4.4.10, Sign digest with BIGDSA |
|
1508 |
|
1509 //! 23) 1.4.4.999, Delete everything |
|
1510 |
|
1511 //! 24) 1.4.999.1,Closing key store |
|
1512 |
|
1513 //! 25) 1.4.999.2, Sleep 5 seconds |
|
1514 |
|
1515 //! 26) 1.4.999.3, Check for server heap error |
|
1516 |
|
1517 RUN_TEST_STEP -1 CTestHandler settime tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-001 |
|
1518 |
|
1519 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-002 |
|
1520 |
|
1521 RUN_TEST_STEP -1 CTestHandler settimeout tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-003 |
|
1522 |
|
1523 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-004 |
|
1524 |
|
1525 RUN_TEST_STEP -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-005 |
|
1526 |
|
1527 RUN_TEST_STEP -1 CTestHandler decrypt tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-006 |
|
1528 |
|
1529 RUN_TEST_STEP -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-007 |
|
1530 |
|
1531 RUN_TEST_STEP -1 CTestHandler settime tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-008 |
|
1532 |
|
1533 RUN_TEST_STEP !Error=-11008 -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-009 |
|
1534 |
|
1535 RUN_TEST_STEP !Error=-11008 -1 CTestHandler decrypt tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-010 |
|
1536 |
|
1537 RUN_TEST_STEP !Error=-11008 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-011 |
|
1538 |
|
1539 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-012 |
|
1540 |
|
1541 RUN_TEST_STEP -1 CTestHandler importkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-013 |
|
1542 |
|
1543 RUN_TEST_STEP -1 CTestHandler settimeout tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-014 |
|
1544 |
|
1545 RUN_TEST_STEP -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-015 |
|
1546 |
|
1547 RUN_TEST_STEP -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-016 |
|
1548 |
|
1549 RUN_TEST_STEP -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-017 |
|
1550 |
|
1551 RUN_TEST_STEP -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-018 |
|
1552 |
|
1553 RUN_TEST_STEP -1 CTestHandler importkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-019 |
|
1554 |
|
1555 RUN_TEST_STEP -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-020 |
|
1556 |
|
1557 RUN_TEST_STEP !Error=-9 -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-021 |
|
1558 |
|
1559 RUN_TEST_STEP -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-022 |
|
1560 |
|
1561 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-023 |
808 |
1562 |
809 RUN_TEST_STEP -1 CTestHandler delete |
1563 RUN_TEST_STEP -1 CTestHandler delete |
810 |
1564 |
811 RUN_TEST_STEP -1 CTestHandler delete |
|
812 |
|
813 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0006 |
|
814 |
|
815 |
|
816 |
|
817 |
|
818 |
|
819 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0007 |
|
820 |
|
821 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0007 |
|
822 |
|
823 //! @SYMTestCaseDesc ////////////////////////////////////////////////////////////////////////////////// |
|
824 |
|
825 //! @SYMTestActions 1) 1.4.0,Opening key store in manager mode |
|
826 |
|
827 RUN_TEST_STEP -1 CTestHandler init tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0007-001 |
|
828 |
|
829 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0007 |
|
830 |
|
831 |
|
832 |
|
833 |
|
834 |
|
835 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0008 |
|
836 |
|
837 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0008 |
|
838 |
|
839 //! @SYMTestCaseDesc 1.4.1 Test key usage |
|
840 |
|
841 //! |
|
842 |
|
843 //! 1.4.1.1. Test keys with no usage |
|
844 |
|
845 //! @SYMTestActions 1) 1.4.1.1.1, Add key (usage: none) |
|
846 |
|
847 //! 2) 1.4.1.1.2, Set passphrase timeout to "don't cache" |
|
848 |
|
849 //! 3) 1.4.1.1.3, Check info |
|
850 |
|
851 //! 4) 1.4.1.1.4, Sign, expect failure |
|
852 |
|
853 //! 5) 1.4.1.1.5, Decrypt, expect failure |
|
854 |
|
855 //! 6) 1.4.1.1.6, Derive, expect failure |
|
856 |
|
857 //! 7) 1.4.1.1.7, Delete it again |
|
858 |
|
859 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0008-001 |
|
860 |
|
861 RUN_TEST_STEP -1 CTestHandler settimeout tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0008-002 |
|
862 |
|
863 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0008-003 |
|
864 |
|
865 RUN_TEST_STEP !Error=-11007 -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0008-004 |
|
866 |
|
867 RUN_TEST_STEP !Error=-11007 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0008-005 |
|
868 |
|
869 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0008-006 |
|
870 |
|
871 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0008-007 |
|
872 |
|
873 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0008 |
|
874 |
|
875 |
|
876 |
|
877 |
|
878 |
|
879 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0009 |
|
880 |
|
881 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0009 |
|
882 |
|
883 //! @SYMTestCaseDesc 1.4.1.2. Test keys with sign usage only |
|
884 |
|
885 //! @SYMTestActions 1) 1.4.1.2.1, Add key |
|
886 |
|
887 //! 2) 1.4.1.2.2, Check info |
|
888 |
|
889 //! 3) 1.4.1.2.3, Sign, expect success |
|
890 |
|
891 //! 4) 1.4.1.2.4, Decrypt, expect failure |
|
892 |
|
893 //! 5) 1.4.1.2.5, Derive, expect failure |
|
894 |
|
895 //! 6) 1.4.1.2.6, Delete it again |
|
896 |
|
897 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0009-001 |
|
898 |
|
899 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0009-002 |
|
900 |
|
901 RUN_TEST_STEP -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0009-003 |
|
902 |
|
903 RUN_TEST_STEP !Error=-11007 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0009-004 |
|
904 |
|
905 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0009-005 |
|
906 |
|
907 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0009-006 |
|
908 |
|
909 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0009 |
|
910 |
|
911 |
|
912 |
|
913 |
|
914 |
|
915 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0010 |
|
916 |
|
917 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0010 |
|
918 |
|
919 //! @SYMTestCaseDesc 1.4.1.3. Test keys with signRecover usage only |
|
920 |
|
921 //! @SYMTestActions 1) 1.4.1.3.1, Add key |
|
922 |
|
923 //! 2) 1.4.1.3.2, Check info |
|
924 |
|
925 //! 3) 1.4.1.3.3, Sign, expect success |
|
926 |
|
927 //! 4) 1.4.1.3.4, Decrypt, expect failure |
|
928 |
|
929 //! 5) 1.4.1.3.5, Derive, expect failure |
|
930 |
|
931 //! 6) 1.4.1.3.6, Delete it again |
|
932 |
|
933 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0010-001 |
|
934 |
|
935 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0010-002 |
|
936 |
|
937 RUN_TEST_STEP -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0010-003 |
|
938 |
|
939 RUN_TEST_STEP !Error=-11007 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0010-004 |
|
940 |
|
941 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0010-005 |
|
942 |
|
943 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0010-006 |
|
944 |
|
945 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0010 |
|
946 |
|
947 |
|
948 |
|
949 |
|
950 |
|
951 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0011 |
|
952 |
|
953 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0011 |
|
954 |
|
955 //! @SYMTestCaseDesc 1.4.1.5. Test keys with decrypt usages |
|
956 |
|
957 //! @SYMTestActions 1) 1.4.1.5.1, Add key |
|
958 |
|
959 //! 2) 1.4.1.5.2, Check info |
|
960 |
|
961 //! 3) 1.4.1.5.3, Sign, expect failure |
|
962 |
|
963 //! 4) 1.4.1.5.4, Decrypt |
|
964 |
|
965 //! 5) 1.4.1.5.5, Derive, expect failure |
|
966 |
|
967 //! 6) 1.4.1.5.6, Delete it again |
|
968 |
|
969 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0011-001 |
|
970 |
|
971 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0011-002 |
|
972 |
|
973 RUN_TEST_STEP !Error=-11007 -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0011-003 |
|
974 |
|
975 RUN_TEST_STEP -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0011-004 |
|
976 |
|
977 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0011-005 |
|
978 |
|
979 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0011-006 |
|
980 |
|
981 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0011 |
|
982 |
|
983 |
|
984 |
|
985 |
|
986 |
|
987 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0012 |
|
988 |
|
989 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0012 |
|
990 |
|
991 //! @SYMTestCaseDesc 1.4.1.8. Test keys with unwrap usage |
|
992 |
|
993 //! @SYMTestActions 1) 1.4.1.8.1, Add key |
|
994 |
|
995 //! 2) 1.4.1.8.2, Check info |
|
996 |
|
997 //! 3) 1.4.1.8.3, Sign, expect failure |
|
998 |
|
999 //! 4) 1.4.1.8.4, Decrypt |
|
1000 |
|
1001 //! 5) 1.4.1.8.5, Derive, expect failure |
|
1002 |
|
1003 //! 6) 1.4.1.8.6, Delete it again |
|
1004 |
|
1005 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0012-001 |
|
1006 |
|
1007 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0012-002 |
|
1008 |
|
1009 RUN_TEST_STEP !Error=-11007 -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0012-003 |
|
1010 |
|
1011 RUN_TEST_STEP -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0012-004 |
|
1012 |
|
1013 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0012-005 |
|
1014 |
|
1015 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0012-006 |
|
1016 |
|
1017 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0012 |
|
1018 |
|
1019 |
|
1020 |
|
1021 |
|
1022 |
|
1023 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0013 |
|
1024 |
|
1025 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0013 |
|
1026 |
|
1027 //! @SYMTestCaseDesc 1.4.1.9. Test DSA keys with sign usage only |
|
1028 |
|
1029 //! @SYMTestActions 1) 1.4.1.9.1, Add key |
|
1030 |
|
1031 //! 2) 1.4.1.9.2, Check info |
|
1032 |
|
1033 //! 3) 1.4.1.9.3, Sign, expect success |
|
1034 |
|
1035 //! 4) 1.4.1.9.4, Decrypt, expect failure |
|
1036 |
|
1037 //! 5) 1.4.1.9.5, Derive, expect failure |
|
1038 |
|
1039 //! 6) 1.4.1.9.6, Delete it again |
|
1040 |
|
1041 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0013-001 |
|
1042 |
|
1043 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0013-002 |
|
1044 |
|
1045 RUN_TEST_STEP -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0013-003 |
|
1046 |
|
1047 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0013-004 |
|
1048 |
|
1049 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0013-005 |
|
1050 |
|
1051 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0013-006 |
|
1052 |
|
1053 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0013 |
|
1054 |
|
1055 |
|
1056 |
|
1057 |
|
1058 |
|
1059 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0014 |
|
1060 |
|
1061 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0014 |
|
1062 |
|
1063 //! @SYMTestCaseDesc 1.4.1.10. Test DSA keys with signRecover usage only |
|
1064 |
|
1065 //! @SYMTestActions 1) 1.4.1.10.1, Add key |
|
1066 |
|
1067 //! 2) 1.4.1.10.2, Check info |
|
1068 |
|
1069 //! 3) 1.4.1.10.3, Sign, expect success |
|
1070 |
|
1071 //! 4) 1.4.1.10.4, Decrypt, expect failure |
|
1072 |
|
1073 //! 5) 1.4.1.10.5, Derive, expect failure |
|
1074 |
|
1075 //! 6) 1.4.1.10.6, Delete it again |
|
1076 |
|
1077 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0014-001 |
|
1078 |
|
1079 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0014-002 |
|
1080 |
|
1081 RUN_TEST_STEP -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0014-003 |
|
1082 |
|
1083 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0014-004 |
|
1084 |
|
1085 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0014-005 |
|
1086 |
|
1087 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0014-006 |
|
1088 |
|
1089 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0014 |
|
1090 |
|
1091 |
|
1092 |
|
1093 |
|
1094 |
|
1095 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0015 |
|
1096 |
|
1097 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0015 |
|
1098 |
|
1099 //! @SYMTestCaseDesc 1.4.1.12. Test keys with derive usage |
|
1100 |
|
1101 //! @SYMTestActions 1) 1.4.1.12.1, Add key |
|
1102 |
|
1103 //! 2) 1.4.1.12.2, Check info |
|
1104 |
|
1105 //! 3) 1.4.1.12.3, Sign, expect failure |
|
1106 |
|
1107 //! 4) 1.4.1.12.4, Decrypt, expect failure |
|
1108 |
|
1109 //! 5) 1.4.1.12.5, Derive, expect failure |
|
1110 |
|
1111 //! 6) 1.4.1.12.6, Delete it again |
|
1112 |
|
1113 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0015-001 |
|
1114 |
|
1115 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0015-002 |
|
1116 |
|
1117 RUN_TEST_STEP !Error=-11006 -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0015-003 |
|
1118 |
|
1119 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0015-004 |
|
1120 |
|
1121 RUN_TEST_STEP -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0015-005 |
|
1122 |
|
1123 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0015-006 |
|
1124 |
|
1125 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0015 |
|
1126 |
|
1127 |
|
1128 |
|
1129 |
|
1130 |
|
1131 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0016 |
|
1132 |
|
1133 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0016 |
|
1134 |
|
1135 //! @SYMTestCaseDesc 1.4.1.16. Test RSA keys with NR usage |
|
1136 |
|
1137 //! @SYMTestActions 1) 1.4.1.16.1, Add key |
|
1138 |
|
1139 //! 2) 1.4.1.16.3, Check info |
|
1140 |
|
1141 //! 3) 1.4.1.16.4, Sign, expect failure |
|
1142 |
|
1143 //! 4) 1.4.1.16.5, Decrypt, expect failure |
|
1144 |
|
1145 //! 5) 1.4.1.16.6, Derive, expect failure |
|
1146 |
|
1147 //! 6) 1.4.1.16.7, Delete it again |
|
1148 |
|
1149 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0016-001 |
|
1150 |
|
1151 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0016-002 |
|
1152 |
|
1153 RUN_TEST_STEP !Error=-11007 -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0016-003 |
|
1154 |
|
1155 RUN_TEST_STEP !Error=-11007 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0016-004 |
|
1156 |
|
1157 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0016-005 |
|
1158 |
|
1159 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0016-006 |
|
1160 |
|
1161 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0016 |
|
1162 |
|
1163 |
|
1164 |
|
1165 |
|
1166 |
|
1167 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0017 |
|
1168 |
|
1169 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0017 |
|
1170 |
|
1171 //! @SYMTestCaseDesc 1.4.1.17. Test RSA keys with NR usage |
|
1172 |
|
1173 //! @SYMTestActions 1) 1.4.1.17.1, Add key |
|
1174 |
|
1175 //! 2) 1.4.1.17.3, Check info |
|
1176 |
|
1177 //! 3) 1.4.1.17.4, Sign, expect failure |
|
1178 |
|
1179 //! 4) 1.4.1.17.5, Decrypt, expect failure |
|
1180 |
|
1181 //! 5) 1.4.1.17.6, Derive, expect failure |
|
1182 |
|
1183 //! 6) 1.4.1.17.7, Delete it again |
|
1184 |
|
1185 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0017-001 |
|
1186 |
|
1187 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0017-002 |
|
1188 |
|
1189 RUN_TEST_STEP !Error=-11006 -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0017-003 |
|
1190 |
|
1191 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0017-004 |
|
1192 |
|
1193 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0017-005 |
|
1194 |
|
1195 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0017-006 |
|
1196 |
|
1197 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0017 |
|
1198 |
|
1199 |
|
1200 |
|
1201 |
|
1202 |
|
1203 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0018 |
|
1204 |
|
1205 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0018 |
|
1206 |
|
1207 //! @SYMTestCaseDesc 1.4.2 Test access flags |
|
1208 |
|
1209 //! |
|
1210 |
|
1211 //! 1.4.2.1 Test RSA key with no access flags specified |
|
1212 |
|
1213 //! @SYMTestActions 1) 1.4.2.1.1, Add key with no flags specified |
|
1214 |
|
1215 //! 2) 1.4.2.1.2, Check info |
|
1216 |
|
1217 //! 3) 1.4.2.1.3, Delete it again |
|
1218 |
|
1219 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0018-001 |
|
1220 |
|
1221 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0018-002 |
|
1222 |
|
1223 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0018-003 |
|
1224 |
|
1225 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0018 |
|
1226 |
|
1227 |
|
1228 |
|
1229 |
|
1230 |
|
1231 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0019 |
|
1232 |
|
1233 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0019 |
|
1234 |
|
1235 //! @SYMTestCaseDesc 1.4.2.2 Test RSA key with sensitive access flag specified |
|
1236 |
|
1237 //! @SYMTestActions 1) 1.4.2.2.1, Add key |
|
1238 |
|
1239 //! 2) 1.4.2.2.2, Check info |
|
1240 |
|
1241 //! 3) 1.4.2.2.3, Delete it again |
|
1242 |
|
1243 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0019-001 |
|
1244 |
|
1245 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0019-002 |
|
1246 |
|
1247 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0019-003 |
|
1248 |
|
1249 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0019 |
|
1250 |
|
1251 |
|
1252 |
|
1253 |
|
1254 |
|
1255 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0020 |
|
1256 |
|
1257 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0020 |
|
1258 |
|
1259 //! @SYMTestCaseDesc 1.4.2.3 Test RSA key with extractable access flag specified |
|
1260 |
|
1261 //! @SYMTestActions 1) 1.4.2.3.1, Add key |
|
1262 |
|
1263 //! 2) 1.4.2.3.2, Check info |
|
1264 |
|
1265 //! 3) 1.4.2.3.3, Delete it again |
|
1266 |
|
1267 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0020-001 |
|
1268 |
|
1269 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0020-002 |
|
1270 |
|
1271 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0020-003 |
|
1272 |
|
1273 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0020 |
|
1274 |
|
1275 |
|
1276 |
|
1277 |
|
1278 |
|
1279 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0021 |
|
1280 |
|
1281 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0021 |
|
1282 |
|
1283 //! @SYMTestCaseDesc 1.4.2.4 Test RSA key with sensitive, extractable access flags specified |
|
1284 |
|
1285 //! @SYMTestActions 1) 1.4.2.4.1, Add key |
|
1286 |
|
1287 //! 2) 1.4.2.4.2, Check info |
|
1288 |
|
1289 //! 3) 1.4.2.4.3, Delete it again |
|
1290 |
|
1291 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0021-001 |
|
1292 |
|
1293 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0021-002 |
|
1294 |
|
1295 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0021-003 |
|
1296 |
|
1297 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0021 |
|
1298 |
|
1299 |
|
1300 |
|
1301 |
|
1302 |
|
1303 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0022 |
|
1304 |
|
1305 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0022 |
|
1306 |
|
1307 //! @SYMTestCaseDesc 1.4.2.5 Failure tests |
|
1308 |
|
1309 //! @SYMTestActions 1) 1.4.2.5.1, Add key, expect failure |
|
1310 |
|
1311 //! 2) 1.4.2.5.2, Add key, expect failure |
|
1312 |
|
1313 //! 3) 1.4.2.5.3, Add key, expect failure |
|
1314 |
|
1315 RUN_TEST_STEP !Error=-11010 -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0022-001 |
|
1316 |
|
1317 RUN_TEST_STEP !Error=-11010 -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0022-002 |
|
1318 |
|
1319 RUN_TEST_STEP !Error=-11010 -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0022-003 |
|
1320 |
|
1321 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0022 |
|
1322 |
|
1323 |
|
1324 |
|
1325 |
|
1326 |
|
1327 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0023 |
|
1328 |
|
1329 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0023 |
|
1330 |
|
1331 //! @SYMTestCaseDesc 1.4.3 Test start time and end time |
|
1332 |
|
1333 //! |
|
1334 |
|
1335 //! 1.4.3.1 Start time and end time not set |
|
1336 |
|
1337 //! @SYMTestActions 1) 1.4.3.1.1, Add key with no start date and end date |
|
1338 |
|
1339 //! 2) 1.4.3.1.2, Check info |
|
1340 |
|
1341 //! 3) 1.4.3.1.3, Delete it again |
|
1342 |
|
1343 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0023-001 |
|
1344 |
|
1345 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0023-002 |
|
1346 |
|
1347 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0023-003 |
|
1348 |
|
1349 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0023 |
|
1350 |
|
1351 |
|
1352 |
|
1353 |
|
1354 |
|
1355 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0024 |
|
1356 |
|
1357 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0024 |
|
1358 |
|
1359 //! @SYMTestCaseDesc 1.4.3.2 Specify start time only |
|
1360 |
|
1361 //! @SYMTestActions 1) 1.4.3.2.1, Add key |
|
1362 |
|
1363 //! 2) 1.4.3.2.2, Check info |
|
1364 |
|
1365 //! 3) 1.4.3.2.3, Delete it again |
|
1366 |
|
1367 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0024-001 |
|
1368 |
|
1369 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0024-002 |
|
1370 |
|
1371 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0024-003 |
|
1372 |
|
1373 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0024 |
|
1374 |
|
1375 |
|
1376 |
|
1377 |
|
1378 |
|
1379 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0025 |
|
1380 |
|
1381 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0025 |
|
1382 |
|
1383 //! @SYMTestCaseDesc 1.4.3.3 Specify end time only |
|
1384 |
|
1385 //! @SYMTestActions 1) 1.4.3.3.1, Add key |
|
1386 |
|
1387 //! 2) 1.4.3.3.2, Check info |
|
1388 |
|
1389 //! 3) 1.4.3.3.3, Delete it again |
|
1390 |
|
1391 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0025-001 |
|
1392 |
|
1393 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0025-002 |
|
1394 |
|
1395 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0025-003 |
|
1396 |
|
1397 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0025 |
|
1398 |
|
1399 |
|
1400 |
|
1401 |
|
1402 |
|
1403 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0026 |
|
1404 |
|
1405 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0026 |
|
1406 |
|
1407 //! @SYMTestCaseDesc 1.4.3.4 Specify start time and end time |
|
1408 |
|
1409 //! @SYMTestActions 1) 1.4.3.4.1, Add key |
|
1410 |
|
1411 //! 2) 1.4.3.4.2, Check info |
|
1412 |
|
1413 //! 3) 1.4.3.4.3, Delete it again |
|
1414 |
|
1415 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0026-001 |
|
1416 |
|
1417 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0026-002 |
|
1418 |
|
1419 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0026-003 |
|
1420 |
|
1421 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0026 |
|
1422 |
|
1423 |
|
1424 |
|
1425 |
|
1426 |
|
1427 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0027 |
|
1428 |
|
1429 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0027 |
|
1430 |
|
1431 //! @SYMTestCaseDesc 1.4.3.5 Failure tests |
|
1432 |
|
1433 //! |
|
1434 |
|
1435 //! 1.4.3.5.1 Specify start time and end time the wrong way round |
|
1436 |
|
1437 //! @SYMTestActions 1) 1.4.3.5.1, Add key |
|
1438 |
|
1439 RUN_TEST_STEP !Error=-11008 -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0027-001 |
|
1440 |
|
1441 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0027 |
|
1442 |
|
1443 |
|
1444 |
|
1445 |
|
1446 |
|
1447 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0028 |
|
1448 |
|
1449 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0028 |
|
1450 |
|
1451 //! @SYMTestCaseDesc 1.4.3.5.2 Specify end date in the past |
|
1452 |
|
1453 //! @SYMTestActions 1) 1.4.3.5.2, Add key |
|
1454 |
|
1455 RUN_TEST_STEP !Error=-11008 -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0028-001 |
|
1456 |
|
1457 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0028 |
|
1458 |
|
1459 |
|
1460 |
|
1461 |
|
1462 |
|
1463 START_TESTCASE SEC-FILETOKENS-TKEYSTORE-0029 |
|
1464 |
|
1465 //! @SYMTestCaseID SEC-FILETOKENS-TKEYSTORE-0029 |
|
1466 |
|
1467 //! @SYMTestCaseDesc 1.4.3.6 Test that you can't use expired keys |
|
1468 |
|
1469 //! @SYMTestActions 1) 1.4.3.6.1, Set the time |
|
1470 |
|
1471 //! 2) 1.4.3.6.2, Add key |
|
1472 |
|
1473 //! 3) 1.4.3.6.2.1, Set passphrase timeout to "don't cache" |
|
1474 |
|
1475 //! 4) 1.4.3.6.3, Add a key |
|
1476 |
|
1477 //! 5) 1.4.3.6.4, Sign |
|
1478 |
|
1479 //! 6) 1.4.3.6.5, Decrypt |
|
1480 |
|
1481 //! 7) 1.4.3.6.6, Derive |
|
1482 |
|
1483 //! 8) 1.4.3.6.7, Set the time past key's expiry date |
|
1484 |
|
1485 //! 9) 1.4.3.6.8, Sign with a banana, expect failure |
|
1486 |
|
1487 //! 10) 1.4.3.6.9, Decrypt, expect failure |
|
1488 |
|
1489 //! 11) 1.4.3.6.10, Derive, expect failure |
|
1490 |
|
1491 //! 12) 1.4.3.6.11, Delete them |
|
1492 |
|
1493 //! 13) 1.4.4.1 Import a RSA key |
|
1494 |
|
1495 //! 14) 1.4.4.2,Set passphrase timeout to "don't cache" |
|
1496 |
|
1497 //! 15) 1.4.4.3,Open a BIGRSA for decrypt |
|
1498 |
|
1499 //! 16) 1.4.4.4, Sign with a BIGRSA, 20 char text |
|
1500 |
|
1501 //! 17) 1.4.4.5, Sign with a BIGRSA, 32 char text |
|
1502 |
|
1503 //! 18) 1.4.4.6, Sign digest with a BIGRSA |
|
1504 |
|
1505 //! 19) 1.4.4.7 Import a BIG DSA key |
|
1506 |
|
1507 //! 20) 1.4.4.8, Sign with a BIGDSA, 20 char text |
|
1508 |
|
1509 //! 21) 1.4.4.9, Sign with BIGDSA, text too long (21 chars) |
|
1510 |
|
1511 //! 22) 1.4.4.10, Sign digest with BIGDSA |
|
1512 |
|
1513 //! 23) 1.4.4.999, Delete everything |
|
1514 |
|
1515 //! 24) 1.4.999.1,Closing key store |
|
1516 |
|
1517 //! 25) 1.4.999.2, Sleep 5 seconds |
|
1518 |
|
1519 //! 26) 1.4.999.3, Check for server heap error |
|
1520 |
|
1521 RUN_TEST_STEP -1 CTestHandler settime tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-001 |
|
1522 |
|
1523 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-002 |
|
1524 |
|
1525 RUN_TEST_STEP -1 CTestHandler settimeout tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-003 |
|
1526 |
|
1527 RUN_TEST_STEP -1 CTestHandler addkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-004 |
|
1528 |
|
1529 RUN_TEST_STEP -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-005 |
|
1530 |
|
1531 RUN_TEST_STEP -1 CTestHandler decrypt tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-006 |
|
1532 |
|
1533 RUN_TEST_STEP -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-007 |
|
1534 |
|
1535 RUN_TEST_STEP -1 CTestHandler settime tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-008 |
|
1536 |
|
1537 RUN_TEST_STEP !Error=-11008 -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-009 |
|
1538 |
|
1539 RUN_TEST_STEP !Error=-11008 -1 CTestHandler decrypt tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-010 |
|
1540 |
|
1541 RUN_TEST_STEP !Error=-11008 -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-011 |
|
1542 |
|
1543 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-012 |
|
1544 |
|
1545 RUN_TEST_STEP -1 CTestHandler importkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-013 |
|
1546 |
|
1547 RUN_TEST_STEP -1 CTestHandler settimeout tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-014 |
|
1548 |
|
1549 RUN_TEST_STEP -1 CTestHandler open tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-015 |
|
1550 |
|
1551 RUN_TEST_STEP -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-016 |
|
1552 |
|
1553 RUN_TEST_STEP -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-017 |
|
1554 |
|
1555 RUN_TEST_STEP -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-018 |
|
1556 |
|
1557 RUN_TEST_STEP -1 CTestHandler importkey tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-019 |
|
1558 |
|
1559 RUN_TEST_STEP -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-020 |
|
1560 |
|
1561 RUN_TEST_STEP !Error=-9 -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-021 |
|
1562 |
|
1563 RUN_TEST_STEP -1 CTestHandler sign tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-022 |
|
1564 |
|
1565 RUN_TEST_STEP -1 CTestHandler deletekeys tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-023 |
|
1566 |
|
1567 RUN_TEST_STEP -1 CTestHandler delete |
|
1568 |
|
1569 RUN_TEST_STEP -1 CTestHandler sleep tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-025 |
1565 RUN_TEST_STEP -1 CTestHandler sleep tkeystore2.ini SEC-FILETOKENS-TKEYSTORE-0029-025 |
1570 |
1566 |
1571 RUN_TEST_STEP -1 CTestHandler checkserverheaperror |
1567 RUN_TEST_STEP -1 CTestHandler checkserverheaperror |
1572 |
1568 |
1573 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0029 |
1569 END_TESTCASE SEC-FILETOKENS-TKEYSTORE-0029 |