Questions tagged [cbc-mac]

CBC-MAC is a chaining mode to compute a signature using a secret key with a cblock cipher.

CBC-MAC is a chaining mode to compute a cryptographic signature (specifically, a message authentication code) using a secret key with a block cipher such as AES.

CBC-MAC is MAC algorithm 1 in ISO/IEC 9797-1. DES/CBC-MAC is DAA in FIPS 113 (retired).

CMAC (also known as OMAC-1) is a variant of CBC-MAC specified by FIPS 800-38B.

23 questions
0
votes
1 answer

AES-256-CBC encryption Golang and PHP

I am trying to achieve AES-256-CBC encryption in golang. I have a working PHP code that has been used for years. I am getting encrypted values in Golang, but the values don't match the output from PHP one, for the same payload/key/iv…
Krishnabhadra
  • 34,169
  • 30
  • 118
  • 167
0
votes
1 answer

Encrypt every item inside a folder in Bash

I have a code which is supposed to encrypt every file within a folder but when I put it (the encryption code) within the infinite loop it does not work. touch Out_file.txt ls > Out_file.txt i = 0 while: i = i + 1 line=$(head -n $i…
0
votes
0 answers

aes ccm code error using OpenSSL

This is aes-ccm example code. I turn on the my visual studio using the c languages. But it is dosen't work. I think the problem point is void handleErrors(void); How can solve this problem? Please give me adviece. Thank you #include…
0
votes
0 answers

AES 128 with CBC-MAC in C

The code showing below is AES with CBC mode implementation. I am very new to the network security aspect. I am wondering how I can add the mac generation function upon the block and makes it as cbc-mac static void GenerateDecryptionKey(uint8_t…
0
votes
2 answers

CBC-MAC decryption, how MAC works in encryption

I just figured out Triple DES encryption and decryption for credit card. Can any one tell me how to de-crypt CBC-MAC...CBC-MAC at the end would give a 4 byte MAC. From MAC to Encryption, how exactly does it work? What is MAC doing? Once there is an…
Curly
  • 539
  • 2
  • 7
  • 14
0
votes
1 answer

CBC-MAC AES own implementation extremely slow

For a project I need to implement a function in Android (with java) which generates a CBC-MAC (AES) from a file. So basically the function takes different 'blocks' from the file and calculates an identifier for every block and finally combines it to…
-1
votes
1 answer

Best way to AES Encrypt large files (Approx. 5GB)

My Requirement: I have a Azure Storage Account with 2 containers named Normal and Encrypted. Now a zip file will be uploaded into "Normal" container which I need to encrypt and place it into "Encrypted" Container. File can be anywhere between 3GB to…
-1
votes
1 answer

PHP cryption on server won't work "mcrypt_get_iv_size" function

So I was writing a web application and for some uses I need to encrypt string and decrypt it later, and everything from my code works perfectly on localhost on Macbook on El Capitan 10.11.4 and XAMPP 5.6.15-1 but when I upload code on the server it…
1
2