Botan 1.10.17
serp_simd.h
Go to the documentation of this file.
1/*
2* Serpent (SIMD)
3* (C) 2009 Jack Lloyd
4*
5* Distributed under the terms of the Botan license
6*/
7
8#ifndef BOTAN_SERPENT_SIMD_H__
9#define BOTAN_SERPENT_SIMD_H__
10
11#include <botan/serpent.h>
12
13namespace Botan {
14
15/**
16* Serpent implementation using SIMD
17*/
18class BOTAN_DLL Serpent_SIMD : public Serpent
19 {
20 public:
21 size_t parallelism() const { return 4; }
22
23 void encrypt_n(const byte in[], byte out[], size_t blocks) const;
24 void decrypt_n(const byte in[], byte out[], size_t blocks) const;
25
26 BlockCipher* clone() const { return new Serpent_SIMD; }
27 };
28
29}
30
31#endif
BlockCipher * clone() const
Definition serp_simd.h:26
size_t parallelism() const
Definition serp_simd.h:21