primitive.nc

来自「tinyos密钥管理组件 用在tinyos仿真里的」· NC 代码 · 共 12 行

NC
12
字号


interface Primitive
{
  command result_t PRF(uint8_t *key, uint32_t x, uint8_t *out);
  command result_t PRG(uint8_t *out);
  command result_t encrypt(uint8_t *key, uint8_t * plainBlock, uint8_t * cipherBlock);
  command result_t decrypt(uint8_t *key,uint8_t * cipherBlock, uint8_t * plainBlock);
  command result_t MAC (uint8_t *key, uint8_t *in, uint8_t len, uint8_t *out);
  command result_t verifyMAC(uint8_t *key, uint8_t *in, uint8_t len,uint8_t *mac);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?