diff options
Diffstat (limited to 'crypto/poly1305/poly1305_ppc.c')
| -rw-r--r-- | crypto/poly1305/poly1305_ppc.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/crypto/poly1305/poly1305_ppc.c b/crypto/poly1305/poly1305_ppc.c index 4e4e3d1994f1..a40ce729b729 100644 --- a/crypto/poly1305/poly1305_ppc.c +++ b/crypto/poly1305/poly1305_ppc.c @@ -14,34 +14,34 @@ void poly1305_init_int(void *ctx, const unsigned char key[16]); void poly1305_blocks(void *ctx, const unsigned char *inp, size_t len, - unsigned int padbit); + unsigned int padbit); void poly1305_emit(void *ctx, unsigned char mac[16], - const unsigned int nonce[4]); + const unsigned int nonce[4]); void poly1305_init_fpu(void *ctx, const unsigned char key[16]); void poly1305_blocks_fpu(void *ctx, const unsigned char *inp, size_t len, - unsigned int padbit); + unsigned int padbit); void poly1305_emit_fpu(void *ctx, unsigned char mac[16], - const unsigned int nonce[4]); + const unsigned int nonce[4]); void poly1305_init_vsx(void *ctx, const unsigned char key[16]); void poly1305_blocks_vsx(void *ctx, const unsigned char *inp, size_t len, - unsigned int padbit); + unsigned int padbit); void poly1305_emit_vsx(void *ctx, unsigned char mac[16], - const unsigned int nonce[4]); + const unsigned int nonce[4]); int poly1305_init(void *ctx, const unsigned char key[16], void *func[2]); int poly1305_init(void *ctx, const unsigned char key[16], void *func[2]) { if (OPENSSL_ppccap_P & PPC_CRYPTO207) { poly1305_init_int(ctx, key); - func[0] = (void*)(uintptr_t)poly1305_blocks_vsx; - func[1] = (void*)(uintptr_t)poly1305_emit; + func[0] = (void *)(uintptr_t)poly1305_blocks_vsx; + func[1] = (void *)(uintptr_t)poly1305_emit; } else if (sizeof(size_t) == 4 && (OPENSSL_ppccap_P & PPC_FPU)) { poly1305_init_fpu(ctx, key); - func[0] = (void*)(uintptr_t)poly1305_blocks_fpu; - func[1] = (void*)(uintptr_t)poly1305_emit_fpu; + func[0] = (void *)(uintptr_t)poly1305_blocks_fpu; + func[1] = (void *)(uintptr_t)poly1305_emit_fpu; } else { poly1305_init_int(ctx, key); - func[0] = (void*)(uintptr_t)poly1305_blocks; - func[1] = (void*)(uintptr_t)poly1305_emit; + func[0] = (void *)(uintptr_t)poly1305_blocks; + func[1] = (void *)(uintptr_t)poly1305_emit; } return 1; } |
