roman | c1d2b09 | 2023-02-02 08:58:27 +0100 | [diff] [blame] | 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) 2022 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 2022-06-16 { |
| 38 | description |
| 39 | "Updated to reflect contents of the MAC algorithms |
| 40 | registry on June 16, 2022."; |
| 41 | } |
| 42 | |
| 43 | revision 2021-06-01 { |
| 44 | description |
| 45 | "Initial version"; |
| 46 | reference |
| 47 | "RFC EEEE: YANG Groupings for SSH Clients and SSH Servers"; |
| 48 | } |
| 49 | |
| 50 | // Typedefs |
| 51 | |
| 52 | typedef mac-algorithm-ref { |
| 53 | type identityref { |
| 54 | base "mac-alg-base"; |
| 55 | } |
| 56 | description |
| 57 | "A reference to a SSH mac algorithm identifier."; |
| 58 | } |
| 59 | |
| 60 | // Identities |
| 61 | |
| 62 | identity mac-alg-base { |
| 63 | description |
| 64 | "Base identity used to identify message authentication |
| 65 | code (MAC) algorithms."; |
| 66 | } |
| 67 | |
| 68 | identity hmac-sha1 { |
| 69 | base mac-alg-base; |
| 70 | description |
| 71 | "HMAC-SHA1"; |
| 72 | reference |
| 73 | "RFC 4253: |
| 74 | The Secure Shell (SSH) Transport Layer Protocol"; |
| 75 | } |
| 76 | |
| 77 | identity hmac-sha1-96 { |
| 78 | base mac-alg-base; |
| 79 | description |
| 80 | "HMAC-SHA1-96"; |
| 81 | reference |
| 82 | "RFC 4253: |
| 83 | The Secure Shell (SSH) Transport Layer Protocol"; |
| 84 | } |
| 85 | |
| 86 | identity hmac-md5 { |
| 87 | base mac-alg-base; |
| 88 | description |
| 89 | "HMAC-MD5"; |
| 90 | reference |
| 91 | "RFC 4253: |
| 92 | The Secure Shell (SSH) Transport Layer Protocol"; |
| 93 | } |
| 94 | |
| 95 | identity hmac-md5-96 { |
| 96 | base mac-alg-base; |
| 97 | description |
| 98 | "HMAC-MD5-96"; |
| 99 | reference |
| 100 | "RFC 4253: |
| 101 | The Secure Shell (SSH) Transport Layer Protocol"; |
| 102 | } |
| 103 | |
| 104 | identity none { |
| 105 | base mac-alg-base; |
| 106 | description |
| 107 | "NONE"; |
| 108 | reference |
| 109 | "RFC 4253: |
| 110 | The Secure Shell (SSH) Transport Layer Protocol"; |
| 111 | } |
| 112 | |
| 113 | identity aead-aes-128-gcm { |
| 114 | base mac-alg-base; |
| 115 | description |
| 116 | "AEAD_AES_128_GCM"; |
| 117 | reference |
| 118 | "RFC 5647: |
| 119 | AES Galois Counter Mode for the |
| 120 | Secure Shell Transport Layer Protocol"; |
| 121 | } |
| 122 | |
| 123 | identity aead-aes-256-gcm { |
| 124 | base mac-alg-base; |
| 125 | description |
| 126 | "AEAD_AES_256_GCM"; |
| 127 | reference |
| 128 | "RFC 5647: |
| 129 | AES Galois Counter Mode for the |
| 130 | Secure Shell Transport Layer Protocol"; |
| 131 | } |
| 132 | |
| 133 | identity hmac-sha2-256 { |
| 134 | base mac-alg-base; |
| 135 | description |
| 136 | "HMAC-SHA2-256"; |
| 137 | reference |
| 138 | "RFC 6668: |
| 139 | SHA-2 Data Integrity Verification for the |
| 140 | Secure Shell (SSH) Transport Layer Protocol"; |
| 141 | } |
| 142 | |
| 143 | identity hmac-sha2-512 { |
| 144 | base mac-alg-base; |
| 145 | description |
| 146 | "HMAC-SHA2-512"; |
| 147 | reference |
| 148 | "RFC 6668: |
| 149 | SHA-2 Data Integrity Verification for the |
| 150 | Secure Shell (SSH) Transport Layer Protocol"; |
| 151 | } |
| 152 | |
| 153 | // Protocol-accessible Nodes |
| 154 | |
| 155 | container supported-algorithms { |
| 156 | config false; |
| 157 | description |
| 158 | "A container for a list of MAC algorithms |
| 159 | supported by the server."; |
| 160 | leaf-list supported-algorithm { |
| 161 | type mac-algorithm-ref; |
| 162 | description |
| 163 | "A MAC algorithm supported by the server."; |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | } |