@@ -89,6 +89,10 @@ private enum CipherPadding
89
89
OAEPWITHSHA_224ANDMGF1PADDING ,
90
90
OAEPWITHSHA256ANDMGF1PADDING ,
91
91
OAEPWITHSHA_256ANDMGF1PADDING ,
92
+ OAEPWITHSHA256ANDMGF1WITHSHA256PADDING ,
93
+ OAEPWITHSHA_256ANDMGF1WITHSHA_256PADDING ,
94
+ OAEPWITHSHA256ANDMGF1WITHSHA1PADDING ,
95
+ OAEPWITHSHA_256ANDMGF1WITHSHA_1PADDING ,
92
96
OAEPWITHSHA384ANDMGF1PADDING ,
93
97
OAEPWITHSHA_384ANDMGF1PADDING ,
94
98
OAEPWITHSHA512ANDMGF1PADDING ,
@@ -571,8 +575,14 @@ public static IBufferedCipher GetCipher(
571
575
break ;
572
576
case CipherPadding . OAEPWITHSHA256ANDMGF1PADDING :
573
577
case CipherPadding . OAEPWITHSHA_256ANDMGF1PADDING :
578
+ case CipherPadding . OAEPWITHSHA256ANDMGF1WITHSHA256PADDING :
579
+ case CipherPadding . OAEPWITHSHA_256ANDMGF1WITHSHA_256PADDING :
574
580
asymBlockCipher = new OaepEncoding ( asymBlockCipher , new Sha256Digest ( ) ) ;
575
581
break ;
582
+ case CipherPadding . OAEPWITHSHA256ANDMGF1WITHSHA1PADDING :
583
+ case CipherPadding . OAEPWITHSHA_256ANDMGF1WITHSHA_1PADDING :
584
+ asymBlockCipher = new OaepEncoding ( asymBlockCipher , new Sha256Digest ( ) , new Sha1Digest ( ) , null ) ;
585
+ break ;
576
586
case CipherPadding . OAEPWITHSHA384ANDMGF1PADDING :
577
587
case CipherPadding . OAEPWITHSHA_384ANDMGF1PADDING :
578
588
asymBlockCipher = new OaepEncoding ( asymBlockCipher , new Sha384Digest ( ) ) ;
0 commit comments