83 |
83 |
84 // NOTE: the constants below are embedded in the JCE RSACipher class |
84 // NOTE: the constants below are embedded in the JCE RSACipher class |
85 // file. Do not change without coordinating the update |
85 // file. Do not change without coordinating the update |
86 |
86 |
87 // PKCS#1 v1.5 padding, blocktype 1 (signing) |
87 // PKCS#1 v1.5 padding, blocktype 1 (signing) |
88 public final static int PAD_BLOCKTYPE_1 = 1; |
88 public static final int PAD_BLOCKTYPE_1 = 1; |
89 // PKCS#1 v1.5 padding, blocktype 2 (encryption) |
89 // PKCS#1 v1.5 padding, blocktype 2 (encryption) |
90 public final static int PAD_BLOCKTYPE_2 = 2; |
90 public static final int PAD_BLOCKTYPE_2 = 2; |
91 // nopadding. Does not do anything, but allows simpler RSACipher code |
91 // nopadding. Does not do anything, but allows simpler RSACipher code |
92 public final static int PAD_NONE = 3; |
92 public static final int PAD_NONE = 3; |
93 // PKCS#1 v2.1 OAEP padding |
93 // PKCS#1 v2.1 OAEP padding |
94 public final static int PAD_OAEP_MGF1 = 4; |
94 public static final int PAD_OAEP_MGF1 = 4; |
95 |
95 |
96 // type, one of PAD_* |
96 // type, one of PAD_* |
97 private final int type; |
97 private final int type; |
98 |
98 |
99 // size of the padded block (i.e. size of the modulus) |
99 // size of the padded block (i.e. size of the modulus) |