Fix tests imports
[netconf.git] / transport / transport-ssh / src / main / yang / iana-ssh-mac-algs@2024-02-08.yang
1 module iana-ssh-mac-algs {
2   yang-version 1.1;
3   namespace "urn:ietf:params:xml:ns:yang:iana-ssh-mac-algs";
4   prefix sshma;
5
6   organization
7     "Internet Assigned Numbers Authority (IANA)";
8
9   contact
10     "Postal: ICANN
11              12025 Waterfront Drive, Suite 300
12              Los Angeles, CA  90094-2536
13              United States of America
14      Tel:    +1 310 301 5800
15      Email:  iana@iana.org";
16
17   description
18     "This module defines identities for the MAC algorithms
19      defined in the 'MAC Algorithm Names' sub-registry of the
20      'Secure Shell (SSH) Protocol Parameters' registry maintained
21      by IANA.
22
23      Copyright (c) 2024 IETF Trust and the persons identified as
24      authors of the code. All rights reserved.
25
26      Redistribution and use in source and binary forms, with
27      or without modification, is permitted pursuant to, and
28      subject to the license terms contained in, the Revised
29      BSD License set forth in Section 4.c of the IETF Trust's
30      Legal Provisions Relating to IETF Documents
31      (https://trustee.ietf.org/license-info).
32
33      The initial version of this YANG module is part of RFC EEEE
34      (https://www.rfc-editor.org/info/rfcEEEE); see the RFC
35      itself for full legal notices.";
36
37   revision 2024-02-08 {
38     description
39       "Reflects contents of the mac algorithms registry.";
40     reference
41       "RFC EEEE: YANG Groupings for SSH Clients and SSH Servers";
42   }
43
44   // Typedefs
45
46   typedef mac-algorithm-ref {
47     type identityref {
48       base "mac-alg-base";
49     }
50     description
51       "A reference to an SSH mac algorithm identifier.";
52   }
53
54
55   // Identities
56
57   identity mac-alg-base {
58     description
59       "Base identity for SSH mac algorithms.";
60   }
61
62   identity hmac-sha1 {
63     base mac-alg-base;
64     description
65       "Identity for the 'hmac-sha1' algorithm.  Section 6.4";
66     reference
67       "RFC 4253:
68          The Secure Shell (SSH) Transport Layer Protocol";
69   }
70
71   identity hmac-sha1-96 {
72     base mac-alg-base;
73     description
74       "Identity for the 'hmac-sha1-96' algorithm.  Section 6.4";
75     reference
76       "RFC 4253:
77          The Secure Shell (SSH) Transport Layer Protocol";
78   }
79
80   identity hmac-md5 {
81     base mac-alg-base;
82     description
83       "Identity for the 'hmac-md5' algorithm.  Section 6.4";
84     reference
85       "RFC 4253:
86          The Secure Shell (SSH) Transport Layer Protocol";
87   }
88
89   identity hmac-md5-96 {
90     base mac-alg-base;
91     description
92       "Identity for the 'hmac-md5-96' algorithm.  Section 6.4";
93     reference
94       "RFC 4253:
95          The Secure Shell (SSH) Transport Layer Protocol";
96   }
97
98   identity none {
99     base mac-alg-base;
100     description
101       "Identity for the 'none' algorithm.  Section 6.4";
102     reference
103       "RFC 4253:
104          The Secure Shell (SSH) Transport Layer Protocol";
105   }
106
107   identity AEAD_AES_128_GCM {
108     base mac-alg-base;
109     description
110       "Identity for the 'AEAD_AES_128_GCM' algorithm.  Section 6.1";
111     reference
112       "RFC 5647:
113          AES Galois Counter Mode for the Secure Shell Transport Layer
114          Protocol";
115   }
116
117   identity AEAD_AES_256_GCM {
118     base mac-alg-base;
119     description
120       "Identity for the 'AEAD_AES_256_GCM' algorithm.  Section 6.2";
121     reference
122       "RFC 5647:
123          AES Galois Counter Mode for the Secure Shell Transport Layer
124          Protocol";
125   }
126
127   identity hmac-sha2-256 {
128     base mac-alg-base;
129     description
130       "Identity for the 'hmac-sha2-256' algorithm.  Section 2";
131     reference
132       "RFC 6668:
133          SHA-2 Data Integrity Verification for the Secure Shell (SSH)
134          Transport Layer Protocol";
135   }
136
137   identity hmac-sha2-512 {
138     base mac-alg-base;
139     description
140       "Identity for the 'hmac-sha2-512' algorithm.  Section 2";
141     reference
142       "RFC 6668:
143          SHA-2 Data Integrity Verification for the Secure Shell (SSH)
144          Transport Layer Protocol";
145   }
146
147 }