huawei-sm2

SM2.

  • Version: 2019-05-01

    huawei-sm2@2019-05-01


    
      module huawei-sm2 {
    
        yang-version 1;
    
        namespace "urn:huawei:yang:huawei-sm2";
    
        prefix sm2;
    
        import huawei-extension {
          prefix ext;
        }
    
        organization
          "Huawei Technologies Co., Ltd.";
    
        contact
          "Huawei Industrial Base
    Bantian, Longgang
    Shenzhen 518129
    People's Republic of China
    Website: http://www.huawei.com
    Email: support@huawei.com";
    
        description "SM2.";
    
        revision "2019-05-01" {
          description "Initial revision.";
          reference
            "Huawei private.";
    
        }
    
        ext:task-name "ssh-server";
    
        container sm2 {
          description "SM2.";
          container sm2-peer-keys {
            description "List of SM2 peer key.";
            list sm2-peer-key {
              key "key-name";
              max-elements 20;
              description
                "Configure SM2 peer key code. If the key code is bound, it cannot be deleted, you need to unbind and then delete.";
              leaf key-name {
                type string {
                  length "1..40";
                }
                description "SM2 key name.";
              }
    
              leaf key-code {
                ext:support-filter "true";
                type string {
                  length "1..4096";
                }
                mandatory true;
                description
                  "SM2 key code conforming to DER format.";
              }
            }  // list sm2-peer-key
          }  // container sm2-peer-keys
    
          container sm2-key-pairs {
            description
              "List of SM2 keypair labels.";
            list sm2-key-pair {
              key "key-pair-label";
              max-elements 20;
              description
                "Configure SM2 keypair label.";
              leaf key-pair-label {
                type string {
                  length "1..35";
                  pattern '[a-z0-9_]*';
                }
                description
                  "SM2 keypair label name : It only contains underscores (_), case-insensitive letters and digits.";
              }
    
              leaf key-size {
                ext:support-filter "true";
                type uint32 {
                  range "256";
                }
                default "256";
                description
                  "SM2 size of keypair.";
              }
    
              leaf host-key-code {
                ext:support-filter "true";
                type string {
                  length "0..2048";
                }
                config false;
                description "SM2 hostkey code.";
              }
            }  // list sm2-key-pair
          }  // container sm2-key-pairs
        }  // container sm2
      }  // module huawei-sm2
    

© 2023 YumaWorks, Inc. All rights reserved.