Questions tagged [symmetric]

is used in its general meaning, so you are encouraged to use one or more tags in addition to this tag, to describe your case better.

An example of Symmetric would be a Symmetric Key, which is used in both the sides of an algorithm in cryptography.

170 questions
0
votes
1 answer

c++ Eigen making copy?

Let A be a symmetric matrix and let v be a vector. I extract from A a block of n columns starting from j and multiply it by v using VectorXd a; a = A.middleCols(j,n).selfadjointView() * v // does not compile As this does not compile,…
itQ
  • 59
  • 3
  • 10
0
votes
0 answers

How Can I Test Symmetric Encryption Algorithms

I am doing an experiment for an essay in computer science. My topic is focused around encryption. Having conducted some research, I am interested in testing symmetric encryption programs such as AES, DES, Blowfish and Twofish. However I am stuck for…
TreyBCollier
  • 213
  • 3
  • 8
0
votes
0 answers

Make a symmetric matrix a diagonal matrix in R

I a have symmetric matrix (e.g. M <- matrix(1:4, ncol = 2)) and I want to set the off diagonal elements to 0. Is there a smarter way than diag(diag(M), ncol = ncol(M))? Note: diag does not support the usssage of diag(M, ncol = ncol(M)) and doesn't…
Qaswed
  • 3,649
  • 7
  • 27
  • 47
0
votes
1 answer

block diagonal matrix

Suppose I have a list Z consisting of many matrices and I want to construct a block diagonal matrix from it. ex : [[1]] [,1] [,2] [,3] [1,] 1.002500e+00 0.001930454 1.388794e-11 [2,] 1.930454e-03 1.002500000…
raK1
  • 519
  • 1
  • 4
  • 13
0
votes
0 answers

How to decrypt an encrypted AES file using base64 Symmetric key and IV

I have been given an encrypted file along with a base64 symmetric key and base 64 IV and have been asked to decrypt it using Java. The encryption used on the data file was AES. However, when I run the encrypted file, symmetric key and IV into my…
0
votes
2 answers

Recursively printing numbers as symmetric sequences

I want to print entered numbers as symmetric sequences without zero using recursive functions. Let's take a method called void demo(int n). Example For n=5 it should print: "5 4 3 2 1 2 3 4 5 " Problem I can print "5 4 3 2 1 ". My recursive…
0
votes
1 answer

Recursive function seems to be fine, but won't return False

So the function should check if a list is symmetric; if the list is empty or has one integer, it is symmetric. Otherwise the function should check if the first and last integers are the same and go on recursively. If not, return False. The code…
GaryB
  • 51
  • 1
  • 1
  • 5
0
votes
1 answer

Change entries in matrix using entries of the matrix

I am trying to make my matrix (tc) symmetric (using R) by adding the corresponding entries and divide those by the sum of the corresponding diagonal entries (tc[i,j]+tc[j,i])/(tc[i,i]+tc[j,j]). I tried it with loops but it does not give me the right…
Linalein
  • 25
  • 5
0
votes
1 answer

How to alter length of symmetric key in MSSQL

I have to change length of symmetric key in my database. I'm currently using TRIPLE_DES algorithm with key length 128 and I have to use key length 168 or 192, or AES_256 algorithm. Is there any simple solution? If not please give me some pointers…
user3746480
  • 333
  • 5
  • 17
0
votes
2 answers

Compressing a symmetrical matrix in c++

let's suppose that we have a simmetric matrix. A= 1 2 3 2 6 4 3 4 5 now since it's simmetric we don't need to store memorize all the numbers in it. Let's assume to put 0 in the cells of the left lower triangle. B = 1 2 3 0 6…
darkpirate
  • 712
  • 3
  • 10
  • 27
0
votes
1 answer

Why is this Elgamal Digital Signature Algorithm implemented in MATLAB not working properly?

%%%CODE: clc; disp('Implementation of ELGAMAL Digital Signature'); clear all; close all; %%Hardcoded values (vpi stands for VariablePrecisionIntegers, and are used to store large values) g = vpi(5) %alpha in example k = vpi(9) %Random number…
Ajay
  • 1
0
votes
1 answer

Finding the Projection without using projection matrix always but to use some symmetry

I am interested in finding the t2' with the help of t1, t1' and t2. Actually I am using some projection matrix T (this will be used to project point x and y which is clear in the Image attached) on x and y to get the points t1 and t2. Again I have…
hawkeye
  • 349
  • 4
  • 21
0
votes
1 answer

How to send packets to a client under Symmetric NAT

I am trying to send UDP Packets to a public server from a client in symmetric nat. i am able to send packets to the server However i want the server to send packets to the client under symmetric cone nat. How do i solve this? Please help me.
0
votes
1 answer

Unexplained symmetry when computing Power Spectral Density of white noise

I'm trying to learn more about noise, power spectral denisty (PSD) and statistical variances. With regards this I'm trying to compute the Power Spectral density of white noise, however, when I do I get a very odd symmetry. my spectrum seems to be…
Leavenotrace
  • 3
  • 1
  • 3
0
votes
1 answer

Change asymmetric square matrix to the symmetric one

I have a matrix-form data stored in a CSV file, and it looks like this, I want to make this 6 * 6 matrix be a symmetric matrix, like this, How to use python (or matlab) to change an n by n matrix (square matrix) to a symmetric matrix? Or are there…
Heinz
  • 2,415
  • 6
  • 26
  • 34