msm_fips_selftest.h 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c) 2014, The Linux Foundation. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 and
  6. * only version 2 as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. */
  14. #ifndef __MSM_FIPS_SELFTEST_H__
  15. #define __MSM_FIPS_SELFTEST_H__
  16. struct ctr_debg_test_inputs_s {
  17. char *entropy_string; /* must by 16 bytes */
  18. char *nonce_string; /* must be 8 bytes */
  19. char *reseed_entropy_string; /* must be 16 bytes */
  20. char *observed_string; /* lenth is defined
  21. in observed_string_len */
  22. int observed_string_len;
  23. };
  24. int fips_ctraes128_df_known_answer_test(struct ctr_debg_test_inputs_s *tcase);
  25. int fips_self_test(void);
  26. #endif /* __MSM_FIPS_SELFTEST_H__ */