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

  • Home
  • SEARCH
  • 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 8868283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:14:07+00:00 2026-06-14T17:14:07+00:00

As an exercise, I am implementing my own CBC and CTR modes. (e.g. for

  • 0

As an exercise, I am implementing my own CBC and CTR modes. (e.g. for first block of CBC, E(k, IV xor message[0]).

For example, I tried the following thinking that I can use that as my E function (with BouncyCastle):

Cipher cipher = Cipher.getInstance("AES/NONE/PKCS5", "BC");

but ‘NONE’ isn’t an option.

My question is how to use the Java AES functions for my purpose; how can I do E(k, ...)?

  • 1 1 Answer
  • 0 Views
  • 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-06-14T17:14:09+00:00Added an answer on June 14, 2026 at 5:14 pm

    In general, to build your own ciphers you need to have access to the block mode operation. If you have only access to the higher level functions you should use ECB mode encryption with no padding specified. ECB mode independently transforms each block given a cipher and a key. Padding should only be performed for block mode operations, and even then only for the last block.

    If you would use this within the Java Cryptographic Architecture you would use "AES/ECB/NoPadding" mode.

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

Sidebar

Related Questions

I am implementing a vector for an exercise. I want to do the following:
As part of an exercise, am implementing an ArrayList which will support Enumerations. Following
As an exercise, and mostly for my own amusement, I'm implementing a backtracking packrat
As part learning exercise, part hobby project, I am implementing my own interpretation of
As an exercise, I am implementing in Haskell a 'cons' operation that forms a
As an exercise I wrote a short Haskell function that returns the first four
As a learning excercise, I've just had an attempt at implementing my own 'merge
The exercise says: Create a Text class that contains a string object to hold
I have the exercise with following code int FindFirstSet(unsigned BitMap, unsigned start) { unsigned
I'm doing a book exercise that says to write a program that generates psuedorandom

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.