Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1109265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:12:22+00:00 2026-05-17T02:12:22+00:00

In the Erlang crypto library, there is no aes_cfb_ivec function. Does it mean that

  • 0

In the Erlang crypto library, there is no aes_cfb_ivec function. Does it mean that the same IVec should be used for multiple rounds? Or should the encrypted data from the last step be used, as in the example of “DES in CBC mode” at the end of the linked page?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T02:12:23+00:00Added an answer on May 17, 2026 at 2:12 am

    The IV MUST NOT be reused. Otherwise, two packets beginning with the same n bytes would end up encrypted into streams with the same n bytes too. This is a strong security issue.

    Ideally the IV shall be chosen randomly and uniformly (with a cryptographically strong generator). However, with CFB, you can use the last encrypted block from the previous packet as IV. If you look at the diagram in the Wikipedia article, you will notice that reusing the last packet block as IV for the next is equivalent to considering both packets to be two halves of a big message, encrypted in one run (in that respect, this is equivalent to CBC encryption).

    (Just to be clear, I am talking about CFB-m where m is the algorithm block size. In CFB-x you call the block cipher once for every x bits of input; CFB-128 for a 128-bit block cipher such as the AES is the most efficient, hence the most commonly used.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I used crypto:sha/1 to hash passwords in my erlang application. Should I store the
In Erlang is there a way reference the currently executing function)? That would be
Since Erlang is based upon Prolog, does this mean that Erlang is a Constraint-Logic
I'm just confused about what's the padding mode used when use crypto:des_ecb_encrypt/2 in erlang.
In Erlang is there any way that a message sender can wait on a
In ERLANG: Assume we have a function f() that takes F1 as inputs where
The following is a erlang function. I don't understand how lists:map function is used
Erlang has a crypto function which generates public private keys (documentation copied below). However
The Erlang documentation states the following about gen_servers: ... Note that for any other
From page 90 of Erlang Programming by Cesarini and Thomson, there is an example

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.