Home | History | Annotate | Download | only in crypto

Lines Matching refs:plain

99 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt)
102 aes_ecb_encrypt(plain, crypt, skey);
128 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain)
131 aes_ecb_encrypt(plain, (u8 *) crypt, skey);
350 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain,
356 if (plain != crypt)
357 os_memcpy(crypt, plain, len);
364 res = cbc_encrypt(plain, crypt, len, &ctx->u.cbc);
375 u8 *plain, size_t len)
380 if (plain != crypt)
381 os_memcpy(plain, crypt, len);
383 ctx->u.rc4.used_bytes, plain, len);
388 res = cbc_decrypt(crypt, plain, len, &ctx->u.cbc);
613 u8 *plain, size_t *plain_len)
620 res = rsa_exptmod(crypt, crypt_len, plain, &len, PK_PUBLIC,
638 plain[0] != 0x00 || plain[1] != 0x01 || plain[2] != 0xff) {
644 pos = plain + 3;
645 while (pos < plain + len && *pos == 0xff)
647 if (pos - plain - 2 < 8) {
654 if (pos + 16 /* min hash len */ >= plain + len || *pos != 0x00) {
660 len -= pos - plain;
663 os_memmove(plain, pos, len);