Add key init

Signed-off-by Zhong Hongbo <bocui107@163.com>