001/* 002 * jPOS Project [http://jpos.org] 003 * Copyright (C) 2000-2026 jPOS Software SRL 004 * 005 * This program is free software: you can redistribute it and/or modify 006 * it under the terms of the GNU Affero General Public License as 007 * published by the Free Software Foundation, either version 3 of the 008 * License, or (at your option) any later version. 009 * 010 * This program is distributed in the hope that it will be useful, 011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 013 * GNU Affero General Public License for more details. 014 * 015 * You should have received a copy of the GNU Affero General Public License 016 * along with this program. If not, see <http://www.gnu.org/licenses/>. 017 */ 018 019package org.jpos.security; 020 021/** 022 * Key Encription Scheme. 023 * 024 * @author Robert Demski 025 */ 026public enum KeyScheme { 027 028 /** 029 * Encryption of a single length DES key using X9.17 methods. 030 * <p> 031 * Used for encryption of keys under a variant LMK.. 032 */ 033 Z, 034 035 /** 036 * Encryption of a double length key using X9.17 methods. 037 */ 038 X, 039 040 /** 041 * Encryption of a double length DES key using the variant method. 042 * <p> 043 * Used for encryption of keys under a variant LMK. 044 */ 045 U, 046 047 /** 048 * Encryption of a triple length key using X9.17 methods. 049 */ 050 Y, 051 052 /** 053 * Encryption of a triple length DES key using the variant method. 054 * <p> 055 * Used for encryption of keys under a variant LMK. 056 */ 057 T, 058 059 /** 060 * Encryption of single/double/triple-length DES & AES keys using the ANSI 061 * X9 TR-31 Key Block methods. 062 * <p> 063 * Only used for exporting keys <i>(e.g. under a KEK)</i>. 064 * <p> 065 * The ANSI X9 Committee published Technical Report 31 (TR-31) on 066 * <i>Interoperable Secure Key ExcKey Block Specification for Symmetric 067 * Algorithms</i> in 2010 to describe a method for secure key exchange which 068 * meets the needs of X9.24. 069 */ 070 R, 071 072 /** 073 * Encryption of all DES, AES, HMAC & RSA keys using proprietary Key Block 074 * methods. 075 * <p> 076 * Used for encrypting keys for local use <i>(under a Key Block LMK)</i> or 077 * for importing/exporting keys <i>(e.g. under a KEK or ZMK)</i>. 078 */ 079 S 080 081} 082