瀏覽代碼

Fix prototypes

tags/v0.9.3
Michael Brown 18 年之前
父節點
當前提交
f5776dbef1
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. 4
    4
      src/include/gpxe/crypto.h

+ 4
- 4
src/include/gpxe/crypto.h 查看文件

33
 	 * @v keylen		Key length
33
 	 * @v keylen		Key length
34
 	 * @ret rc		Return status code
34
 	 * @ret rc		Return status code
35
 	 */
35
 	 */
36
-	int ( * setkey ) ( void *ctx, void *key, size_t keylen );
36
+	int ( * setkey ) ( void *ctx, const void *key, size_t keylen );
37
 	/** Set initialisation vector
37
 	/** Set initialisation vector
38
 	 *
38
 	 *
39
 	 * @v ctx		Context
39
 	 * @v ctx		Context
40
 	 * @v iv		Initialisation vector
40
 	 * @v iv		Initialisation vector
41
 	 */
41
 	 */
42
-	void ( *setiv ) ( void *ctx, void *iv );
42
+	void ( *setiv ) ( void *ctx, const void *iv );
43
 	/** Encode data
43
 	/** Encode data
44
 	 *
44
 	 *
45
 	 * @v ctx		Context
45
 	 * @v ctx		Context
92
 }
92
 }
93
 
93
 
94
 static inline void cipher_setiv ( struct crypto_algorithm *crypto,
94
 static inline void cipher_setiv ( struct crypto_algorithm *crypto,
95
-				 void *ctx, void *iv ) {
95
+				  void *ctx, const void *iv ) {
96
 	crypto->setiv ( ctx, iv );
96
 	crypto->setiv ( ctx, iv );
97
 }
97
 }
98
 
98
 
99
 static inline int cipher_setkey ( struct crypto_algorithm *crypto,
99
 static inline int cipher_setkey ( struct crypto_algorithm *crypto,
100
-				  void *ctx, void *key, size_t keylen ) {
100
+				  void *ctx, const void *key, size_t keylen ) {
101
 	return crypto->setkey ( ctx, key, keylen );
101
 	return crypto->setkey ( ctx, key, keylen );
102
 }
102
 }
103
 
103
 

Loading…
取消
儲存