University of Wollongong Research Online

University of Wollongong Thesis Collection University of Wollongong Thesis Collections

2013 Hermite normal forms and its cryptographic applications Vasilios Evangelos Tourloupis University of Wollongong

Recommended Citation Tourloupis, Vasilios Evangelos, Hermite normal forms and its cryptographic applications, Master of Computer Science thesis, School of Computer Science and Software Engineering, University of Wollongong, 2013. http://ro.uow.edu.au/theses/3788

Research Online is the open access institutional repository for the University of Wollongong. For further information contact the UOW Library: [email protected]

Hermite Normal Forms and its Cryptographic Applications

A thesis submitted in fulfillment of the requirements for the award of the degree

Master of Computer Science

from

UNIVERSITY OF WOLLONGONG

by

Vasilios Evangelos Tourloupis

School of Computer Science and Software Engineering May 2013 c Copyright 2013

by

Vasilios Evangelos Tourloupis

All Rights Reserved

ii Dedicated to My Family

iii Declaration

This is to certify that the work reported in this thesis was done by the author, unless specified otherwise, and that no part of it has been submitted in a thesis to any other university or similar institution.

Vasilios Evangelos Tourloupis May 23, 2013

iv Abstract

Hermite Normal Form (HNF) matrices are a standard form of integer matrices used in applications such as lattice based cryptography and integer programming. Calculating the HNFs of randomly selected matrices, however, is not efficient and, although polynomial algorithms exist to address this issue, they do not address the private and public key selection process that attempts to search for a reduced public key size. At best, searching for a (private key) whose HNF (public key) is in ‘minimal’ form (that is, it can be expressed as a single column of values) is a trial and error process with only a 40% chance of success. In this thesis, a way of reducing the trial and error associated with this process is studied. It does so by taking advantage of the incremental nature of Micciancio and Warinschi’s algorithm for calculating HNF matrices row by column. The first contribution of this thesis reveals a stochastic observation relating to prime deter- minants. Specifically, if a leading principal minor of a matrix is prime (that is, if the of a k × k sub-matrix of an n × n matrix is prime), it increases the probability of the next (or (k + 1)-th) leading principal minor also being prime. Test results have revealed a reduction in the average number of steps of selecting a matrix with a prime determinant by a factor of 12 when compared to the traditional trial and error techniques of selecting such a matrix. Since the determinant of a matrix does not need to be prime in order for its HNF to be in ‘minimal’ form, an alternative way of reducing the public key matrix is also studied, again taking advantage of the incremental nature of Micciancio and Warinschi’s algorithm for calculating HNF matrices. Finally, this thesis also looks at an alternative way of selecting private key ma- trices whose HNF public key matrices are in ‘minimal’ form. It does so by using a simple sieving method, which filters prime (or probable prime) of a matrix. With a success rate of about 99%, this method leads more directly to a solution rather than a subset of possible solutions.

v Acknowledgement

I wish to thank Dr. Thomas Plantard for the technical support in helping me to identify and establish the mathematical phenomenon that forms the basis of this thesis, as well as for the valuable feedback provided in writing it. I also wish to thank Professor Willy Susilo for his supervision and support in overs