diff options
Diffstat (limited to 'src/mac/cmac/cmac.cpp')
-rw-r--r-- | src/mac/cmac/cmac.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mac/cmac/cmac.cpp b/src/mac/cmac/cmac.cpp index 58923138b..b689a4d3a 100644 --- a/src/mac/cmac/cmac.cpp +++ b/src/mac/cmac/cmac.cpp @@ -144,10 +144,10 @@ CMAC::CMAC(BlockCipher* e_in) : else throw Invalid_Argument("CMAC cannot use the cipher " + e->name()); - state.create(OUTPUT_LENGTH); - buffer.create(OUTPUT_LENGTH); - B.create(OUTPUT_LENGTH); - P.create(OUTPUT_LENGTH); + state.resize(OUTPUT_LENGTH); + buffer.resize(OUTPUT_LENGTH); + B.resize(OUTPUT_LENGTH); + P.resize(OUTPUT_LENGTH); position = 0; } |