Added test cases for NIST P-384 and 521. Fixed handling of key sizes which aren't divisibly by 8