<?xml version="1.0" encoding="UTF-8"?><toc><section id="sec_foreword"><title>Foreword</title></section><section id="sec_intro"><title>Introduction</title></section><section id="sec_1"><label>1</label><title>​Scope</title></section><section id="sec_2"><label>2</label><title>​Normative references</title></section><section id="sec_3"><label>3</label><title>​Terms and definitions</title></section><section id="sec_4"><label>4</label><title>Symbols and abbreviated terms</title></section><section id="sec_5"><label>5</label><title>​Grain-128A</title><section id="sec_5.1"><label>5.1</label><title>​Introduction to Grain-128A</title></section><section id="sec_5.2"><label>5.2</label><title>​Internal state</title></section><section id="sec_5.3"><label>5.3</label><title>​Encryption and MAC generation procedure</title></section><section id="sec_5.4"><label>5.4</label><title>​Decryption and MAC verification procedure</title></section><section id="sec_5.5"><label>5.5</label><title>​Sub-functions</title><section id="sec_5.5.1"><label>5.5.1</label><title>​Initialization function Init</title></section><section id="sec_5.5.2"><label>5.5.2</label><title>​MAC Initialization function Imac</title></section><section id="sec_5.5.3"><label>5.5.3</label><title>​Next-state function Next</title></section><section id="sec_5.5.4"><label>5.5.4</label><title>​Pre-output function Prt</title></section><section id="sec_5.5.5"><label>5.5.5</label><title>​Keystream function Strm</title></section><section id="sec_5.5.6"><label>5.5.6</label><title>​Function Upmac</title></section><section id="sec_5.5.7"><label>5.5.7</label><title>​Function Fmac</title></section></section></section><section id="sec_A"><label>Annex A</label><title>Object identifiers (normative)</title></section><section id="sec_B"><label>Annex B</label><title>Numerical examples (informative)</title><section id="sec_B.1"><label>B.1</label><title>​General</title></section><section id="sec_B.2"><label>B.2</label><title>​Numerical examples of Grain-128A</title></section></section><section id="sec_C"><label>Annex C</label><title>Security considerations (informative)</title></section><section id="sec_bibl"><title>Bibliography</title></section></toc>