View full-text article in PMC Sensors (Basel). 2021 Oct 14;21(20):6821. doi: 10.3390/s21206821 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 2 Procedure of Encryption 1:functionEncrypt(M=[m1,…,mn]T,SK1) 2: Pick random i,j (1≤i,j≤n) 3: Construct matrices M1=[m1,…mi′…,mn]T; M2=[m1,…mi″…,mn]T; M3=[m1,…mj′…,mn]T; M4=[m1,…mj″…,mn]T; satisfying Equations (3) and (4). 4: Y1←P1M1Q1. 5: Y2←P2M2Q2. 6: Y3←P3M3Q3. 7: Y4←P4M4Q4. 8: return σx={Y1,Y2,Y3,Y4} 9: end function