mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 10:46:28 +08:00
crypto/cryptodev: expansion hash operation
(1) remove size restriction for single hash operation (2) support hash operation to update uint32_t data Signed-off-by: makejian <makejian@xiaomi.com>
This commit is contained in:
@@ -64,7 +64,7 @@ CHACHA20_POLY1305_CTX;
|
||||
void chacha20_poly1305_init(FAR void *);
|
||||
void chacha20_poly1305_setkey(FAR void *, FAR const uint8_t *, uint16_t);
|
||||
void chacha20_poly1305_reinit(FAR void *, FAR const uint8_t *, uint16_t);
|
||||
int chacha20_poly1305_update(FAR void *, FAR const uint8_t *, uint16_t);
|
||||
int chacha20_poly1305_update(FAR void *, FAR const uint8_t *, size_t);
|
||||
void chacha20_poly1305_final(FAR uint8_t *, FAR void *);
|
||||
|
||||
/* WireGuard crypto */
|
||||
|
||||
@@ -51,7 +51,7 @@ extern void (*ghash_update)(FAR GHASH_CTX *, FAR uint8_t *, size_t);
|
||||
void aes_gmac_init(FAR void *);
|
||||
void aes_gmac_setkey(FAR void *, FAR const uint8_t *, uint16_t);
|
||||
void aes_gmac_reinit(FAR void *, FAR const uint8_t *, uint16_t);
|
||||
int aes_gmac_update(FAR void *, FAR const uint8_t *, uint16_t);
|
||||
int aes_gmac_update(FAR void *, FAR const uint8_t *, size_t);
|
||||
void aes_gmac_final(FAR uint8_t *, FAR void *);
|
||||
|
||||
#endif /* __INCLUDE_CRYPTO_GMAC_H */
|
||||
|
||||
@@ -59,7 +59,7 @@ struct auth_hash
|
||||
CODE void (*init) (FAR void *);
|
||||
CODE void (*setkey) (FAR void *, FAR const uint8_t *, uint16_t);
|
||||
CODE void (*reinit) (FAR void *, FAR const uint8_t *, uint16_t);
|
||||
CODE int (*update) (FAR void *, FAR const uint8_t *, uint16_t);
|
||||
CODE int (*update) (FAR void *, FAR const uint8_t *, size_t);
|
||||
CODE void (*final) (FAR uint8_t *, FAR void *);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user