@@ -85,6 +85,10 @@ private enum CipherPadding
85
85
OAEPWITHSHA_224ANDMGF1PADDING ,
86
86
OAEPWITHSHA256ANDMGF1PADDING ,
87
87
OAEPWITHSHA_256ANDMGF1PADDING ,
88
+ OAEPWITHSHA256ANDMGF1WITHSHA256PADDING ,
89
+ OAEPWITHSHA_256ANDMGF1WITHSHA_256PADDING ,
90
+ OAEPWITHSHA256ANDMGF1WITHSHA1PADDING ,
91
+ OAEPWITHSHA_256ANDMGF1WITHSHA_1PADDING ,
88
92
OAEPWITHSHA384ANDMGF1PADDING ,
89
93
OAEPWITHSHA_384ANDMGF1PADDING ,
90
94
OAEPWITHSHA512ANDMGF1PADDING ,
@@ -543,8 +547,14 @@ public static IBufferedCipher GetCipher(
543
547
break ;
544
548
case CipherPadding . OAEPWITHSHA256ANDMGF1PADDING :
545
549
case CipherPadding . OAEPWITHSHA_256ANDMGF1PADDING :
550
+ case CipherPadding . OAEPWITHSHA256ANDMGF1WITHSHA256PADDING :
551
+ case CipherPadding . OAEPWITHSHA_256ANDMGF1WITHSHA_256PADDING :
546
552
asymBlockCipher = new OaepEncoding ( asymBlockCipher , new Sha256Digest ( ) ) ;
547
553
break ;
554
+ case CipherPadding . OAEPWITHSHA256ANDMGF1WITHSHA1PADDING :
555
+ case CipherPadding . OAEPWITHSHA_256ANDMGF1WITHSHA_1PADDING :
556
+ asymBlockCipher = new OaepEncoding ( asymBlockCipher , new Sha256Digest ( ) , new Sha1Digest ( ) , null ) ;
557
+ break ;
548
558
case CipherPadding . OAEPWITHSHA384ANDMGF1PADDING :
549
559
case CipherPadding . OAEPWITHSHA_384ANDMGF1PADDING :
550
560
asymBlockCipher = new OaepEncoding ( asymBlockCipher , new Sha384Digest ( ) ) ;
0 commit comments