diff options
Diffstat (limited to 'gpxe/src/crypto/cipher.c')
-rw-r--r-- | gpxe/src/crypto/cipher.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/gpxe/src/crypto/cipher.c b/gpxe/src/crypto/cipher.c deleted file mode 100644 index 9c392009..00000000 --- a/gpxe/src/crypto/cipher.c +++ /dev/null @@ -1,24 +0,0 @@ -#include <stdint.h> -#include <errno.h> -#include <gpxe/crypto.h> - -int cipher_encrypt ( struct crypto_algorithm *crypto, - void *ctx, const void *src, void *dst, - size_t len ) { - if ( ( len & ( crypto->blocksize - 1 ) ) ) { - return -EINVAL; - } - crypto->encode ( ctx, src, dst, len ); - return 0; -} - -int cipher_decrypt ( struct crypto_algorithm *crypto, - void *ctx, const void *src, void *dst, - size_t len ) { - if ( ( len & ( crypto->blocksize - 1 ) ) ) { - return -EINVAL; - } - crypto->decode ( ctx, src, dst, len ); - return 0; -} - |