File: crypto_aesctr_arm.h

package info (click to toggle)
python-scrypt 0.9.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 832 kB
  • sloc: ansic: 6,290; python: 733; sh: 99; makefile: 5
file content (19 lines) | stat: -rw-r--r-- 562 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef CRYPTO_AESCTR_ARM_H_
#define CRYPTO_AESCTR_ARM_H_

#include <stddef.h>
#include <stdint.h>

/* Opaque type. */
struct crypto_aesctr;

/**
 * crypto_aesctr_arm_stream(stream, inbuf, outbuf, buflen):
 * Generate the next ${buflen} bytes of the AES-CTR stream ${stream} and xor
 * them with bytes from ${inbuf}, writing the result into ${outbuf}.  If the
 * buffers ${inbuf} and ${outbuf} overlap, they must be identical.
 */
void crypto_aesctr_arm_stream(struct crypto_aesctr *, const uint8_t *,
    uint8_t *, size_t);

#endif /* !CRYPTO_AESCTR_ARM_H_ */