,

Windowsの暗号

〜 10 行でズバリ !! 暗号化 (C#) 〜 Triplet DES

http://www.microsoft.com/japan/msdn/thisweek/10lines/encrypt_cs.asp

エンクリプトサンプル

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemsecuritycryptographyrsacryptoserviceproviderclassencrypttopic.asp
長さがおかしいって言われてパディングかと思って探したのですが、これによるとfalseでもパディング
されるようです。ファイルを小さくしたら出なくなったのでトータルの長さが長すぎるってことのようです。
で、今使用のDirect Encryption (PKCS#1 v1.5)では"剰余サイズ - 11 (11 バイトは最小パディング サイズ)"今わかっているのは5以上で4000以下。
#http://mars.elcom.nitech.ac.jp/Research/MM/security/cert.html#3.1
の形式でダンプがしたい場合はUNIX環境Cygwin
$openssl x509 -inform der < nantoka.der -text