Add some error handling to keytables

Add SPKI, SKI SIZE Macros

Add key_entry_cmp function to find key_entry objects