I've been implementing RSA as a learning exercise and am at a point now where I'd like to try serializing my key to a file using some standard format. I've implemented it without using the Chinese Remainder Theorem, so my private key is composed only of my modulus $n=pq$ and my modular inverse exponent $d$. I've seen that PKCS1 & PKCS8 expect the use of the Chinese Remainder theorem. I know that I could simply derive these values, but is there any standard format where I can encode only my $n$ and $d$ without deriving the values for CRT implementations?
is there any standard format where I can encode only my n and d without deriving the values for CRT implementations?
Actually, for the standard PKCS #1 private key format, the CRT parameters are optional. As you can read in the linked text, one of the options is that the private key just stores $n$ and $d$.