One of them was 'Enigma', and could the other possibly be 'That Hamilton Woman', made in 1941 - the story of Nelson and Lady Hamilton? I'm not sure about that.
Second thoughts - I don't think the other film was 'The Hamilton Woman' - I think it's more likely to be a world war II film connected to the Enigma Code. This is really bugging me - and I hope someone comes up with an answer.