Peter Koch <pk <at> opensc-project.org> writes:
> > With TCOS cards and 1024 bit keys your padding must be at least 11 bytes. > PKCS#1-padding will add another 3 bytes, i.e. > > 00 <block type byte> <padding bytes> 00 <data bytes> > > Hence your data must contain no more than 128-11-3=114 bytes. If it > does not, then TCOS will respond with 6988. > > Peter > 11 bytes it is OpenSLL constant RSA_PKCS1_PADDING_SIZE and don't depended of key type and size for other cards keys (tested on cardos, acos). But "another 3 bytes" is needed only for tcos, it always only 3 bytes need for all tcos key types(sizes). If I use RSA_NO_PADDING, which format for input buffer for encryption needed? _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel