1 Star 0 Fork 0

叶海丰/ipmi-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
cmd_get_auth_code.go 861 Bytes
一键复制 编辑 原始数据 按行查看 历史
叶海丰 提交于 12个月前 . init
package ipmi
// see 22.21
//
// This command is used to send a block of data to the BMC, whereupon the BMC will
// return a hash of the data together concatenated with the internally stored password for the given channel and user
type GetAuthCodeRequest struct {
AuthType AuthType
ChannelNumber uint8
UserID uint8
// data to hash (must be 16 bytes)
Data [16]byte
}
type GetAuthCodeResponse struct {
CompletionCode
// For IPMI v1.5 AuthCode Number:
AuthCode [16]byte
// ForIPMI v2.0 Integrity Algorithm Number
// Resultant hash, per selected Integrity algorithm. Up to 20 bytes. An
// implementation can elect to return a variable length field based on the size of
// the hash for the given integrity algorithm, or can return a fixed field where the
// hash data is followed by 00h bytes as needed to pad the data to 20 bytes.
Hash []byte
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/rogax/ipmi-go.git
git@gitee.com:rogax/ipmi-go.git
rogax
ipmi-go
ipmi-go
86ae46cfb58e

搜索帮助