Change openPgpType to be not exported