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