Length indication when given a too small buffer was off. Added regression test in test_suite_pem to detect this.