/// <summary>
/// Generate a new key pair with the specified key size for strong name use
/// </summary>
/// <param name="wszKeyContainer">desired key container name</param>
/// <param name="dwFlags">flags</param>
/// <param name="dwKeySize">desired key size</param>
/// <param name="ppbKeyBlob">[out] generated public / private key blob</param>
/// <param name="pcbKeyBlob">[out] size of the generated blob</param>
/// <returns>true if the key was generated, false if there was an error</returns>
[DllImport("mscoree.dll")]
public extern static bool StrongNameKeyGenEx([MarshalAs(UnmanagedType.LPWStr)]string wszKeyContainer, StrongNameKeyGenFlags dwFlags, int dwKeySize, Out IntPtr ppbKeyBlob, Out long pcbKeyBlob);
This strong name API has been moved to mscoree.dll for Whidbey. It is not available in the v1.0 or v1.1 versions of the framework.
For a sample of generating a key, and some more documentation on this function, see Shawn Farkas' blog: http://blogs.msdn.com/shawnfa/archive/2004/07/09/178902.aspx