Cleanup: Use BN_bn2bin_padded() for zero-padding rather than custom code.