提交 d95e43fa 编写于 作者: jia zhang's avatar jia zhang

rune/libenclave: Rename intelsgx.GetToken to intelsgx.GetLaunchToken

Signed-off-by: jia zhang's avatarJia Zhang <zhang.jia@linux.alibaba.com>
上级 75cc3d4d
......@@ -72,7 +72,7 @@ func transmitAesmd(conn *net.UnixConn, req *pb.AesmServiceRequest) ([]byte, erro
return rdata, nil
}
func GetToken(sig []byte) ([]byte, error) {
func GetLaunchToken(sig []byte) ([]byte, error) {
if len(sig) != SigStructLength {
return nil, fmt.Errorf("signature not match SIGSTRUCT")
}
......
......@@ -65,7 +65,7 @@ For example, generate the token file according to the given signature file:
return fmt.Errorf("signature file %s read failed", sigPath)
}
tok, err := intelsgx.GetToken(buf)
tok, err := intelsgx.GetLaunchToken(buf)
if err != nil {
logrus.Print(err)
return err
......
......@@ -72,7 +72,7 @@ func transmitAesmd(conn *net.UnixConn, req *pb.AesmServiceRequest) ([]byte, erro
return rdata, nil
}
func GetToken(sig []byte) ([]byte, error) {
func GetLaunchToken(sig []byte) ([]byte, error) {
if len(sig) != SigStructLength {
return nil, fmt.Errorf("signature not match SIGSTRUCT")
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册