[][src]Function tink_core::registry::primitive_from_key_data

pub fn primitive_from_key_data(kd: &KeyData) -> Result<Primitive, TinkError>

Create a new primitive for the key given in the given KeyData.