jdk/src/java.base/share/classes/sun/security/rsa/RSAPadding.java
changeset 32649 2ee9017c7597
parent 32212 9ced42a5a609
child 40544 807dd9a425db
equal deleted inserted replaced
32648:1fa861caf840 32649:2ee9017c7597
    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)