I still use those types of latches and locks on barns. The part you have would have to be able to move. It does not look like it was meant to move. I think it is a mount of some type with something to be attached through the oval hole. I do not think it is part of a lock hasp or barrel.