The ike sm-encryption-key-length enable command enables IKE negotiation packets to carry the SM encryption key length.
The undo ike sm-encryption-key-length enable command disables IKE negotiation packets from carrying the SM encryption key length.
By default, IKE negotiation packets do not carry the SM encryption key length.
When a digital envelop is used for IKE negotiation, the negotiation fails if packets sent by the initiator carry the SM encryption key length but the responder cannot process the SM encryption key length. To solve this problem, run the undo ike sm-encryption-key-length enable command on the IKE initiator to disable IKE negotiation packets from carrying the SM encryption key length.